Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

More language changes

  • Loading branch information...
commit af978a6dc4e8bb2bf8f240b53903175835d5cbf3 1 parent bffb106
martin authored
59 course/edit.html
... ... @@ -1,39 +1,39 @@
1 1 <FORM METHOD="post" action="edit.php" NAME="form">
2 2 <table cellpadding=9 cellspacing=0 >
3 3 <tr valign=top>
4   - <td><P>Full name:</td>
  4 + <td><P><? print_string("fullname") ?>:</td>
5 5 <td><input type="text" name="fullname" size=50 value="<? p($form->fullname) ?>">
6 6 <? formerr($err["fullname"]) ?>
7 7 </td>
8 8 </tr>
9 9 <tr valign=top>
10   - <td><P>Short name:</td>
  10 + <td><P><? print_string("shortname") ?>:</td>
11 11 <td><input type="text" name="shortname" size=10 value="<? p($form->shortname) ?>">
12 12 <? formerr($err["shortname"]) ?>
13 13 </td>
14 14 </tr>
15 15 <tr valign=top>
16   - <td><P>Summary:</td>
  16 + <td><P><? print_string("summary") ?>:</td>
17 17 <td><TEXTAREA NAME=summary COLS=50 ROWS=10 WRAP=virtual><? p($form->summary) ?></TEXTAREA>
18 18 <? formerr($err["summary"]) ?>
19 19 </td>
20 20 </tr>
21 21 <tr valign=top>
22   - <td><P>Enrolment Key:</td>
  22 + <td><P><? print_string("enrolmentkey") ?>:</td>
23 23 <td><input type="text" name="password" size=25 value="<? p($form->password) ?>">
24 24 <? formerr($err["password"]) ?>
25 25 </td>
26 26 </tr>
27 27 <tr valign=top>
28   - <td><P>Open to guests?:</td>
  28 + <td><P><? print_string("opentoguests") ?>:</td>
29 29 <td><?
30   - $choices["0"] = "No, only students are allowed";
31   - $choices["1"] = "Yes, allow \"guest\" student in";
  30 + $choices["0"] = get_string("guestsno");
  31 + $choices["1"] = get_string("guestsyes");
32 32 choose_from_menu ($choices, "guest", $form->guest, "") ?>
33 33 </td>
34 34 </tr>
35 35 <tr valign=top>
36   - <td><P>Category:</td>
  36 + <td><P><? print_string("category") ?>:</td>
37 37 <td><?
38 38 choose_from_menu ($form->categories, "category", "$form->category");
39 39 formerr($err["category"]);
@@ -41,7 +41,7 @@
41 41 </td>
42 42 </tr>
43 43 <tr valign=top>
44   - <td><P>Format:</td>
  44 + <td><P><? print_string("format") ?>:</td>
45 45 <td><?
46 46 choose_from_menu ($FORMATS, "format", "$form->format");
47 47 formerr($err["format"]);
@@ -49,19 +49,22 @@
49 49 </td>
50 50 </tr>
51 51 <tr valign=top>
52   - <td><P>News items to show:</td>
  52 + <td><P><? print_string("newsitemsnumber") ?>:</td>
53 53 <td><?
54   - $options = array("0" => "0 news items",
55   - "1" => "1 news item",
56   - "2" => "2 news items",
57   - "3" => "3 news items",
58   - "4" => "4 news items",
59   - "5" => "5 news items",
60   - "6" => "6 news items",
61   - "7" => "7 news items",
62   - "8" => "8 news items",
63   - "9" => "9 news items",
64   - "10" => "10 news items");
  54 + $newsitem = get_string("newsitem");
  55 + $newsitems = get_string("newsitems");
  56 +
  57 + $options = array("0" => "0 $newsitems",
  58 + "1" => "1 $newsitem",
  59 + "2" => "2 $newsitems",
  60 + "3" => "3 $newsitems",
  61 + "4" => "4 $newsitems",
  62 + "5" => "5 $newsitems",
  63 + "6" => "6 $newsitems",
  64 + "7" => "7 $newsitems",
  65 + "8" => "8 $newsitems",
  66 + "9" => "9 $newsitems",
  67 + "10" => "10 $newsitems");
65 68 choose_from_menu ($options, "newsitems", "$form->newsitems");
66 69 formerr($err["newsitems"]);
67 70 ?>
@@ -69,19 +72,19 @@
69 72 </tr>
70 73
71 74 <tr valign=top>
72   - <td><P>Word for teacher:</td>
  75 + <td><P><? print_string("wordforteacher") ?>:</td>
73 76 <td><input type="text" name="teacher" size=25 value="<? p($form->teacher) ?>">
74   - (eg Teacher, Tutor, Facilitator etc) <? formerr($err["teacher"]) ?>
  77 + (<? print_string("wordforteachereg") ?>) <? formerr($err["teacher"]) ?>
75 78 </td>
76 79 </tr>
77 80 <tr valign=top>
78   - <td><P>Word for student:</td>
  81 + <td><P><? print_string("wordforstudent") ?>:</td>
79 82 <td><input type="text" name="student" size=25 value="<? p($form->student) ?>">
80   - (eg Student, Participant etc) <? formerr($err["student"]) ?>
  83 + (<? print_string("wordforstudenteg") ?>) <? formerr($err["student"]) ?>
81 84 </td>
82 85 </tr>
83 86 <tr valign=top>
84   - <td><P>Start date:</td>
  87 + <td><P><? print_string("startdate") ?>:</td>
85 88 <td><?
86 89 choose_from_menu ($form->days, "startday", "$form->startday");
87 90 choose_from_menu ($form->months, "startmonth", "$form->startmonth");
@@ -90,7 +93,7 @@
90 93 ?></td>
91 94 </tr>
92 95 <tr valign=top>
93   - <td><P>Number of weeks/topics:</td>
  96 + <td><P><? print_string("numberweeks") ?>:</td>
94 97 <td><?
95 98 for ($i=1; $i<=20; $i++) {
96 99 $sectionmenu[$i] = "$i";
@@ -101,7 +104,7 @@
101 104 </tr>
102 105 <tr>
103 106 <td></td>
104   - <td><input type="submit" value="Update this course"></td>
  107 + <td><input type="submit" value="<? print_string("updatethiscourse") ?>"></td>
105 108 </TABLE>
106 109 <INPUT type="hidden" name="id" value="<?=$course->id ?>">
107 110 </FORM>
10 course/edit.php
@@ -60,7 +60,7 @@
60 60 $section->id = insert_record("course_sections", $section);
61 61
62 62 add_to_log($newid, "course", "new", "view.php?id=$newid", "");
63   - redirect("$CFG->wwwroot/admin/teacher.php?id=$newid", "Changes saved");
  63 + redirect("$CFG->wwwroot/admin/teacher.php?id=$newid", get_string("changessaved"));
64 64 } else {
65 65 error("Serious Error! Could not create the new course!");
66 66 }
@@ -116,10 +116,12 @@
116 116
117 117 //$form->owners = get_records_sql_menu("SELECT u.id, CONCAT(u.firstname, " ", u.lastname) FROM users u, teachers t WHERE t.user = u.id");
118 118
  119 + $editcoursesettings = get_string("editcoursesettings");
  120 +
119 121 if (isset($course)) {
120   - print_header("Edit course settings", "$course->fullname",
  122 + print_header($editcoursesettings, "$course->fullname",
121 123 "<A HREF=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</A>
122   - -> Edit course settings", $focus);
  124 + -> $editcoursesettings", $focus);
123 125 } else {
124 126 print_header("Admin: Creating a new course", "$site->shortname: Administration",
125 127 "<A HREF=\"$CFG->wwwroot/admin/\">Admin</A>
@@ -127,7 +129,7 @@
127 129 }
128 130
129 131 print_simple_box_start("center", "", "$THEME->cellheading");
130   - print_heading("Editing course settings");
  132 + print_heading($editcoursesettings);
131 133 include("edit.html");
132 134 print_simple_box_end();
133 135
7 course/enrol.php
@@ -22,6 +22,13 @@
22 22 if (! enrol_student_in_course($USER->id, $course->id)) {
23 23 error("An error occurred while trying to enrol you.");
24 24 }
  25 +
  26 + $subject = get_string("welcometocourse", "", $course->fullname);
  27 + $message = get_string("welcometocoursetext", "", $course->fullname,
  28 + "$CFG->wwwroot/user/view.php?id=$USER->id&course=$course->id");
  29 +
  30 + email_to_user($USER, get_teacher($course->id), $subject, $message);
  31 +
25 32 add_to_log($course->id, "course", "enrol", "view.php?id=$course->id", "$USER->id");
26 33 }
27 34
27 lang/en/strings.php
@@ -10,8 +10,10 @@
10 10 $string[alphanumerical] = "Can only contain alphabetical letters or numbers";
11 11 $string[alreadyconfirmed] = "Registration has already been confirmed";
12 12 $string[availablecourses] = "Available Courses";
  13 +$string[category] = "Category";
13 14 $string[changepassword] = "Change password";
14 15 $string[changedpassword] = "Changed password";
  16 +$string[changessaved] = "Changes saved";
15 17 $string[city] = "City/town";
16 18 $string[confirmed] = "Your registration has been confirmed";
17 19 $string[contributions] = "Contributions";
@@ -50,13 +52,18 @@
50 52
51 53 $string[emailexists] = "This email address is already registered.";
52 54 $string[emailmustbereal] = "Note: your email address must be a real one";
  55 +$string[enrolmentkey] = "Enrolment key";
53 56 $string[entercourse] = "Click to enter this course";
54 57 $string[enteremailaddress] = "Enter in your email address to reset your
55 58 password and have the new password sent to you via email.";
56 59 $string[firstname] = "First name";
57 60 $string[firsttime] = "Is this your first time here?";
58 61 $string[forgotten] = "Forgotten your username or password?";
  62 +$string[format] = "Format";
59 63 $string[fullprofile] = "Full profile";
  64 +$string[fullname] = "Full name";
  65 +$string[guestsno] = "No, do not allow guests in";
  66 +$string[guestsyes] = "Yes, allow 'guest' student in";
60 67 $string[home] = "Home";
61 68 $string[htmlformat] = "Pretty HTML format";
62 69 $string[icqnumber] = "ICQ number";
@@ -127,9 +134,14 @@
127 134 \$a->signoff\n";
128 135
129 136 $string[newpicture] = "New picture";
  137 +$string[newsitem] = "news item";
  138 +$string[newsitems] = "news items";
  139 +$string[newsitemsnumber] = "News items to show";
130 140 $string[nosuchemail] = "No such email address";
131 141 $string[notenrolled] = "\$a is not enrolled in this course.";
  142 +$string[numberweeks] = "Number of weeks/topics";
132 143 $string[ok] = "OK";
  144 +$string[opentoguests] = "Open to guests?";
133 145 $string[optional] = "optional";
134 146 $string[participants] = "Participants";
135 147 $string[password] = "Password";
@@ -147,11 +159,14 @@
147 159 $string[selectacountry] = "Select a country";
148 160 $string[senddetails] = "Send my details via email";
149 161 $string[serverlocaltime] = "Server's local time";
  162 +$string[shortname] = "Short name";
150 163 $string[sitelogs] = "Site logs";
151 164 $string[sitenews] = "Site news";
152 165 $string[sitesettings] = "Site settings";
153 166 $string[someallowguest] = "Some courses may allow guest access";
  167 +$string[startdate] = "Course start date";
154 168 $string[startsignup] = "Start now by creating a new account!";
  169 +$string[summary] = "Summary";
155 170 $string[supplyinfo] = "Please supply some information about yourself";
156 171 $string[teacheronly] = "for the \$a only";
157 172 $string[textformat] = "Plain text format";
@@ -162,11 +177,23 @@
162 177 $string[unenrolme] = "Unenrol me from \$a";
163 178 $string[update] = "Update";
164 179 $string[updatemyprofile] = "Update my profile";
  180 +$string[updatethiscourse] = "Update this course";
165 181 $string[userdescription] = "Description";
166 182 $string[username] = "Username";
167 183 $string[usernameexists] = "This username already exists, choose another";
168 184 $string[userprofilefor] = "User profile for \$a";
169 185 $string[webpage] = "Web page";
  186 +$string[welcometocourse] = "Welcome to \$a";
  187 +$string[welcometocoursetext] = "Welcome to \$a!
  188 +
  189 +One of the first things you should do is edit your profile page
  190 +within the course so that we can learn more about you:
  191 +
  192 + \$b";
  193 +$string[wordforteacher] = "Your word for Teacher";
  194 +$string[wordforteachereg] = "eg Teacher, Tutor, Facilitator etc";
  195 +$string[wordforstudent] = "Your word for Student";
  196 +$string[wordforstudenteg] = "eg Student, Participant etc";
170 197 $string[wrongpassword] = "Incorrect password for this username";
171 198
172 199 ?>
4 login/confirm.php
@@ -13,7 +13,7 @@
13 13 print_header(get_string("alreadyconfirmed"), get_string("alreadyconfirmed"), "", "");
14 14 echo "<CENTER><H3>".get_string("thanks").", ". $USER->firstname ." ". $USER->lastname . "</H3>\n";
15 15 echo "<H4>".get_string("alreadyconfirmed")."</H4>\n";
16   - echo "<H3><A HREF=\"$CFG->wwwroot/course/\">".get_string("courses")."</A></H3>\n";
  16 + echo "<H3> -> <A HREF=\"$CFG->wwwroot/course/\">".get_string("courses")."</A></H3>\n";
17 17 print_footer();
18 18 exit;
19 19 }
@@ -42,7 +42,7 @@
42 42 print_header(get_string("confirmed"), get_string("confirmed"), "", "");
43 43 echo "<CENTER><H3>".get_string("thanks").", ". $USER->firstname ." ". $USER->lastname . "</H3>\n";
44 44 echo "<H4>".get_string("confirmed")."</H4>\n";
45   - echo "<H3><A HREF=\"$CFG->wwwroot/course/\">".get_string("courses")."</A></H3>\n";
  45 + echo "<H3> -> <A HREF=\"$CFG->wwwroot/course/\">".get_string("courses")."</A></H3>\n";
46 46 print_footer();
47 47
48 48 } else {
2  login/signup.php
@@ -24,7 +24,9 @@
24 24
25 25 $emailconfirm = get_string("emailconfirm");
26 26 print_header($emailconfirm, $emailconfirm, $emailconfirm);
  27 + echo "<CENTER>";
27 28 print_string("emailconfirmsent", "", $user->email);
  29 + echo "</CENTER>";
28 30 print_footer();
29 31 exit;
30 32 }

0 comments on commit af978a6

Please sign in to comment.
Something went wrong with that request. Please try again.