Forums

CF_5 datepicker locale

halumme 29 Jul, 2015
Hi,
I am trying to customize the datepicker to work in Finnish. The tutorial trick using JS like:
<?php
$lang =& JFactory::getLanguage();
$tag = $lang->getTag();
echo "Locale.use('{$tag}');";
?>

does not work. The datepicker actually stops working. If I use simply "locale.use('fi-FI')" the result is the same.

The datepicker user settings for days of the week names and month names also work incorrectly. The delimiter seems to be tricky, since now, using single quotes and comma delimiter, only seven first characters of the string (quotes and spaces included), are used for the seven days, respectively. Same problem with month names.

So currently all attempts to customize the language have failed. Any ideas??

regards, Harri
GreyHead 30 Jul, 2015
Hi Harri,

Please see this FAQ - I think that the one you found was for CFv4.

Bob
This topic is locked and no more replies can be posted.