MDL-79915 backup: Improve the Restore main page

Júlia, from the PX team, has suggested a few improvements to make it easier to
understand the Restore main page:

- Displaying a notification instead of the empty table when there are no files
in an area.
- Improve the copy, removing the help buttons and moving this information to the
main page.
- Replacing "Import a backup file" with "Upload a backup file".
- Adding some space between the different areas.
- Displaying a different text in the different "Manage backup files" buttons.
This commit is contained in:
Sara Arjona 2023-10-27 14:47:34 +02:00
parent 6374475dc3
commit 9e3acd9f06
No known key found for this signature in database
10 changed files with 204 additions and 135 deletions

View file

@ -77,6 +77,7 @@ $string['backupcoursesections'] = 'Course sections';
$string['backupdate'] = 'Date taken';
$string['backupdetails'] = 'Backup details';
$string['backupdetailsnonstandardinfo'] = 'The selected file is not a standard Moodle backup file. The restore process will try to convert the backup file into the standard format and then restore it.';
$string['backupfile'] = 'Backup file';
$string['backupformat'] = 'Format';
$string['backupformatmoodle1'] = 'Moodle 1';
$string['backupformatmoodle2'] = 'Moodle 2';
@ -108,13 +109,13 @@ $string['backuptypesection'] = 'Section';
$string['backupversion'] = 'Backup version';
$string['cannotfindassignablerole'] = 'The {$a} role in the backup file cannot be mapped to any of the roles that you are allowed to assign.';
$string['choosefilefromcoursebackup'] = 'Course backup area';
$string['choosefilefromcoursebackup_help'] = 'Course backups made using default settings are stored here.';
$string['choosefilefromcoursebackup_help'] = 'Backup files for this course.';
$string['choosefilefromuserbackup'] = 'User private backup area';
$string['choosefilefromuserbackup_help'] = 'Backup files with anonymized user information are stored here.';
$string['choosefilefromuserbackup_help'] = 'Private backup files for all courses, with anonymised user information.';
$string['choosefilefromactivitybackup'] = 'Activity backup area';
$string['choosefilefromactivitybackup_help'] = 'Activity backups made using default settings are stored here.';
$string['choosefilefromactivitybackup_help'] = 'Backup files for this activity.';
$string['choosefilefromautomatedbackup'] = 'Automated backups';
$string['choosefilefromautomatedbackup_help'] = 'Contains automatically generated backups.';
$string['choosefilefromautomatedbackup_help'] = 'Backup files automatically generated.';
$string['config_keep_groups_and_groupings'] = 'By default keep current groups and groupings.';
$string['config_keep_roles_and_enrolments'] = 'By default keep current roles and enrolments.';
$string['config_overwrite_conf'] = 'Allows user to overwrite the current course configuration';
@ -252,7 +253,7 @@ $string['importgeneralmaxresults'] = 'Maximum number of courses listed for impor
$string['importgeneralmaxresults_desc'] = 'This controls the number of courses that are listed during the first step of the import process';
$string['importgeneralduplicateadminallowed'] = 'Allow admin conflict resolution';
$string['importgeneralduplicateadminallowed_desc'] = 'If the site has an account with username \'admin\', then attempting to restore a backup file containing an account with username \'admin\' can cause a conflict. If this setting is enabled, the conflict will be resolved by changing the username in the backup file to \'admin_xyz\'.';
$string['importfile'] = 'Import a backup file';
$string['importfile'] = 'Upload a backup file';
$string['importbackupstage1action'] = 'Next';
$string['importbackupstage2action'] = 'Next';
$string['importbackupstage4action'] = 'Perform import';
@ -283,6 +284,10 @@ $string['lockedbyconfig'] = 'This setting has been locked by the default backup
$string['lockedbyhierarchy'] = 'Locked by dependencies';
$string['loglifetime'] = 'Keep logs for';
$string['managefiles'] = 'Manage backup files';
$string['managefiles_activity'] = 'Manage activity backups';
$string['managefiles_course'] = 'Manage course backups';
$string['managefiles_backup'] = 'Manage private backups';
$string['managefiles_automated'] = 'Manage automated backups';
$string['keptroles'] = 'Include role enrolments';
$string['keptroles_help'] = 'Users with the selected roles will be enrolled into the new course. No user data will be copied unless \'Include user data\' is enabled.';
$string['missingfilesinpool'] = 'Some files could not be saved during the backup, and so it will not be possible to restore them.';
@ -320,6 +325,11 @@ $string['restorefileweremissing'] = 'Some files could not be restored because th
$string['restorenewcoursefullname'] = 'New course name';
$string['restorenewcourseshortname'] = 'New course short name';
$string['restorenewcoursestartdate'] = 'New start date';
$string['restorenofilesbackuparea'] = 'There are no backup files yet.';
$string['restorenofilesbackuparea_activity'] = 'There are no backup files for this activity yet.';
$string['restorenofilesbackuparea_course'] = 'There are no backup files for this course yet.';
$string['restorenofilesbackuparea_backup'] = 'You have no private backup files yet.';
$string['restorenofilesbackuparea_automated'] = 'There are no automated backup files yet.';
$string['restorerootsettings'] = 'Restore settings';
$string['restoresection'] = 'Restore section';
$string['restorestage1'] = 'Confirm';