I've made several sites with CMSMS, but this time I really won't get this thing work. I'ts about the dates shown in newsitems en the calendar, which appear in English and I'd like to have them in Dutch. On other sites where I had this problem, the provider installed/activated the Dutch language pack and since then it works fine. Only, this time the provider won't help because (he said) the language packs are correctly installed and active as I can see here: http://php5.solcon.nl.
It doesn't matter which frontend language I choose, the dates keep appearing in English. My news-module tag is {news category='Nieuws' moretext='Lees verder...' detailpage='nieuws' number='3' lang='nl_NL'}. I've also checked my local-settings in config.php but it makes no sense.
I'm using CMSMS 1.9.2 and hope somebody can help me.
News and calendar date format in Dutch
Re: News and calendar date format in Dutch
Did you set the front end to be Dutch?...
Re: News and calendar date format in Dutch
Yes. And I've made a setlocale-test file (http://www.dylangrouprunners.nl/2011/setlocaletest.php) and also there the dates are in English.
This is my php-code used in the test-file:
This is my php-code used in the test-file:
Code: Select all
<?php
/* Set locale to Dutch */
setlocale(LC_ALL, 'nl_NL');
/* Output: vrijdag 22 december 1978 */
echo strftime("%A %e %B %Y", mktime(0, 0, 0, 12, 22, 1978));
?>
Re: News and calendar date format in Dutch
Is your server running Windows server?
I had the same problem with a clients server with Finnish language.
The reason was that in a Windows server the locale format is different.
Try this:
Or:
I had the same problem with a clients server with Finnish language.
The reason was that in a Windows server the locale format is different.
Try this:
Code: Select all
setlocale(LC_ALL, 'nld');
Code: Select all
setlocale(LC_ALL, 'dutch');