diff --git a/backup/restore_execute.html b/backup/restore_execute.html
index 0af87a5e6eb..7c145e84f6e 100644
--- a/backup/restore_execute.html
+++ b/backup/restore_execute.html
@@ -53,7 +53,7 @@
//create it (course)
//Saving conversion id variables into backup_tables
if ($restore->restoreto ==1) {
- echo "
Creating new course";
+ echo "".get_string("creatingnewcourse");
$status = restore_create_new_course($restore,&$course_header);
//Print course fullname and shortname and category
if ($status) {
@@ -67,10 +67,10 @@
} else {
$course = get_record("course","id",$restore->course_id);
if ($course) {
- echo "Using existing course";
+ echo "".get_string("usingexistingcourse");
echo "";
- echo "- From: ".$course_header->course_fullname." (".$course_header->course_shortname.")";
- echo "
- To: ".$course->fullname." (".$course->shortname.")";
+ echo "
- ".get_string("from").": ".$course_header->course_fullname." (".$course_header->course_shortname.")";
+ echo "
- ".get_string("to").": ".$course->fullname." (".$course->shortname.")";
echo "
";
}
}
@@ -78,10 +78,10 @@
//Now create the course_sections and their associated course_modules
if ($status) {
if ($restore->restoreto == 1) {
- echo "Creating sections";
+ echo "".get_string("creatingsections");
$status = restore_create_sections($restore,$xml_file);
} else if ($restore->restoreto == 0) {
- echo "Checking sections";
+ echo "".get_string("checkingsections");
$status = restore_create_sections($restore,$xml_file);
} else {
$status = false;
@@ -91,7 +91,7 @@
//Now create users as needed
if ($status and ($restore->users == 0 or $restore->users == 1)) {
- echo "Creating users
";
+ echo "".get_string("creatingusers")."
";
$status = restore_create_users($restore,$xml_file);
//Now print info about the work done
if ($status) {
@@ -140,13 +140,13 @@
}
}
//Now print information gathered
- echo " (new: ".$new_count.", existing: ".$exists_count.")";
+ echo " (".get_string("new").": ".$new_count.", ".get_string("existing").": ".$exists_count.")";
echo "";
- echo "- Students: ".$student_count;
- echo "
- Teachers: ".$teacher_count;
- echo "
- Course Creators: ".$coursecreator_count;
- echo "
- Admins: ".$admin_count;
- echo "
- Other: ".$other_count;
+ echo "
- ".get_string("students").": ".$student_count;
+ echo "
- ".get_string("teachers").": ".$teacher_count;
+ echo "
- ".get_string("coursecreators").": ".$coursecreator_count;
+ echo "
- ".get_string("administrators").": ".$admin_count;
+ echo "
- ".get_string("other").": ".$other_count;
echo "
";
} else {
//Something is wrong. There is no users !!
@@ -157,78 +157,63 @@
//Now create categories and questions as needed (STEP1)
if ($status and ($restore->mods[quiz]->restore)) {
- echo "Creating Categories and Questions
";
+ echo "".get_string("creatingcategoriesandquestions")."
";
$status = restore_create_questions($restore,$xml_file);
}
//Now create user_files as needed
if ($status and ($restore->user_files)) {
- echo "Copying User Files
";
+ echo "".get_string("copyinguserfiles")."
";
$status = restore_user_files($restore);
//If all is ok (and we have a counter)
if ($status and ($status !== true)) {
//Inform about user dirs created from backup
echo "";
- echo "- User Zones: ".$status;
+ echo "
- ".get_string("userzones").": ".$status;
echo "
";
}
}
//Now create course files as needed
if ($status and ($restore->course_files)) {
- echo "Copying Course Files
";
+ echo "".get_string("copyingcoursefiles")."
";
$status = restore_course_files($restore);
//If all is ok (and we have a counter)
if ($status and ($status !== true)) {
//Inform about user dirs created from backup
echo "";
- echo "- Main Files/Folders: ".$status;
+ echo "
- ".get_string("filesfolders").": ".$status;
echo "
";
}
}
//Now create course modules as needed
if ($status) {
- echo "Creating Course Modules";
+ echo "".get_string("creatingcoursemodules");
$status = restore_create_modules($restore,$xml_file);
}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
//Now create log entries as needed
if ($status and ($restore->logs)) {
- echo "Creating Log Entries (not implemented!!)";
+ echo "".get_string("creatinglogentries")."(not implemented!!)";
}
//Now, if all is OK, adjust the instance field in course_modules !!
if ($status) {
- echo "Checking Instances";
+ echo "".get_string("checkinginstances");
$status = restore_check_instances($restore);
}
//Now if all is OK, update course modinfo field !!
if ($status) {
- echo "Checking Course";
+ echo "".get_string("checkingcourse");
rebuild_course_cache($restore->course_id);
}
//Cleanup temps (files and db)
if ($status) {
- echo "Cleaning up temp data";
- $status = clean_temp_data ($restore);
+ echo "".get_string("cleaningtempdata");
+ //$status = clean_temp_data ($restore);
}
//End the main ul