Date language in News Module

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
jem71

Date language in News Module

Post by jem71 »

Ive tried searching for this answer but could only find unanswered queries.

Does anyone know where/how I can change the month language in the News Module. Currently news items are displayed with English Months - I need to change that but I just cant find where.....anyone????

thanks
Nogga

Re: Date language in News Module

Post by Nogga »

It depends on your server's settings. The PHP-command get's the day-description directly from the server settings.

You should use the numbered month or you have to write a little tag yourself (I can help you, if you want to)
mahjong

Re: Date language in News Module

Post by mahjong »

By default, CMSMS uses the server's default. But, you can force it to use another language default for date function by specifing a Locale in the config.php file.

For instance, for French :

Code: Select all

#------------------------
#Locale/Encoding Settings
#------------------------

#Locale to use for various default date handling functions, etc.  Leaving
#this blank will use the server's default.  This might not be good if the
#site is hosted in a different country than it's intended audience.
$config['locale'] = 'French';
Or, create a User Defined Tag with

Code: Select all

setlocale(LC_TIME, 'french');
inside. Call it SetLocale and add it on top of templates where you want the language settings modified :

Code: Select all

{SetLocal}
http://www.php.net/setlocale
Last edited by mahjong on Thu Aug 10, 2006 12:51 pm, edited 1 time in total.
cyberman

Re: Date language in News Module

Post by cyberman »

mahjong wrote: But, you can force it to use another language default for date function by specifing a Locale in the config.php file.

For instance, for French :

Code: Select all

#------------------------
#Locale/Encoding Settings
#------------------------

#Locale to use for various default date handling functions, etc.  Leaving
#this blank will use the server's default.  This might not be good if the
#site is hosted in a different country than it's intended audience.
$config['locale'] = 'French';
Hmm, are you sure? Shouldn't it be something link this?

$config['locale'] = 'fr_FR';
jem71

Re: Date language in News Module

Post by jem71 »

Thanks for the replies - will give it ago and write back with any succeses/failures!
Locked

Return to “CMSMS Core”