Re: ICU/intl: list locales?

From: Date: Mon, 18 Nov 2013 08:56:43 +0000
Subject: Re: ICU/intl: list locales?
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-70181@lists.php.net to get a copy of this message
Hello Pierre, 2013/11/18 Pierre Joye <pierre.php@gmail.com> > hi, > > On Mon, Nov 18, 2013 at 9:02 AM, Martin Keckeis > <martin.keckeis1@gmail.com> wrote: > > Hello together, > > > > is there a way to get the locale list out of ICU, like listed here: > > http://demo.icu-project.org/icu-bin/locexp > > > > I would also need the "windows Id" for it, which seems also be defined: > > > http://www.php.net/manual/en/intlcalendar.getavailablelocales.phpe8Å|pgcÃ` > x„ù > > Please ask end user questions on the general mailing list, this list > is about developing the language :) > > Because search results, pointed me to a direction, that this feature is currently not available, i though internals is the way to go. Next time i will ask my question in the right list, sorry for this. Thanks a lot for the answer! Shouldn't this method be place (also) in Locale class? Also the Method: getKeywordValuesForLocale Most people won't search this in the Calendar class, but in Locale where already such methods are available. There are a lot of definitions/rules inside of the locale, which are "partly" accessable ( http://demo.icu-project.org/icu-bin/locexp?d_=de&_=de_AT) - number formatting rules - day names - ... But some things are not accessible like: - windows locale id - output the sort rule (sorting can be done, but no output for the rule itself) - ... A method to directly read the ICU data would be great for this. Best regards Martin

« previous php.internals (#70181) next »