]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed some missing strings that no-one picked up before!
authormoodler <moodler>
Mon, 4 Aug 2003 16:07:17 +0000 (16:07 +0000)
committermoodler <moodler>
Mon, 4 Aug 2003 16:07:17 +0000 (16:07 +0000)
files/index.php
lang/en/moodle.php

index 23d6c405e92fc349a478ac0b47c0a09810f952f5..673cd702e228cbcae0a2db7c64ad3a7a8c5cc490 100644 (file)
                 displaydir($wdir);
                     
             } else {
+                $strrename = get_string("rename");
+                $strcancel = get_string("cancel");
+                $strrenamefileto = get_string("renamefileto", "moodle", $file);
                 html_header($course, $wdir, "form.name");
-                echo "<P>Rename <B>$file</B> to:";
+                echo "<P>$strrenamefileto:";
                 echo "<TABLE><TR><TD>";
                 echo "<FORM ACTION=index.php METHOD=post NAME=form>";
                 echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
                 echo " <INPUT TYPE=hidden NAME=action VALUE=rename>";
                 echo " <INPUT TYPE=hidden NAME=oldname VALUE=\"$file\">";
                 echo " <INPUT TYPE=text NAME=name SIZE=35 VALUE=\"$file\">";
-                echo " <INPUT TYPE=submit VALUE=\"Rename\">";
+                echo " <INPUT TYPE=submit VALUE=\"$strrename\">";
                 echo "</FORM>";
                 echo "</TD><TD>";
                 echo "<FORM ACTION=index.php METHOD=get>";
                 echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
                 echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir>";
                 echo " <INPUT TYPE=hidden NAME=action VALUE=cancel>";
-                echo " <INPUT TYPE=submit VALUE=\"Cancel\">";
+                echo " <INPUT TYPE=submit VALUE=\"$strcancel\">";
                 echo "</FORM>";
                 echo "</TD></TR></TABLE>";
             }
                 displaydir($wdir);
                     
             } else {
+                $strcreate = get_string("create");
+                $strcancel = get_string("cancel");
+                $strcreatefolder = get_string("createfolder", "moodle", $wdir);
                 html_header($course, $wdir, "form.name");
-                echo "<P>Create folder in $wdir:";
+                echo "<P>$strcreatefolder:";
                 echo "<TABLE><TR><TD>";
                 echo "<FORM ACTION=index.php METHOD=post NAME=form>";
                 echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
                 echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir>";
                 echo " <INPUT TYPE=hidden NAME=action VALUE=mkdir>";
                 echo " <INPUT TYPE=text NAME=name SIZE=35>";
-                echo " <INPUT TYPE=submit VALUE=\"Create\">";
+                echo " <INPUT TYPE=submit VALUE=\"$strcreate\">";
                 echo "</FORM>";
                 echo "</TD><TD>";
                 echo "<FORM ACTION=index.php METHOD=get>";
                 echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
                 echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir>";
                 echo " <INPUT TYPE=hidden NAME=action VALUE=cancel>";
-                echo " <INPUT TYPE=submit VALUE=\"Cancel\">";
+                echo " <INPUT TYPE=submit VALUE=\"$strcancel\">";
                 echo "</FORM>";
                 echo "</TD></TR></TABLE>";
             }
                     
             } else {
                 html_header($course, $wdir, "form.name");
+
                 if (setfilelist($_POST)) {
-                    echo "<P ALIGN=CENTER>You are about create a zip file containing:</P>";
+                    echo "<P ALIGN=CENTER>".get_string("youareabouttocreatezip").":</P>";
                     print_simple_box_start("center");
                     printfilelist($USER->filelist);
                     print_simple_box_end();
                     echo "<BR>";
-                    echo "<P ALIGN=CENTER>What do you want to call the zip file?";
+                    echo "<P ALIGN=CENTER>".get_string("whattocallzip");
                     echo "<TABLE><TR><TD>";
                     echo "<FORM ACTION=index.php METHOD=post NAME=form>";
                     echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
                     echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\">";
                     echo " <INPUT TYPE=hidden NAME=action VALUE=zip>";
                     echo " <INPUT TYPE=text NAME=name SIZE=35 VALUE=\"new.zip\">";
-                    echo " <INPUT TYPE=submit VALUE=\"Create zip file\">";
+                    echo " <INPUT TYPE=submit VALUE=\"".get_string("createziparchive")."\">";
                     echo "</FORM>";
                     echo "</TD><TD>";
                     echo "<FORM ACTION=index.php METHOD=get>";
                     echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
                     echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir>";
                     echo " <INPUT TYPE=hidden NAME=action VALUE=cancel>";
-                    echo " <INPUT TYPE=submit VALUE=\"Cancel\">";
+                    echo " <INPUT TYPE=submit VALUE=\"".get_string("cancel")."\">";
                     echo "</FORM>";
                     echo "</TD></TR></TABLE>";
                 } else {
index e6aac42aa9bcfbbff75b321d3e94000f8efad7b1..947c4810f9bd91bf2e81e2b993efbad3ac67152f 100644 (file)
@@ -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 <b>\$a</b> 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";