Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36884 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6595 invoked from network); 8 Apr 2008 19:43:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Apr 2008 19:43:23 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.162.180 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: 209.85.162.180 el-out-1112.google.com Received: from [209.85.162.180] ([209.85.162.180:57530] helo=el-out-1112.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B2/06-09615-ADACBF74 for ; Tue, 08 Apr 2008 15:43:22 -0400 Received: by el-out-1112.google.com with SMTP id z25so1894141ele.0 for ; Tue, 08 Apr 2008 12:43:19 -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=NffrOir0gQzz3OOlq/877Vgw91fuaGS+tVEBkjGjz2o=; b=R005SF48BFA/B6PLffpqMt+6rYMMB37vzOuSoVv9ep4c6aeY3xydTpXOBSVtb386MsoCeVgb9n1Z+u/+9P976qbfatz84WzrPq9t3NeInwoD/li+sUmSVNBdSzdZRbgTWmocdmaVpGb1HKsVQ8JvlVprlsV52EFzpv7/Dr+Raj8= 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=JYOvHBjanDLdvGKKYUgMVZZJMel9TT1ln4jCKtbEzqZkl/u79B7EZu7dKuzICS5BWTdaSpeBo+hPQeL5TpfiCnyyc6C97Uc9HpVgMLoU21DZtiyf6JGNOsvwB9/qqbzUW4C3BpF/T/L23CgIP0YBF2IA8W5b028BCNacem1XaFo= Received: by 10.141.96.10 with SMTP id y10mr372519rvl.64.1207683799185; Tue, 08 Apr 2008 12:43:19 -0700 (PDT) Received: by 10.141.123.13 with HTTP; Tue, 8 Apr 2008 12:43:19 -0700 (PDT) Message-ID: Date: Tue, 8 Apr 2008 21:43:19 +0200 To: "Stanislav Malyshev" Cc: "Andi Gutmans" , "Lester Caine" , "PHP internals" In-Reply-To: <47FBC8F5.6030709@zend.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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> <47FBC8F5.6030709@zend.com> Subject: Re: [PHP-DEV] intl naming From: pierre.php@gmail.com ("Pierre Joye") re, On Tue, Apr 8, 2008 at 9:35 PM, Stanislav Malyshev wrote: > > 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 > > > > What is "valid"? Database can have no exact match for locale string, but > still have some data from fallbacks, etc. > > > getCountry, getISO3* etc. I can provide a list and then a patch. > > > > You have getRegion, but it looks like no ISO ones now. The current one is somehow limited given what ICU provides. I know that locale string are evil but it is the exact reason why we should help our developers to use some more standard one, whenever it is possible. Having the previously cited functions as well as getISO*, getAvailableLocale, etc. will help. Will you agree to extend the Locale API to provide more informations? -- Pierre http://blog.thepimp.net | http://www.libgd.org