Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70181 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20532 invoked from network); 18 Nov 2013 08:56:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Nov 2013 08:56:46 -0000 Authentication-Results: pb1.pair.com smtp.mail=martin.keckeis1@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=martin.keckeis1@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.52 as permitted sender) X-PHP-List-Original-Sender: martin.keckeis1@gmail.com X-Host-Fingerprint: 209.85.219.52 mail-oa0-f52.google.com Received: from [209.85.219.52] ([209.85.219.52:63015] helo=mail-oa0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C1/12-06041-D46D9825 for ; Mon, 18 Nov 2013 03:56:46 -0500 Received: by mail-oa0-f52.google.com with SMTP id h16so780658oag.25 for ; Mon, 18 Nov 2013 00:56:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=gqxYxjF0mkZ7zMDNGjSoB5g5+jvAKPxE+H2mR4WiDNM=; b=Ubg8x3/I00OKIjhPFxLV3RPvRQ2PZ2LKGw6+0OKinjPr0D5RviTJhTedki/Gzxi13r mkGQRvBm5eKZ4LfHfP93Th+P/C8HvxU/nqkec259pz6r3Xyv4pL8jYBoOJAZu2q3ARFh JWkQ1qhGpdOC9X0BGzJdyOftWZaw7sNXFXTejK7fZGNSuup9lsW1K1a+fvR+sP96DFhe 7KFhiQKdOrPIXmq3YC9TX3a0i6SZ8cLWXQftkCm4tIM9+Wlt/OUhXag53n5jY5PPzLtB 4qR3jqFDLy2q2Ty2BisWvbIrkhz95Xmxf8Gy+BdhuIR79xV4MYyPuEc0rSc6Pjh6OX2Z iC/w== MIME-Version: 1.0 X-Received: by 10.60.51.7 with SMTP id g7mr19701476oeo.6.1384765003299; Mon, 18 Nov 2013 00:56:43 -0800 (PST) Received: by 10.182.26.112 with HTTP; Mon, 18 Nov 2013 00:56:43 -0800 (PST) In-Reply-To: References: Date: Mon, 18 Nov 2013 09:56:43 +0100 Message-ID: To: Pierre Joye Cc: PHP internals Content-Type: multipart/alternative; boundary=001a11c308e01e808404eb6fba3b Subject: Re: [PHP-DEV] ICU/intl: list locales? From: martin.keckeis1@gmail.com (Martin Keckeis) --001a11c308e01e808404eb6fba3b Content-Type: text/plain; charset=UTF-8 Hello Pierre, 2013/11/18 Pierre Joye > hi, > > On Mon, Nov 18, 2013 at 9:02 AM, Martin Keckeis > 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.php > > 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 --001a11c308e01e808404eb6fba3b--