backup MDL-23918 Fixed up wording in the backup and restore stages.
authorSam Hemelryk <sam@moodle.com>
Thu, 26 Aug 2010 05:17:46 +0000 (05:17 +0000)
committerSam Hemelryk <sam@moodle.com>
Thu, 26 Aug 2010 05:17:46 +0000 (05:17 +0000)
backup/moodle2/restore_section_task.class.php
backup/util/ui/backup_ui_stage.class.php
lang/en/backup.php

index 48b9d22..454487c 100644 (file)
@@ -145,6 +145,12 @@ class restore_section_task extends restore_task {
         // Define section_included (to decide if the whole task must be really executed)
         $settingname = $settingprefix . 'included';
         $section_included = new restore_section_included_setting($settingname, base_setting::IS_BOOLEAN, true);
+        if (is_number($this->info->title)) {
+            $label = get_string('includesection', 'backup', $this->info->title);
+        } else {
+            $label = $this->info->title;
+        }
+        $section_included->get_ui()->set_label($label);
         $this->add_setting($section_included);
 
         // Define section_userinfo. Dependent of:
index 2ac8c95..1d3a699 100644 (file)
@@ -346,7 +346,7 @@ class backup_ui_stage_confirmation extends backup_ui_stage {
                     $form->add_heading('rootsettings', get_string('rootsettings', 'backup'));
                 } else if (!$courseheading) {
                     // we havn't already add a course heading
-                    $form->add_heading('coursesettings', get_string('includeactivities', 'backup'));
+                    $form->add_heading('coursesettings', get_string('includeditems', 'backup'));
                     $courseheading = true;
                 }
                 // Iterate all settings, doesnt need to happen by reference
index b339721..f5eaf63 100644 (file)
@@ -109,9 +109,10 @@ $string['importcurrentstage16'] = 'Complete';
 $string['importdeleting'] = 'Import deleting';
 $string['importdeletingdesc'] = 'Delete the contents of this course and then import the selected course';
 $string['importsuccess'] = 'Import complete. Click continue to return to the course.';
-$string['includeactivities'] = 'Choose activities to include';
-$string['includesection'] = 'Include section {$a}';
-$string['includeuserinfo'] = 'Include user information';
+$string['includeactivities'] = 'Include:';
+$string['includeditems'] = 'Included items:';
+$string['includesection'] = 'Section {$a}';
+$string['includeuserinfo'] = 'User data';
 $string['locked'] = 'Locked';
 $string['lockedbypermission'] = 'You don\'t have sufficient permissions to change this setting';
 $string['lockedbyconfig'] = 'This setting has been locked by the default backup settings';