Showing month name in another language?
Permalink
Hi guys,
I'm struggling with this: I have installed the Pro Events blog, which works fine. But as my website is in Danish, I would like it to show the months and weekday names in Danish instead of English.
However, no matter what I do, it keeps showing in English.
I tried to add the following to my site.php, but it doesn't help:
define('LOCALE', 'da_DK');
setlocale (LC_TIME, 'da_DK');
Any help is really appreciated :)
Thank you,
Jesper
I'm struggling with this: I have installed the Pro Events blog, which works fine. But as my website is in Danish, I would like it to show the months and weekday names in Danish instead of English.
However, no matter what I do, it keeps showing in English.
I tried to add the following to my site.php, but it doesn't help:
define('LOCALE', 'da_DK');
setlocale (LC_TIME, 'da_DK');
Any help is really appreciated :)
Thank you,
Jesper
Hi Jesper,
if a package uses $cobj->getCollectionDatePublic() in the view template the monthnames are not translated. You can try to find the spots where this command is used and replace it with a call of the strftime() function.
See other options for strftime here:http://php.net/manual/en/function.strftime.php...
Please note that your server needs to have the proper locale installed for the desired language.
Also have a look at this threadhttp://www.concrete5.org/community/forums/usage/set-locale-on-date-...
Patrick
if a package uses $cobj->getCollectionDatePublic() in the view template the monthnames are not translated. You can try to find the spots where this command is used and replace it with a call of the strftime() function.
See other options for strftime here:http://php.net/manual/en/function.strftime.php...
Please note that your server needs to have the proper locale installed for the desired language.
Also have a look at this threadhttp://www.concrete5.org/community/forums/usage/set-locale-on-date-...
Patrick
It says "Setup as many different languages as you want with this free add-on. You get complete flexibility for each language, but also the ability to quickly jump from one translation to another as you navigate the site."
Want more translation tools? Check out the enterprise version.
Screencasts
Introduction to Internationalization with concrete5
http://www.youtube.com/watch?v=Hd936iaDLqw&feature=player_embed...
More Internationalization Add-On Features
http://www.youtube.com/watch?v=kPh7mKkYm4Y...
Demo Access-http://i18ndemo.c5host.com/index.php/en/...
Click the demo button above, and login using the following username and password:
u: demo
p: 12345
Im not exactly sure if this for you but it may help.