]> git.mjollnir.org Git - moodle.git/commitdiff
added some strings for labels for dateselector and datetimeselector day, month etc...
authorjamiesensei <jamiesensei>
Thu, 7 Dec 2006 05:37:41 +0000 (05:37 +0000)
committerjamiesensei <jamiesensei>
Thu, 7 Dec 2006 05:37:41 +0000 (05:37 +0000)
lang/en_utf8/form.php
lib/form/dateselector.php
lib/form/datetimeselector.php

index d67d2f2588db47489fd312cfef2805ced42f7a39..90ce2018bc0497b5291d437ec6d0309ffe80d19e 100644 (file)
@@ -20,4 +20,9 @@ $string['general'] = 'General Settings';
 $string['modstandardels']='Common Module Settings';
 $string['miscellaneoussettings']='Miscellaneous Settings';
 $string['addfields']='Add $a fields to form';
+$string['day']='Day';
+$string['month']='Month';
+$string['year']='Year';
+$string['hour']='Hour';
+$string['minute']='Minute';
 ?>
\ No newline at end of file
index 8c7765d1a9721dec26c143ff6d7163c03f2fc322..f59108d5d8c78d6dd723f70df2a2beea479da3e9 100644 (file)
@@ -76,9 +76,9 @@ class MoodleQuickForm_date_selector extends MoodleQuickForm_group
         for ($i=$this->_options['startyear']; $i<=$this->_options['stopyear']; $i++) {
             $years[$i] = $i;
         }
-        $this->_elements[] =& MoodleQuickForm::createElement('select', 'day', null, $days, $this->getAttributes(), true);
-        $this->_elements[] =& MoodleQuickForm::createElement('select', 'month', null, $months, $this->getAttributes(), true);
-        $this->_elements[] =& MoodleQuickForm::createElement('select', 'year', null, $years, $this->getAttributes(), true);
+        $this->_elements[] =& MoodleQuickForm::createElement('select', 'day', get_string('day', 'form'), $days, $this->getAttributes(), true);
+        $this->_elements[] =& MoodleQuickForm::createElement('select', 'month', get_string('month', 'form'), $months, $this->getAttributes(), true);
+        $this->_elements[] =& MoodleQuickForm::createElement('select', 'year', get_string('year', 'form'), $years, $this->getAttributes(), true);
         // If optional we add a checkbox (no text) which the user can use to turn if on
         if($this->_options['optional']) {
             $this->_elements[] =& MoodleQuickForm::createElement('checkbox','on', null, get_string('enable'), $this->getAttributes(), true);
index d13fc61821754bd62da2670fabb00f29cd9322de..1152e0325fccf1e0d52f5d4865853ad4cd32f3c1 100644 (file)
@@ -83,11 +83,11 @@ class MoodleQuickForm_date_time_selector extends MoodleQuickForm_group{
         for ($i=0; $i<60; $i+=$this->_options['step']) {
             $minutes[$i] = sprintf("%02d",$i);
         }
-        $this->_elements[] =& MoodleQuickForm::createElement('select', 'day', null, $days, $this->getAttributes(), true);
-        $this->_elements[] =& MoodleQuickForm::createElement('select', 'month', null, $months, $this->getAttributes(), true);
-        $this->_elements[] =& MoodleQuickForm::createElement('select', 'year', null, $years, $this->getAttributes(), true);
-        $this->_elements[] =& MoodleQuickForm::createElement('select', 'hour', null, $hours, $this->getAttributes(), true);
-        $this->_elements[] =& MoodleQuickForm::createElement('select', 'minute', null, $minutes, $this->getAttributes(), true);
+        $this->_elements[] =& MoodleQuickForm::createElement('select', 'day', get_string('day', 'form'), $days, $this->getAttributes(), true);
+        $this->_elements[] =& MoodleQuickForm::createElement('select', 'month', get_string('month', 'form'), $months, $this->getAttributes(), true);
+        $this->_elements[] =& MoodleQuickForm::createElement('select', 'year', get_string('year', 'form'), $years, $this->getAttributes(), true);
+        $this->_elements[] =& MoodleQuickForm::createElement('select', 'hour', get_string('hour', 'form'), $hours, $this->getAttributes(), true);
+        $this->_elements[] =& MoodleQuickForm::createElement('select', 'minute', get_string('minute', 'form'), $minutes, $this->getAttributes(), true);
 
         $this->setValue();
     }