Page 1 of 1

[Solved] Module news date format with MLE edition

Posted: Mon Mar 09, 2009 1:39 pm
by synergie
I have a website in MLE 1.5.2, it rocks!

but in the news module I want to display the date in the local language :

in EN : "09 March 2009 "
in FR: "09 Mars 2009 "

I try that in "gabarit" :

{if $entry->postdate}

{$entry->postdate|cms_date_format:"%d%B%Y" lang="fr_FR"}

{/if}

Thant in page :
{news number="5" detailpage="news" lang="fr_FR"}


but it always display : "09 March 2009 " !!

I try to empty the cache... but how to put the date in other language? please!  ???

Re: Module news date format with MLE edition

Posted: Mon Mar 09, 2009 1:48 pm
by alby
synergie wrote: but it always display : "09 March 2009 " !!
Check better for your server locale and sets in config_lang.php

Alby

Re: Module news date format with MLE edition

Posted: Mon Mar 09, 2009 2:12 pm
by synergie
alby wrote:
synergie wrote: but it always display : "09 March 2009 " !!
Check better for your server locale and sets in config_lang.php

Alby
No it is not the problem.

Config lang is perfect, it is working very well front and backend.

Juste this date problem!

Re: Module news date format with MLE edition

Posted: Mon Mar 09, 2009 2:42 pm
by alby
synergie wrote:
alby wrote:
synergie wrote: but it always display : "09 March 2009 " !!
Check better for your server locale and sets in config_lang.php

Alby
No it is not the problem.

Config lang is perfect, it is working very well front and backend.

Juste this date problem!
cms_date_format use strftime() php function and it's locale dependant

Alby

Re: [Solved] Module news date format with MLE edition

Posted: Mon Mar 09, 2009 3:20 pm
by synergie
thanks