Suggestion: i18n of date/time formats [message #1752] |
Mon, 22 April 2002 11:04 |
|
basse
Messages: 164 Registered: March 2002 Location: Åbo, Finland
Karma: 0
|
Senior Member |
|
|
I just noticed a minor problem with the time format. FUDforum seems to be unaware of the fact that the 24h ("military") time format is used in Finland and Sweden. This shows in, for example, the post view. The time box at the bottom of the page is correct, though.
Update: strangely enough the time format is correct in some places, but not in others. See online_today.php for an example. The second column is correct, the third isn't.
[Updated on: Mon, 22 April 2002 11:49] Report message to a moderator
|
|
|
|
Re: Suggestion: i18n of date/time formats [message #1755 is a reply to message #1754] |
Mon, 22 April 2002 11:46 |
|
basse
Messages: 164 Registered: March 2002 Location: Åbo, Finland
Karma: 0
|
Senior Member |
|
|
Kerhold wrote on Mon, 22 April 2002 2:37 PM |
Is it possible to obtain names of month in other then English language?
|
Yes, it's possible. When you select the language of the forum the proper locale should be set as well. There's seems to be some kind of bug in that code at the moment though, because the locale gets set to "en" even though I choose Swedish. But in principle it should work this way.
Update: I forgot to tell you, but you can correct this setting by hand. Open GLOBALS.php in your editor, find the variable $LOCALE and change it to whatever you would like it to be. If the locale is supported on your server it should work.
As for all the places the change of locale doesn't help - you have probably noticed you can edit the msg file which contains all text strings used in the forum. There you can change the names of the months as well.
[Updated on: Mon, 22 April 2002 14:31] Report message to a moderator
|
|
|
Re: Suggestion: i18n of date/time formats [message #1756 is a reply to message #1752] |
Mon, 22 April 2002 15:12 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
djupsjob wrote on Mon, 22 April 2002 7:04 AM | I just noticed a minor problem with the time format. FUDforum seems to be unaware of the fact that the 24h ("military") time format is used in Finland and Sweden. This shows in, for example, the post view. The time box at the bottom of the page is correct, though.
Update: strangely enough the time format is correct in some places, but not in others. See online_today.php for an example. The second column is correct, the third isn't.
|
The time is "correct" in some places because the date formatting string passed to strftime() function asks for 24h format is some places and AM/PM format in others.
If anything, this could be a consistency bug, I s'pose but the different date types were entered intenionaly.
FUDforum Core Developer
|
|
|
|
|
|
|