Solved - URGENT - Changing date format in News Area

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
afri-can

Solved - URGENT - Changing date format in News Area

Post 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
Last edited by afri-can on Mon Oct 15, 2007 4:33 pm, edited 1 time in total.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: URGENT - Changing date format in News Area

Post 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
afri-can

Re: URGENT - Changing date format in News Area

Post 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
Last edited by afri-can on Mon Oct 15, 2007 3:08 pm, edited 1 time in total.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: URGENT - Changing date format in News Area

Post 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
afri-can

Solved - URGENT - Changing date format in News Area

Post by afri-can »

Yes I missed it when reading the link
It also works with UTF-8 on my server

Thanks

;D
Locked

Return to “CMSMS Core”