News and calendar date format in Dutch

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
Arno

News and calendar date format in Dutch

Post by Arno »

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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: News and calendar date format in Dutch

Post by Dr.CSS »

Did you set the front end to be Dutch?...
Arno

Re: News and calendar date format in Dutch

Post by Arno »

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:

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));
?>
Hypocrite
Forum Members
Forum Members
Posts: 48
Joined: Wed Aug 26, 2009 6:25 am

Re: News and calendar date format in Dutch

Post by Hypocrite »

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:

Code: Select all

setlocale(LC_ALL, 'nld');
Or:

Code: Select all

setlocale(LC_ALL, 'dutch');
Arno

Re: News and calendar date format in Dutch

Post by Arno »

I've tried them both, bot it won't work :-\
Locked

Return to “[locked] Installation, Setup and Upgrade”