Locale [message #2069] |
Mon, 29 April 2002 16:53 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
The ensure proper i18n support FUDforum exports a locale setting appropriate for a set language. Currently, this is done automatically based on a single static setting per language. Based on my tests thing single option is support on nearly every system.
However, it has come to my attention, that there are some issues with hard coding a singular locale due to the fact some languages have many dialects etc, and require specialized locales.
After doing some research I've determined that there is no reliable way to determine the supported locales on the system, from which a user will be able to select their preferred locale if it is different from default.
To this affect I propose to leave the locale as is in the installation, however add an option in the admin control panel (language menu) to allow user to manually override the locale setting.
This way people who know what they are doing, can choose to overwrite the locale setting and those who do not need to are not bothered by it.
Please let me know your opionions on this matter as this is the last remaining issue on my list before RC3 is released.
FUDforum Core Developer
|
|
|
Re: Locale [message #2071 is a reply to message #2069] |
Mon, 29 April 2002 17:33 |
Olliver
Messages: 443 Registered: March 2002
Karma: 0
|
Senior Member |
|
|
Hi I think it would be an useful enhancement to be on the safe side, just like using the localized charsets in the HTML headers. bye Ken
|
|
|
|
|
|
|
|
Re: Locale [message #2161 is a reply to message #2157] |
Fri, 03 May 2002 14:27 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Does your system has pl_PL locale compiled?
If your system does not the LOCALE setting won't make a differnce.
You can do a quick test by doing this:
export LOCALE=pl_PL date -R
If the date "text" appears in polish then you got the locale compiled, otherwise you need to use localedef utility to compile it.
FUDforum Core Developer
|
|
|
Re: Locale [message #2175 is a reply to message #2161] |
Fri, 03 May 2002 22:35 |
Kerhold
Messages: 18 Registered: April 2002 Location: Warsaw, Poland
Karma: 0
|
Junior Member |
|
|
prottoss wrote on Fri, 03 May 2002 4:27 PM | Does your system has pl_PL locale compiled? You can do a quick test by doing this: export LOCALE=pl_PL date -R If the date "text" appears in polish then you got the locale compiled, otherwise you need to use localedef utility to compile it.
|
Well. Let's see.
$ date sob maj 4 00:09:23 CEST 2002 $ locale LANG=pl_PL LC_CTYPE="pl_PL" LC_NUMERIC="pl_PL" LC_TIME="pl_PL" LC_COLLATE="pl_PL" LC_MONETARY="pl_PL" LC_MESSAGES="pl_PL" LC_PAPER="pl_PL" LC_NAME="pl_PL" LC_ADDRESS="pl_PL" LC_TELEPHONE="pl_PL" LC_MEASUREMENT="pl_PL" LC_IDENTIFICATION="pl_PL" LC_ALL= $ ls -al ankieta_ldk.php -rw-rw-rw- 1 krzysiek bass 639 lut 26 14:43 ankieta_ldk.php
Looks good to me.
So?
I'm sure I have locale support compiled in. It's in locale.gen: en_US ISO-8859-1 pl_PL ISO-8859-2
It works elsewhere. It doesn't work in FUDforum2.
Best regards,
Kerhold
Common sense is not so common.
[Updated on: Fri, 03 May 2002 22:36] Report message to a moderator
|
|
|
Re: Locale [message #2177 is a reply to message #2175] |
Fri, 03 May 2002 23:08 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Hm... can you go to the language selection menu (in the admin control panel under template heading) and enter pl_PL as your local manually and click "Set" button.
See if that fixes your problem, if not please let me know.
Curiosly your LC_ALL is blank, when we assign locale that is the enviroment variable that we change the value for. Maybe that is a problem dunno, didn't come across this kinda issue before.
FUDforum Core Developer
|
|
|
|
Re: Locale [message #2195 is a reply to message #2190] |
Sun, 05 May 2002 03:07 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Kerhold wrote on Sat, 04 May 2002 5:00 PM | Yes.
It helped. Strange. Hmm.
Thanks.
Best regards,
Kerhold
|
Hmm weird.... I'll check out installer and how it assigns LOCALES....
I find it surpring this fixed the bug...
FUDforum Core Developer
|
|
|