Page 1 of 1
Date language in News Module
Posted: Thu Aug 10, 2006 10:15 am
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
Re: Date language in News Module
Posted: Thu Aug 10, 2006 11:48 am
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)
Re: Date language in News Module
Posted: Thu Aug 10, 2006 12:49 pm
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
inside. Call it SetLocale and add it on top of templates where you want the language settings modified :
http://www.php.net/setlocale
Re: Date language in News Module
Posted: Thu Aug 10, 2006 2:25 pm
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';
Re: Date language in News Module
Posted: Sun Aug 13, 2006 8:49 pm
by jem71
Thanks for the replies - will give it ago and write back with any succeses/failures!