diff --git a/files/index.php b/files/index.php
index 23d6c405e92..673cd702e22 100644
--- a/files/index.php
+++ b/files/index.php
@@ -223,8 +223,11 @@
displaydir($wdir);
} else {
+ $strrename = get_string("rename");
+ $strcancel = get_string("cancel");
+ $strrenamefileto = get_string("renamefileto", "moodle", $file);
html_header($course, $wdir, "form.name");
- echo "
Rename $file to:";
+ echo "
$strrenamefileto:";
echo "
| ";
echo "";
echo " | ";
echo "";
echo " |
";
}
@@ -258,22 +261,25 @@
displaydir($wdir);
} else {
+ $strcreate = get_string("create");
+ $strcancel = get_string("cancel");
+ $strcreatefolder = get_string("createfolder", "moodle", $wdir);
html_header($course, $wdir, "form.name");
- echo "Create folder in $wdir:";
+ echo "
$strcreatefolder:";
echo "
| ";
echo "";
echo " | ";
echo "";
echo " |
";
}
@@ -363,27 +369,28 @@
} else {
html_header($course, $wdir, "form.name");
+
if (setfilelist($_POST)) {
- echo "You are about create a zip file containing:
";
+ echo "".get_string("youareabouttocreatezip").":
";
print_simple_box_start("center");
printfilelist($USER->filelist);
print_simple_box_end();
echo "
";
- echo "What do you want to call the zip file?";
+ echo "
".get_string("whattocallzip");
echo "
| ";
echo "";
echo " | ";
echo "";
echo " |
";
} else {
diff --git a/lang/en/moodle.php b/lang/en/moodle.php
index e6aac42aa9b..947c4810f9b 100644
--- a/lang/en/moodle.php
+++ b/lang/en/moodle.php
@@ -132,7 +132,9 @@ $string['courseformats'] = "Course formats";
$string['courserestore'] = "Course Restore";
$string['courses'] = "Courses";
$string['courseupdates'] = "Course updates";
+$string['create'] = "Create";
$string['createaccount'] = "Create my new account";
+$string['createfolder'] = "Create a folder in \$a";
$string['createuserandpass'] = "Create a new username and password to log in with";
$string['createziparchive'] = "Create zip archive";
$string['creatingcategoriesandquestions'] = "Creating categories and questions";
@@ -588,6 +590,7 @@ $string['removeadmin'] = "Remove admin";
$string['removecreator'] = "Remove course creator";
$string['removeteacher'] = "Remove teacher";
$string['rename'] = "Rename";
+$string['renamefileto'] = "Rename \$a to";
$string['required'] = "Required";
$string['resources'] = "Resources";
$string['restore'] = "Restore";
@@ -721,6 +724,7 @@ One of the first things you should do is edit your profile page
within the course so that we can learn more about you:
\$a->profileurl";
+$string['whattocallzip'] = "What do you want to call the zip file?";
$string['withchosenfiles'] = "With chosen files";
$string['withoutuserdata'] = "without user data";
$string['withuserdata'] = "with user data";
@@ -741,6 +745,7 @@ $string['writingmoduleinfo'] = "Writing modules info";
$string['writinguserinfo'] = "Writing users info";
$string['wrongpassword'] = "Incorrect password for this username";
$string['yes'] = "Yes";
+$string['youareabouttocreatezip'] = "You are going to restore from:";
$string['youaregoingtorestorefrom'] = "You are going to restore from:";
$string['yourlastlogin'] = "Your last login was";
$string['yourself'] = "yourself";