Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Resolved Wrong localisation for the datepicker
#1
Hi,

When installing version 1.4.0, with the French translation, the datepicker is in some Asian language.
Reply
#2
Hi,

we are going to release the minor version 1.4.1 that fixes this problem.

However, you can fix it by editing the protected\extensions\datepicker\EJuiDatePicker.php file as follows:

PHP Code:
   if ($this->language != '' && $this->language != 'en') {
 
     $this->registerScriptFile($this->i18nScriptFile);
 
     $lang explode('_'$this->language);
 
     if (count($lang) === 1)
 
       $lang $lang[0];
 
     else
        $lang 
$lang[0] . '-' strtoupper($lang[1]);
 
     $js "jQuery('#{$id}').datepicker(jQuery.extend({showMonthAfterYear:false},jQuery.datepicker.regional['{$lang}'],{$options}));";
 
   
Occasio ægre offertur, facile amittitur.
(A good opportunity is seldom presented, and is easily lost.)
Publilius Syrus
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)