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
Date language in News Module
-
Nogga
Re: Date language in News Module
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)
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
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 :
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
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';
Code: Select all
setlocale(LC_TIME, 'french');Code: Select all
{SetLocal}
Last edited by mahjong on Thu Aug 10, 2006 12:51 pm, edited 1 time in total.
-
cyberman
Re: Date language in News Module
Hmm, are you sure? Shouldn't it be something link this?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';
$config['locale'] = 'fr_FR';
-
jem71
Re: Date language in News Module
Thanks for the replies - will give it ago and write back with any succeses/failures!
