Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 12:11 pm EST
Geeklog Forums
Date-Wrong language
Status: offline
casper
Forum User
Full Member
Registered: 02/11/04
Posts: 142
Location:Skien, Norway
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
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
13
14
Quote
Status: offline
casper
Forum User
Full Member
Registered: 02/11/04
Posts: 142
Location:Skien, Norway
Quote by casper:
Date/time for stories etc are shown in the prefered language (norwegian) as before.
Date/time for stories etc are shown in the prefered language (norwegian) as before.
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...
11
14
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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...
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
15
11
Quote
Status: offline
casper
Forum User
Full Member
Registered: 02/11/04
Posts: 142
Location:Skien, Norway
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}
This is from my config.php
Text Formatted Code
$_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}
12
13
Quote
Status: offline
casper
Forum User
Full Member
Registered: 02/11/04
Posts: 142
Location:Skien, Norway
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..
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..
18
11
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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..
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
11
11
Quote
All times are EST. The time is now 12:11 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content