MDL-22050 removing moodle/langconfig duplicates
authorPetr Skoda <skodak@moodle.org>
Sat, 10 Apr 2010 17:44:05 +0000 (17:44 +0000)
committerPetr Skoda <skodak@moodle.org>
Sat, 10 Apr 2010 17:44:05 +0000 (17:44 +0000)
AMOS BEGIN
  MOV [firstdayofweek,core],[firstdayofweek,core_langconfig]
AMOS END

calendar/lib.php
lang/en/moodle.php
lib/formslib.php

index c3015a1..d9bdc9f 100644 (file)
@@ -73,7 +73,7 @@ function calendar_get_starting_weekday() {
     if (isset($CFG->calendar_startwday)) {
         $firstday = $CFG->calendar_startwday;
     } else {
-        $firstday = get_string('firstdayofweek');
+        $firstday = get_string('firstdayofweek', 'langconfig');
     }
 
     if(!is_numeric($firstday)) {
index dcbb5c8..a6e17ee 100644 (file)
@@ -688,7 +688,6 @@ $string['filloutallfields'] = 'Please fill out all fields in this form';
 $string['filter'] = 'Filter';
 $string['findmorecourses'] = 'Find more courses...';
 $string['firstaccess'] = 'First access';
-$string['firstdayofweek'] = '0';
 $string['firstname'] = 'First name';
 $string['firsttime'] = 'Is this your first time here?';
 $string['flashlinkmessage'] = 'Please upgrade your Flash player now:';
index 0e48c40..d667de4 100644 (file)
@@ -72,7 +72,7 @@ function form_init_date_js() {
         $PAGE->requires->yui2_lib('calendar');
         $PAGE->requires->yui2_lib('container');
         $PAGE->requires->js_function_call('init_date_selectors',
-                array(get_string('firstdayofweek')));
+                array(get_string('firstdayofweek', 'langconfig')));
         $done = true;
     }
 }