Re: intl naming

From: Date: Tue, 08 Apr 2008 19:43:19 +0000
Subject: Re: intl naming
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to internals+get-36884@lists.php.net to get a copy of this message
re, On Tue, Apr 8, 2008 at 9:35 PM, Stanislav Malyshev <stas@zend.com> 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

« previous php.internals (#36884) next »