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