Skip to content

Commit

Permalink
backup MDL-23918 Fixed up wording in the backup and restore stages.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Hemelryk committed Aug 26, 2010
1 parent bf6d283 commit 70a1023
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
6 changes: 6 additions & 0 deletions backup/moodle2/restore_section_task.class.php
Expand Up @@ -145,6 +145,12 @@ protected function define_settings() {
// 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:
Expand Down
2 changes: 1 addition & 1 deletion backup/util/ui/backup_ui_stage.class.php
Expand Up @@ -346,7 +346,7 @@ protected function initialise_stage_form() {
$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
Expand Down
7 changes: 4 additions & 3 deletions lang/en/backup.php
Expand Up @@ -109,9 +109,10 @@
$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';
Expand Down

0 comments on commit 70a1023

Please sign in to comment.