From 67805f89ec40e26ccbeb051a35cbb2089a9fab0f Mon Sep 17 00:00:00 2001 From: stronk7 Date: Mon, 28 Jul 2003 19:37:37 +0000 Subject: [PATCH] Prepared to insert string in langs. Tomorrow. --- backup/restore_execute.html | 63 ++++++++++++++----------------------- 1 file changed, 24 insertions(+), 39 deletions(-) diff --git a/backup/restore_execute.html b/backup/restore_execute.html index 0af87a5e6e..7c145e84f6 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 ""; } } @@ -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 ""; } 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 ""; } } //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 ""; } } //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 -- 2.39.5