Re: Country codes
| From: | a . h . s . boy | Date: | Sun, 04 Aug 2002 19:19:27 +0000 |
| Subject: | Re: Country codes | ||
| References: | 1 | Groups: | php.i18n |
| Request: | Send a blank email to php-i18n+get-310@lists.php.net to get a copy of this message | ||
Carl --
I understand your point, but I'm basically talking about "supported" locales under various systems (Linux, OpenBSD/Mac OS X, etc).
Under Linux, if you do
setlocale(LC_ALL, 'fr_FR');
it uses the standard fr_FR locale settings, which are part of the default install of Linux RedHat 7.2, and it works as expected, displaying date, currency, etc. in French-from-France format.
However, if you do
setlocale(LC_ALL, 'fr')
with just the language code, it simply fails, since there are no locale settings on Linux indicated as simply "fr". So this isn't really an issue related to whether or not I'm changing both the language and country settings, but which form is supported on a given platform.
Cheers,
spud.
On Sunday, August 4, 2002, at 10:53 AM, Carl W. Brown wrote:
Spud, The problem is that language and regional locale settings are different. Besides language you have other locale settings such a date format, what symbol to use as a decimal separator etc. If you specify "fr" are you just overriding the language ("fr_US") or both the language and country ("fr_FR")? If you assume that "fr" is "fr_FR" then do you assume that "en" is "en_GB"? Carl -------------------------------------------------------------------a.h.s. boy
spud(at)nothingness.org "as yes is to if,love is to yes"http://www.nothingness.org/ -------------------------------------------------------------------