Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36895 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40345 invoked from network); 9 Apr 2008 07:01:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Apr 2008 07:01:28 -0000 Authentication-Results: pb1.pair.com header.from=dz@bitxtender.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=dz@bitxtender.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain bitxtender.com from 80.237.132.12 cause and error) X-PHP-List-Original-Sender: dz@bitxtender.com X-Host-Fingerprint: 80.237.132.12 wp005.webpack.hosteurope.de Received: from [80.237.132.12] ([80.237.132.12:59111] helo=wp005.webpack.hosteurope.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DA/CB-04949-6C96CF74 for ; Wed, 09 Apr 2008 03:01:27 -0400 Received: from dslb-088-064-217-144.pools.arcor-ip.net ([88.64.217.144] helo=[192.168.0.100]); authenticated by wp005.webpack.hosteurope.de running ExIM using esmtpsa (TLSv1:RC4-SHA:128) id 1JjUJ8-0000m2-I7; Wed, 09 Apr 2008 09:01:22 +0200 Cc: "Stanislav Malyshev" , "Andi Gutmans" , "Lester Caine" , "PHP internals" Message-ID: <714D4F57-DCC8-4F02-8E43-7468B99D2651@bitxtender.com> To: "Pierre Joye" In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v919.2) Date: Wed, 9 Apr 2008 09:01:21 +0200 References: <47F463F0.4030407@zend.com> <47F68136.8040908@zend.com> <698DE66518E7CA45812BD18E807866CE0175729A@us-ex1.zend.net> <47FBA5A7.1070600@zend.com> <47FBBF0F.4080505@zend.com> <9E824A53-4FF3-4BA7-84DD-C6D7A875FCB8@bitxtender.com> X-Mailer: Apple Mail (2.919.2) X-bounce-key: webpack.hosteurope.de;dz@bitxtender.com;1207724487;c1e304cb; Subject: Re: [PHP-DEV] intl naming From: dz@bitxtender.com (=?ISO-8859-1?Q?David_Z=FClke?=) Am 09.04.2008 um 08:48 schrieb Pierre Joye: > On Wed, Apr 9, 2008 at 12:07 AM, David Z=FClke =20 > wrote: >> Note that most of this info is already in the CLDR info. And I am =20 >> with Stas >> here, not sure if it's really necessary. You can do this mapping by =20= >> hand, if >> necessary, but trust me, it isn't in most cases; you know the =20 >> locale IDs >> beforehand. > > I'm willing to trust you but my experiences tell me that it is not > always available before hand and that every 2nd lib duplicate this > information (partially or completely. It has no bad side effect to > introduce some new methods for this purpose :) Sure, but you need to remember that this means someone has to maintain =20= the mappings. Mind you that pretty much any locale-related information is in the =20 CLDR already - language, territory and timezone mappings, for instance. Be advised that attempting to map, for instance, a country code to a =20 locale is futile anyway. You can't map "ch" to anything. There's =20 de_CH, fr_CH and it_CH locales to choose from. Locales and country/=20 language/blah codes really are differnt things, and I've never needed =20= automated mappings so far (usually, the locale code itself is more =20 than enough). David=