The language_country name model is defined in RFC 3066, and is being
updated.
It went into the hopefully final Last Call process yesterday.
The proposed version is:
http://www.inter-locale.com/ID/draft-phillips-langtags-08.html

The new version will allow for more descriptive names to provide better
coverage and more accurate designations of message text and other content.

Just fyi.

Microsoft does have a different convention, but supports the POSIX names as
well.

However the semantics of a locale are not well defined or standardized, and
so even if the name is supported, different technologies (Unix, Java,
Windows) will do different things with the same locale identifier.

There is work underway to standardize locale definitions. If interested look
at CLDR, the common locale data repository, hosted by the Unicode
Consdortium at http://www.unicode.org/cldr .


Tex Texin
Internationalization Architect,   Yahoo! Inc.
 
 


-----Original Message-----
From: Michael Wallner [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 09, 2004 4:16 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-I18N] Re: Using Translation from PEAR, other libraries


Hi Christophe Chisogne, you wrote:

> Ian Eure wrote:

>> - Hard to set up
> 
> With gettext php extension installed and correct path, it's not that 
> hard (locale/fr_BE/LC_MESSAGES/domain.mo). Only thing really annoying 
> is that locale names arent standardized : win uses long names like 
> English, French etc while *nix simply uses std names like fr_BE, 
> en_US, nl_NL etc

This is where I18Nv2::setLocale() comes in (already used in Translation2)

> Well, there is a second one. To set locale, you have to define env var 
> (LC_MESSAGES, LC_ALL, LANGUAGE,...) Not sure same settings work 
> everywhere (Unix boxes at least). But with php safe_mode on, only some 
> env vars can be set, which means editing php.ini is often required to 
> fix this, like safe_mode_allowed_env_vars = "PHP_,LC,LANG,TZ"

Yeah, this is a real show-stopper :-(

> Perhaps a third, but I never got an answer to this one. I dont know if 
> using gettext with php (as Apache module) is "thread safe". If 2 
> scripts are setting locale, I just hope they wont mix.

Well, this only concerns threaded Webservers/Apache-MPMs (AFAIK), 
but I guess it's not thread safe.

Regards,
-- 
Michael - < mike(@)php.net >

--
PHP Internationalization Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to