Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36896 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42998 invoked from network); 9 Apr 2008 07:21:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Apr 2008 07:21:18 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.166.178 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 64.233.166.178 py-out-1112.google.com Received: from [64.233.166.178] ([64.233.166.178:6720] helo=py-out-1112.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FC/3C-04949-B6E6CF74 for ; Wed, 09 Apr 2008 03:21:16 -0400 Received: by py-out-1112.google.com with SMTP id u77so2199755pyb.16 for ; Wed, 09 Apr 2008 00:21:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=KiR6BekjxCK2AW+lTJpuHvY0LsmHSEtzZQepcgTopbY=; b=hxZWzi3uztsDCzcwJoTxof//+hvjlQPU7iqHd/4uHyUhbzj89Y4rGGsoKNXggy9ycQM4cV5MeLDEyYtJkuExSoXX1AC1CSGRNbYHPmJQfVH0yzcSzrgg3DMY2wzwoQtk4YfEQEjuQzQUMyt1OPkRssln9F9+mm3s09zNUXPNNwg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=VLnAKMZsy1cdZo6zMoyqaV/jrkdNybivOU3twk0DrzIrm85RBu/1XaRuDp5BFQr9mtHfgO41DhscJTqYuxv0Y3iFQLNAiy/n4UJBG3cIUkMh6X2pY88PYMENLsVnYv99lTwidlr9CcW/RnN7l9Le/qM9UzPzmYJ5dpyKLaS+ULc= Received: by 10.141.171.6 with SMTP id y6mr2517574rvo.85.1207725673384; Wed, 09 Apr 2008 00:21:13 -0700 (PDT) Received: by 10.141.123.13 with HTTP; Wed, 9 Apr 2008 00:21:13 -0700 (PDT) Message-ID: Date: Wed, 9 Apr 2008 09:21:13 +0200 To: "=?ISO-8859-1?Q?David_Z=FClke?=" Cc: "Stanislav Malyshev" , "Andi Gutmans" , "Lester Caine" , "PHP internals" In-Reply-To: <714D4F57-DCC8-4F02-8E43-7468B99D2651@bitxtender.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <47F463F0.4030407@zend.com> <698DE66518E7CA45812BD18E807866CE0175729A@us-ex1.zend.net> <47FBA5A7.1070600@zend.com> <47FBBF0F.4080505@zend.com> <9E824A53-4FF3-4BA7-84DD-C6D7A875FCB8@bitxtender.com> <714D4F57-DCC8-4F02-8E43-7468B99D2651@bitxtender.com> Subject: Re: [PHP-DEV] intl naming From: pierre.php@gmail.com ("Pierre Joye") On Wed, Apr 9, 2008 at 9:01 AM, David Z=FClke wrote: > Sure, but you need to remember that this means someone has to maintain t= he > mappings. > > Mind you that pretty much any locale-related information is in the CLDR > already - language, territory and timezone mappings, for instance. > > Be advised that attempting to map, for instance, a country code to a loc= ale > is futile anyway. You can't map "ch" to anything. There's de_CH, fr_CH an= d > it_CH locales to choose from. Locales and country/language/blah codes rea= lly > are differnt things, and I've never needed automated mappings so far > (usually, the locale code itself is more than enough). Thanks for the advice :) However I already know that and to use incomplete code as a mapping key (or whatever else) is not the goal (I don't think I ever mentioned this idea). To have the ISO lists, the list of available locales (to be interpreted carefully), or do some basic operations on the locales is what I like to have. The ICU Locale API is very complete, it can be misused (there is many things that can be mishandled in PHP), why should we not have it in PHP? Cheers, --=20 Pierre http://blog.thepimp.net | http://www.libgd.org