Page 1 of 1

Solved - URGENT - Changing date format in News Area

Posted: Mon Oct 15, 2007 12:07 pm
by afri-can
I have created a multi language site using CMSMS
I have made a NEWS area for both languages Dutch and English
In the dutch area I call a section like this
{news detailpage='artikelen in the media' category="artikelen in the media" dateformat="%e, %B %G" lang="nl_NL"}
The lang="nl_NL" changes the more to meer which is good but the date format does not change to Dutch March to maart.
If I change the "Default language for the frontend:" to Dutch it changes the date through out the site to the correct format, so I know that I can change the date format but I want it only to change in the Dutch pages

I have tried inserting the following code that worked for me in the blog http://www.blog.founter.com/dut/
I need some code that I can insert in the Dutch template that will change the dates to the correct formats
Maybe I can create a template to call in the dutch posts

See the date format on the top of each post:

Dutch: http://www.founter.com/demo/index.php?page=artikelen-in-de-media
English: http://www.founter.com/demo/index.php?page=artikelen-in-de-media

Don't take notice of the text in the english articles they still need to be translated to English

I would appreciate help A.S.A.P, this site is supposed to go live today
I did try dates in this format 27/03/07 but the customer requested 27 maart, 2007 for Dutch and March 27, 2007 for the english

Thanks in advance
Steven

Re: URGENT - Changing date format in News Area

Posted: Mon Oct 15, 2007 1:23 pm
by RonnyK
Steven,

did you try creating a UDT, that can be called just infront of the NEWS-calling.

http://forum.cmsmadesimple.org/index.ph ... l#msg10272

Ronny

Re: URGENT - Changing date format in News Area

Posted: Mon Oct 15, 2007 2:56 pm
by afri-can
Got it


http://forum.cmsmadesimple.org/index.php/topic,1780.msg10272.html#msg10272

Just make sure you put the {setlocale} tag fist

Re: URGENT - Changing date format in News Area

Posted: Mon Oct 15, 2007 3:24 pm
by RonnyK
Steven,

that is why is said to call the UDT infront of the news-calling.

If it is solved, will you mark the subjectline of the initial post as solved.

Ronny

Solved - URGENT - Changing date format in News Area

Posted: Mon Oct 15, 2007 4:34 pm
by afri-can
Yes I missed it when reading the link
It also works with UTF-8 on my server

Thanks

;D