FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » FUDforum 3.0+ » Locale
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Locale [message #2069] Mon, 29 April 2002 16:53 Go to next message
Ilia is currently offline  Ilia   Canada
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 Go to previous messageGo to next message
Olliver   Germany
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 #2076 is a reply to message #2069] Mon, 29 April 2002 19:37 Go to previous messageGo to next message
basse is currently offline  basse   Finland
Messages: 164
Registered: March 2002
Location: Åbo, Finland
Karma: 0
Senior Member
Yeah, go for it. I think it's a good idea. At least it will help me, as I'm one of the 'affected' people.
Re: Locale [message #2077 is a reply to message #2076] Mon, 29 April 2002 19:48 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
already done Smile

FUDforum Core Developer
Re: Locale [message #2139 is a reply to message #2077] Wed, 01 May 2002 22:18 Go to previous messageGo to next message
Olliver   Germany
Messages: 443
Registered: March 2002
Karma: 0
Senior Member
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 Smile
bye Ken
Re: Locale [message #2140 is a reply to message #2139] Wed, 01 May 2002 22:23 Go to previous messageGo to next message
hackie is currently offline  hackie   Canada
Messages: 177
Registered: January 2002
Karma: 0
Senior Member
Core Developer

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 Smile
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....


cc intelligence.c -o intelligence
$ ./intelligence
Segmentation fault
icon6.gif  Re: Locale [message #2157 is a reply to message #2140] Fri, 03 May 2002 11:11 Go to previous messageGo to next message
Kerhold is currently offline  Kerhold   Poland
Messages: 18
Registered: April 2002
Location: Warsaw, Poland
Karma: 0
Junior Member

Hi!

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 Cool


Common sense is not so common.
Re: Locale [message #2161 is a reply to message #2157] Fri, 03 May 2002 14:27 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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
icon6.gif  Re: Locale [message #2175 is a reply to message #2161] Fri, 03 May 2002 22:35 Go to previous messageGo to next message
Kerhold is currently offline  Kerhold   Poland
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 Cool


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 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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
icon6.gif  Re: Locale [message #2190 is a reply to message #2177] Sat, 04 May 2002 21:00 Go to previous messageGo to next message
Kerhold is currently offline  Kerhold   Poland
Messages: 18
Registered: April 2002
Location: Warsaw, Poland
Karma: 0
Junior Member

Yes.

It helped. Strange. Hmm.

Thanks.

Best regards,

Kerhold Cool


Common sense is not so common.
Re: Locale [message #2195 is a reply to message #2190] Sun, 05 May 2002 03:07 Go to previous message
Ilia is currently offline  Ilia   Canada
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 Cool


Hmm weird.... I'll check out installer and how it assigns LOCALES....

I find it surpring this fixed the bug...


FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: FUDforum 1.9.8 RC4 Released
Next Topic: IIS probs with 20020430
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 08:05:32 GMT 2024

Total time taken to generate the page: 0.02245 seconds