Different translation for datepicker / timepicker
-
I found a little issue in your plugin. In datetimepicker.php you set the locale like this:
if ($regional) return ".{$this->type}('option', $.datepicker.regional['{$regional}'])";
If you change that to
if ($regional) { if($this->type =='timepicker'){ return ".{$this->type}('option', $.timepicker.regional['{$regional}'])"; } else { return ".{$this->type}('option', $.datepicker.regional['{$regional}'])"; } }
one could have different words for date- and timepicker. Example: currentText in datepicker should say ‘Today’, the same var in timepicker should say ‘Now’.
Tested and works like a charm!
- The topic ‘Different translation for datepicker / timepicker’ is closed to new replies.