]> git.mjollnir.org Git - moodle.git/commitdiff
Fix for par of the missing strings, as reported in MDL-12294
authorscyrma <scyrma>
Mon, 26 Nov 2007 04:10:08 +0000 (04:10 +0000)
committerscyrma <scyrma>
Mon, 26 Nov 2007 04:10:08 +0000 (04:10 +0000)
20 files changed:
admin/mnet/enr_course_enrol.php
admin/roles/assign.php
admin/roles/override.php
blocks/admin_bookmarks/create.php
blog/edit_form.php
grade/edit/tree/item_form.php
grade/edit/tree/outcomeitem_form.php
grade/import/xml/lib.php
lang/en_utf8/moodle.php
mod/data/lib.php
mod/data/preset_class.php
mod/data/templates.php
mod/forum/mod_form.php
mod/forum/subscribe.php
mod/lesson/mod_form.php
mod/quiz/config.html
mod/quiz/editlib.php
mod/quiz/report/analysis/report.php
mod/quiz/reviewquestion.php
question/type/calculated/questiontype.php

index 825d06bdd44c860a1e832e40c5fb1dc92f923efa..4ae894ee6bcb906f5684a3b55e30656fedbc918a 100644 (file)
 $str = get_strings(array('enrolmentplugins', 'configuration', 'users', 'administration'));
 /// Get some language strings
 
-$strassignusers = get_string('assignusers', 'role');
 $strpotentialusers = get_string('potentialusers', 'role');
 $strexistingusers = get_string('existingusers', 'role');
 $straction = get_string('assignroles', 'role');
index 01a3d73fc4708e6c78b4e422367e26b7a02d06c8..6baf3b86022a50d09720a14158e11e927a7682b2 100755 (executable)
@@ -75,7 +75,6 @@
 
 /// Get some language strings
 
-    $strassignusers = get_string('assignusers', 'role');
     $strpotentialusers = get_string('potentialusers', 'role');
     $strexistingusers = get_string('existingusers', 'role');
     $straction = get_string('assignroles', 'role');
index 1566552a2023599f6fef7064d9d375b00f2d0753..4432d6c426d827f369d6be6092676d7055843396 100755 (executable)
@@ -58,7 +58,6 @@
 /// Get some language strings
 
     $strroletooverride = get_string('roletooverride', 'role');
-    $stroverrideusers  = get_string('overrideusers', 'role');
     $straction         = get_string('overrideroles', 'role');
     $strcurrentrole    = get_string('currentrole', 'role');
     $strparticipants   = get_string('participants');
index cf44ab0f89cab577eef727b277907b94fb85b80e..bea79e971c4ca0ef2b3e63113c5d4f2c76420383 100644 (file)
@@ -32,7 +32,7 @@ if ($section = optional_param('section', '', PARAM_ALPHAEXT) and confirm_sesskey
 
     } else {
 
-        error(get_string('invaludsection','admin'));
+        error(get_string('invalidsection','admin'));
         die;
 
     }
index fdd8086680cfb384ce70985e9a34cb9aab9b56d6..510edc5da43c62c25abb83e151591706026ff1f1 100644 (file)
@@ -30,7 +30,7 @@ class blog_edit_form extends moodleform {
         $mform->addElement('file', 'attachment', get_string('attachment', 'forum'));
 
         $mform->addElement('select', 'publishstate', get_string('publishto', 'blog'), blog_applicable_publish_states());
-        $mform->setHelpButton('publishstate', array('publish_state', get_string('helppublish', 'blog'), 'blog'));
+        $mform->setHelpButton('publishstate', array('publish_state', get_string('publishto', 'blog'), 'blog'));
 
 
         if (!empty($CFG->usetags)) {
index 36d1797f20040a16e28a06ebdd64849085727dd2..e6a2b010440442504d8d64ba72dd585709b78689 100644 (file)
@@ -66,7 +66,7 @@ class edit_item_form extends moodleform {
             }
         }
         $mform->addElement('select', 'scaleid', get_string('scale'), $options);
-        $mform->setHelpButton('scaleid', array(false, get_string('scaleid', 'grades'),
+        $mform->setHelpButton('scaleid', array(false, get_string('scale'),
                 false, true, false, get_string('scaleidhelp', 'grades', get_string('gradeitem', 'grades'))));
         $mform->disabledIf('scaleid', 'gradetype', 'noteq', GRADE_TYPE_SCALE);
 
@@ -340,14 +340,14 @@ class edit_item_form extends moodleform {
 
         if (array_key_exists('gradetype', $data) and $data['gradetype'] == GRADE_TYPE_SCALE) {
             if (empty($data['scaleid'])) {
-                $errors['scaleid'] = get_String('missingscale', 'grades');
+                $errors['scaleid'] = get_string('missingscale', 'grades');
             }
         }
 
         if (array_key_exists('grademin', $data) and array_key_exists('grademax', $data)) {
             if ($data['grademax'] == $data['grademin'] or $data['grademax'] < $data['grademin']) {
-                $errors['grademin'] = get_String('incorrectminmax', 'grades');
-                $errors['grademax'] = get_String('incorrectminmax', 'grades');
+                $errors['grademin'] = get_string('incorrectminmax', 'grades');
+                $errors['grademax'] = get_string('incorrectminmax', 'grades');
             }
         }
 
index ea48243d5c8661cf8ba6d966e5f3da5952636ab3..8104e0b8482e2161fa7f89f917dd2359684d23dd 100644 (file)
@@ -53,7 +53,7 @@ class edit_outcomeitem_form extends moodleform {
             }
         }
         $mform->addElement('select', 'outcomeid', get_string('outcome', 'grades'), $options);
-        $mform->setHelpButton('outcomeid', array(false, get_string('outcomeid', 'grades'),
+        $mform->setHelpButton('outcomeid', array(false, get_string('outcome', 'grades'),
                 false, true, false, get_string('outcomeidhelp', 'grades')));
         $mform->addRule('outcomeid', get_string('required'), 'required');
 
index 71c6288bec158fa9fc64c268e9cca0c863d95519..e019cdc4492314b34deb2400d1db4b70cedaa9d7 100644 (file)
@@ -61,11 +61,11 @@ function import_xml_grades($text, $course, &$error) {
                 break;
             }
 
-            // check if user exist and convert idnember to user id
+            // check if user exist and convert idnumber to user id
             if (!$user = get_record('user', 'idnumber', addslashes($result['#']['student'][0]['#']))) {
                 // no user found, abort
                 $status = false;
-                $error = get_string('baduserid', 'grades');
+                $error = get_string('baduser', 'grades');
                 break;
             }
 
index 52cd3c729c8d0aeb98e5075ff52a9aec5d7473a6..3d543d750d38f281a78ba385d47b3dfaf37812e3 100644 (file)
@@ -1144,6 +1144,7 @@ $string['paymentsorry'] = 'Thank you for your payment!  Unfortunately your payme
 $string['paymentthanks'] = 'Thank you for your payment!  You are now enrolled in your course:<br />\"$a\"';
 $string['people'] = 'People';
 $string['periodending'] = 'Period ending ($a)';
+$string['personal'] = 'Personal';
 $string['personalprofile'] = 'Personal profile';
 $string['pictureof'] = 'Picture of $a';
 $string['phone'] = 'Phone';
index 854956047c17cbd0e85efe978521612c4addc4e0..8e8fb71214ab447bed3bd759b437197f66d6fa71 100755 (executable)
@@ -1938,12 +1938,10 @@ class PresetImporter {
         }
 
         $strblank = get_string('blank', 'data');
-        $strnofields = get_string('nofields', 'data');
         $strcontinue = get_string('continue');
         $strwarning = get_string('mappingwarning', 'data');
         $strfieldmappings = get_string('fieldmappings', 'data');
         $strnew = get_string('new');
-        $strold = get_string('old');
 
         $sesskey = sesskey();
 
index 5d8884f378952e994fb6f5bc0529141c526ee84d..28fe34c149cb37f1f06c80e1c82c5ebb1563ecc8 100644 (file)
@@ -380,12 +380,10 @@ class Data_Preset
         }
 
         $strblank = get_string('blank', 'data');
-        $strnofields = get_string('nofields', 'data');
         $strcontinue = get_string('continue');
         $strwarning = get_string('mappingwarning', 'data');
         $strfieldmappings = get_string('fieldmappings', 'data');
         $strnew = get_string('new');
-        $strold = get_string('old');
 
         $sesskey = sesskey();
 
index 4d405854129755e48322939334272dacbb78d42e..bb1acf3e64d09514aa53593ce4be9960af488b0e 100755 (executable)
     if ($mode != 'csstemplate' and $mode != 'jstemplate') {
         // Add all the available fields for this data.
         echo '<label for="availabletags">'.get_string('availabletags','data').'</label>';
-        helpbutton('tags', get_string('tags','data'), 'data');
+        helpbutton('tags', get_string('tags'), 'data');
         echo '<br />';
 
 
index 09ea913606eeda06e3001f7fd81ae4915ccbdae8..2632abc6b03d366080e64c341d9d33e2109c2dda 100644 (file)
@@ -145,7 +145,7 @@ class mod_forum_mod_form extends moodleform_mod {
         //we want the form to display them if they are set.
         if ($typevalue[0]=='news'){
             $type->addOption(get_string('namenews', 'forum'), 'news');
-            $type->setHelpButton(array('forumtypenews', get_string('forumtypenews', 'forum'), 'forum'));
+            $type->setHelpButton(array('forumtypenews', get_string('forumtype', 'forum'), 'forum'));
             $type->freeze();
             $type->setPersistantFreeze(true);
         }
index 3fbcfebc8e483fcca71393ae0367d35e68f0478b..26c96b88ce6454fcc8e24b966170a77e46004112 100644 (file)
@@ -92,7 +92,7 @@
     } else {  // subscribe
         if ($forum->forcesubscribe == FORUM_DISALLOWSUBSCRIBE &&
                     !has_capability('mod/forum:managesubscriptions', $context)) {
-            error(get_string('disallowsubscribe'),$_SERVER["HTTP_REFERER"]);
+            error(get_string('disallowsubscribe', 'forum'),$_SERVER["HTTP_REFERER"]);
         }
         if (!has_capability('mod/forum:viewdiscussion', $context)) {
             error("Could not subscribe you to that forum", $_SERVER["HTTP_REFERER"]);
index babd21ed2d9ba1cb2052d4f0dc54038dbc697329..79b1414c22c9d890b1197e265b7f540ada899701 100644 (file)
@@ -49,7 +49,7 @@ class mod_lesson_mod_form extends moodleform_mod {
         }
         $mform->addElement('select', 'maxanswers', get_string('maximumnumberofanswersbranches', 'lesson'), $numbers);
         $mform->setDefault('maxanswers', 4);
-        $mform->setHelpButton('maxanswers', array('maxanswers', get_string('displayformat', 'lesson'), 'lesson'));
+        $mform->setHelpButton('maxanswers', array('maxanswers', get_string('maximumnumberofanswersbranches', 'lesson'), 'lesson'));
 
 //-------------------------------------------------------------------------------
         $mform->addElement('header', '', get_string('gradeoptions', 'lesson'));
@@ -68,7 +68,7 @@ class mod_lesson_mod_form extends moodleform_mod {
         }
         $mform->addElement('select', 'grade', get_string('maximumgrade'), $grades);
         $mform->setDefault('grade', 0);
-        $mform->setHelpButton('grade', array('grade', get_string('maximumgrade', 'lesson'), 'lesson'));
+        $mform->setHelpButton('grade', array('grade', get_string('maximumgrade'), 'lesson'));
 
         $mform->addElement('selectyesno', 'retake', get_string('canretake', 'lesson', $COURSE->student));
         $mform->setHelpButton('retake', array('retake', get_string('canretake', 'lesson', $COURSE->student), 'lesson'));
@@ -203,7 +203,7 @@ class mod_lesson_mod_form extends moodleform_mod {
             }
         }
         $mform->addElement('select', 'dependency', get_string('dependencyon', 'lesson'), $options);
-        $mform->setHelpButton('dependency', array('dependency', get_string('dependency', 'lesson'), 'lesson'));
+        $mform->setHelpButton('dependency', array('dependency', get_string('dependencyon', 'lesson'), 'lesson'));
         $mform->setDefault('dependency', 0);
 
         $mform->addElement('text', 'timespent', get_string('timespentminutes', 'lesson'));
index ed27632aaedaa79edf7d7975c27d11f474ba5d87..0114098792ee94d84e1df00116a3b3bd9daefc93 100644 (file)
         $perpage[0] = get_string('allinone', 'quiz');
 
         choose_from_menu($perpage, 'questionsperpage', $form->questionsperpage, '');
-        helpbutton('questionsperpage', get_string('questionsperpage'), 'quiz');
+        helpbutton('questionsperpage', get_string('questionsperpage', 'quiz'), 'quiz');
      ?>
     </td>
   <td align="center">
index 4e44355d65ab65385e7678d5a4f8b86aeaad55b6..693c166fb29a9a8c71489fc24c3844f276426549 100644 (file)
@@ -353,7 +353,7 @@ function quiz_print_question_list($quiz, $pageurl, $allowdelete=true, $showbreak
     echo ' onchange="getElementById(\'showbreaks\').submit(); return true;" />';
     print_string('reordertool', 'quiz');
     echo ' ';
-    helpbutton('reorderingtool', get_string('reorderingtool', 'quiz'), 'quiz');
+    helpbutton('reorderingtool', get_string('reordertool', 'quiz'), 'quiz');
     
     echo '<div class="quizquestionlistcontrols"><input type="submit" name="repaginate" value="'. get_string('go') .'" /></div>';
     echo '</fieldset>';
index cdfdaa8fc62ad6ccc6ee5d7561ad41893d0d24de..289852ad01d810a7a1d9c4b2b273e439432fae54 100644 (file)
@@ -7,7 +7,6 @@ class quiz_report extends quiz_default_report {
 
     function display($quiz, $cm, $course) {     /// This function just displays the report
         global $CFG, $SESSION, $QTYPES;
-        $strnoquiz = get_string('noquiz','quiz');
         $strnoattempts = get_string('noattempts','quiz');
     /// Only print headers if not asked to download data
         $download = optional_param('download', NULL);
index e32aa95a65ff0d96a0c9e3a6226c48ea34df2288..abb8dbb6634e593ea502e826a4be7f762914ebdd 100644 (file)
@@ -86,7 +86,6 @@
 /// Print the page header
 
     $strquizzes = get_string('modulenameplural', 'quiz');
-    $strreviewquestion  = get_string('reviewquestion', 'quiz');
 
     print_header();
 
index 0dd3dca01a0a2c28919a96dff781d1b09d5a7f60..5d70b6379438278e154a73de7ba12f2c4de27128 100644 (file)
@@ -966,7 +966,6 @@ class question_calculated_qtype extends question_dataset_dependent_questiontype
         $maxstr=get_string('max', 'quiz');
         $rangeofvaluestr=get_string('minmax','qtype_datasetdependent');
         $questionusingstr = get_string('usedinquestion','qtype_calculated');
-        $wildcardstr =  get_string('wildcard', 'qtype_calculated');
         $itemscountstr = get_string('itemscount','qtype_datasetdependent');
        $text ='';
         if (!empty($form->category)) {