Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-37211 Backup: Migrate hard-coded strings to language string for t…

…he table header labels on the restore page
  • Loading branch information...
commit 9684aab5a2517ea37341c46c0bcfb0024a2d0ebe 1 parent 4acc7c0
@nadavkav nadavkav authored danpoltawski committed
Showing with 4 additions and 1 deletion.
  1. +1 −1  backup/util/ui/renderer.php
  2. +3 −0  lang/en/backup.php
View
2  backup/util/ui/renderer.php
@@ -140,7 +140,7 @@ public function backup_details($details, $nextstageurl) {
}
if (empty($table)) {
$table = new html_table();
- $table->head = array('Module', 'Title', 'Userinfo');
+ $table->head = array(get_string('module','backup'), get_string('title','backup'), get_string('userinfo','backup'));
$table->colclasses = array('modulename', 'moduletitle', 'userinfoincluded');
$table->align = array('left','left', 'center');
$table->attributes = array('class'=>'activitytable generaltable');
View
3  lang/en/backup.php
@@ -245,6 +245,9 @@
$string['skipmodifdayshelp'] = 'Choose to skip courses that have not been modified since a number of days';
$string['skipmodifprev'] = 'Skip courses not modified since previous backup';
$string['skipmodifprevhelp'] = 'Choose whether or not to skip courses that have not been modified since previous backup';
+$string['title'] = 'Title';
$string['totalcategorysearchresults'] = 'Total categories: {$a}';
$string['totalcoursesearchresults'] = 'Total courses: {$a}';
+$string['userinfo'] = 'Userinfo';
+$string['module'] = 'Module';
$string['morecoursesearchresults'] = 'More than {$a} courses found, showing first {$a} results';
Please sign in to comment.
Something went wrong with that request. Please try again.