FUDforum - خوراک RDF
http://fudforum.org/forum/index.php
Locale
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=2069&th=383#msg_2069
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.]]>Ilia2002-04-29T16:53:23-00:00Re: Locale
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=2071&th=383#msg_2071
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]]>Olliver2002-04-29T17:33:59-00:00Re: Locale
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=2076&th=383#msg_2076
basse2002-04-29T19:37:33-00:00Re: Locale
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=2077&th=383#msg_2077
]]>Ilia2002-04-29T19:48:36-00:00Re: Locale
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=2139&th=383#msg_2139
bye Ken]]>Olliver2002-05-01T22:18:00-00:00Re: Locale
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=2140&th=383#msg_2140
Ken Kizaki wrote on Wed, 01 May 2002 6:18 PM
there's a nice side effect of setting the locale. PHP suddenly starts to display the date in German (or probably any other specified language) Really a nice feature bye Ken
Err.. that's not a side effect.. we re-wrote all the date functions to make sure that that happens around 1.9.8RC1 or something.... ]]>hackie2002-05-01T22:23:27-00:00Re: Locale
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=2157&th=383#msg_2157
I have locale setted on polish - pl_PL but date is still in English format. Was it fixed in RC4? Do I have to also set something in Admin Control Panel?
Best regards.
Kerhold ]]>Kerhold2002-05-03T11:11:34-00:00Re: Locale
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=2161&th=383#msg_2161
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.]]>Ilia2002-05-03T14:27:39-00:00Re: Locale
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=2175&th=383#msg_2175
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 ]]>Kerhold2002-05-03T22:35:09-00:00Re: Locale
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=2177&th=383#msg_2177
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.]]>Ilia2002-05-03T23:08:51-00:00Re: Locale
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=2190&th=383#msg_2190
It helped. Strange. Hmm.