RE: [PHP-I18N] Country codes

From: Date: Sun, 04 Aug 2002 14:53:49 +0000
Subject: RE: [PHP-I18N] Country codes
References: 1  Groups: php.i18n 
Request: Send a blank email to php-i18n+get-309@lists.php.net to get a copy of this message
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 > -----Original Message----- > From: a.h.s. boy [mailto:spud@nothingness.org] > Sent: Friday, August 02, 2002 9:46 PM > To: php-i18n@lists.php.net > Subject: [PHP-I18N] Country codes > > > A quick question about country codes for settings locales... > > Linux seems to require 5-character country codes, language + _ + region, > e.g. "en_US", "fr_CA", etc. for "setlocale". Other Unices > (OpenBSD, etc) > seem content with the 2-character codes for language, e.g. "en", "fr". > > Can someone explain to me the logic behind the difference, and is there > any way to get Linux to accept the simpler 2-character codes? I know > there's a /usr/share/locale/locale.alias file that accepts aliases, > which could allow me to wrangle 2-character codes (maybe), but I'd > prefer not to mess with too many system files on other people's machines > just to install my software app... > > And while we're at it, can anyone explain/confirm the difference between > the > > /usr/share/locale/xyz (sometimes 2-character, sometimes 5) > -- appears to contain manual or interface translations? > and > /etc/locale/xyz (2-character) > -- appears to contain initscripts translations? > and > /usr/share/i18n/locales/ (5-character) > -- locale definition files? > and > /usr/lib/locale/ (5-character, seems to be the "system" locale?) > > Cheers, > spud. > > ------------------------------------------------------------------- > a.h.s. boy > spud(at)nothingness.org "as yes is to if,love is to yes" > http://www.nothingness.org/ > ------------------------------------------------------------------- > > > -- > PHP Internationalization Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.i18n (#309) next »