Posted on: 05/23/06 06:04pm
By: casper
I moved a site to a new server, and after that the language for the day of the week has changed.
This is the date/time in the "welcome to site".
Date/time for stories etc are shown in the prefered language (norwegian) as before.
It also appears that the switches for php(date) (I%,s& etc) does not return what the manual on php.net states..
Does anyone have an answear to this? My host sure did not :p
Date-Wrong language
Posted on: 05/24/06 01:58am
By: Dirk
Set the $_CONF['locale'] correctly.
bye, Dirk
Date-Wrong language
Posted on: 05/24/06 03:36am
By: casper
[QUOTE BY= casper]
Date/time for stories etc are shown in the prefered language (norwegian) as before.
[/QUOTE]
So the conf_locale are set correctly.
The question are why the {datetime} variable does not show in the choosen language.
EDIT:
I just found when testing on some testinstallations that it for me looks like a problem with GL 1.4.0. Changing locale settings on this version does not have any effect, but with older versions all back to 1.3.8 the locale settings are working...
Date-Wrong language
Posted on: 05/24/06 03:42pm
By: Dirk
[QUOTE BY= casper] I just found when testing on some testinstallations that it for me looks like a problem with GL 1.4.0. Changing locale settings on this version does not have any effect, but with older versions all back to 1.3.8 the locale settings are working...[/QUOTE]
I doubt that. Locale handling hasn't changed in a while.
Which language are we talking about? It's possible that the locale is not installed on the server. Also, the syntax is different for Windows and Unix/Linux servers.
bye, Dirk
Date-Wrong language
Posted on: 05/24/06 04:27pm
By: casper
Thanks for your replies Dirk!
This is from my config.php
$_CONF['language'] = 'norsk';
$_CONF['locale'] = 'no-NO';
$_CONF['date'] = '%a, %d %B %Y kl %H:%M ';
$_CONF['daytime'] = '%d/%m %H:%M%p';
$_CONF['shortdate'] = '%x';
$_CONF['dateonly'] = '%d-%b';
$_CONF['timeonly'] = '%H:%M';
$_CONF['week_start'] = 'Mon'; // can be 'Sun' or 'Mon'
$_CONF['default_charset'] = 'iso-8859-1';
The language are norwegian (norsk)
Can it be the server?
Language for day and month in articles, user last login, user regdate, calendar, osv are shown in norwegian now. The only shown in english are the site time&date-{datetime}
Date-Wrong language
Posted on: 05/24/06 04:47pm
By: Dirk
[QUOTE BY= casper] The language are norwegian (norsk)[/QUOTE]
For which the correct locale would be 'no_NO'
- note the underscore.
bye, Dirk
Date-Wrong language
Posted on: 05/24/06 04:51pm
By: casper
OMFG
I should be banned from touching a computer!
Really sorry for the waste of your time Dirk! *lol*
But one question: Now it surely works, but why was datetime the only one affected? All other dates and times was shown in norwegian..
Date-Wrong language
Posted on: 05/24/06 04:55pm
By: Dirk
[QUOTE BY= casper] But one question: Now it surely works, but why was datetime the only one affected? All other dates and times was shown in norwegian..[/QUOTE]
In some places, the week and month names come from the language file, in others, it depends on the locale setting. It's actually a bit messy, but only shows through when the language and locale don't match - as in your case ...
bye, Dirk
Date-Wrong language
Posted on: 05/24/06 05:04pm
By: casper
Sounds much more logical than my characterknowledge
Thanks Dirk!