This is made with the datepicker of jquery. I already tried to localize with my own ui.datepicker-de.js, but its not being recognized.
So i checked more where it gets initialized. Looks like Boonex calls it in inc/classes/BxDolForm.php and there is also some code to check for the languages, but honestly, i don't understand what is being done there
$aCss = array(
'forms_adv.css',
'plugins/jquery/themes/|calendar-blue.css',
'plugins/jquery/themes/|ui.datepicker.css'
);
$aCalendarLangs = array ('en' => 1, 'af' => 1, 'al' => 1, 'bg' => 1, 'br' => 1, 'ca' => 1, 'cs' => 1, 'da' => 1, 'de' => 1, 'du' => 1, 'el' => 1, 'es' => 1, 'fi' => 1, 'fr' => 1, 'he' => 1, 'hr' =$
$aJs = array(
'jquery.dynDateTime.js',
'plugins/jquery/langs/|calendar-' . (isset($aCalendarLangs[$GLOBALS['sCurrentLanguage']]) ? $GLOBALS['sCurrentLanguage'] : 'en') . '.js',
'ui.core.js',
'ui.slider.js',
'ui.datepicker.js'
);
if(isset($GLOBALS['oSysTemplate'])) {
$GLOBALS['oSysTemplate']->addJs($aJs);
$GLOBALS['oSysTemplate']->addCss($aCss);
}
if(isset($GLOBALS['oAdmTemplate'])) {
$GLOBALS['oAdmTemplate']->addJs($aJs);
$GLOBALS['oAdmTemplate']->addCss($aCss);
}
I even tried to force it to "-de" but its not working, it is always in english. How i can init the control to use the browser language or the default index page language?
Maybe i have to put it in a header where the java script is being written to? Someone from boonex can tell me where i can switch the language based on the browser lang? I want german users have a german date picker control and all others a english one.
Check my GeoDistance, Watermark, TorBlock and Android Push Notifications mods | http://goo.gl/H3Vp81