Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36892 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35953 invoked from network); 9 Apr 2008 06:48:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Apr 2008 06:48:34 -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.176 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.176 py-out-1112.google.com Received: from [64.233.166.176] ([64.233.166.176:6055] helo=py-out-1112.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7D/DA-04949-1C66CF74 for ; Wed, 09 Apr 2008 02:48:33 -0400 Received: by py-out-1112.google.com with SMTP id u77so2189394pyb.16 for ; Tue, 08 Apr 2008 23:48:31 -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=rQMxf6GrwPgwDg2eAp8Ez15wP6buutRgPceShMqmmuY=; b=x8OUJNiQosE88ecPAijBUfuagjH/9jztf3Sg+tcD1FTcDmEnQ2IJlUI/peOdeTHWWYjTxB+PLS9nDSGt495219dz6ExJDJ7ibkThvh/IFxMFUft/DfA62cyrHXLAL45DwR6RhzJJb/f1YfLPthVhWqW54X845toOrZ8y7o/cjPI= 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=aYLU3zAHHntAaDCUy5tGZanG7eyDwp+9KWFGOuZ90NZl9eKE/NRP1Y08+at2TwpwJxhi7GrbZl5IjSjC0BdR/A1scssX99plKGKzNyKkywh/dq+d/LWim8TMubSEHTKk6LQgZswe7j3gbJO/z46SaS56xjC7I/tLPS6EAFHavbc= Received: by 10.140.249.20 with SMTP id w20mr2493110rvh.103.1207723711032; Tue, 08 Apr 2008 23:48:31 -0700 (PDT) Received: by 10.141.123.13 with HTTP; Tue, 8 Apr 2008 23:48:30 -0700 (PDT) Message-ID: Date: Wed, 9 Apr 2008 08:48:30 +0200 To: "=?ISO-8859-1?Q?David_Z=FClke?=" Cc: "Stanislav Malyshev" , "Andi Gutmans" , "Lester Caine" , "PHP internals" In-Reply-To: <9E824A53-4FF3-4BA7-84DD-C6D7A875FCB8@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> <47F68136.8040908@zend.com> <698DE66518E7CA45812BD18E807866CE0175729A@us-ex1.zend.net> <47FBA5A7.1070600@zend.com> <47FBBF0F.4080505@zend.com> <9E824A53-4FF3-4BA7-84DD-C6D7A875FCB8@bitxtender.com> Subject: Re: [PHP-DEV] intl naming From: pierre.php@gmail.com ("Pierre Joye") On Wed, Apr 9, 2008 at 12:07 AM, David Z=FClke wrote: > Am 08.04.2008 um 21:09 schrieb Pierre Joye: > > It is amazingly handy to know that a locale given by the user (UI or a > > developer using your library) is valid. What I like to have are > > getCountry, getISO3* etc. I can provide a list and then a patch. > > > > Note that most of this info is already in the CLDR info. And I am with S= tas > here, not sure if it's really necessary. You can do this mapping by hand,= if > necessary, but trust me, it isn't in most cases; you know the 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 :) Cheers, --=20 Pierre http://blog.thepimp.net | http://www.libgd.org