Re: intl 1.0.0RC1

From: Date: Tue, 03 Jun 2008 09:01:02 +0000
Subject: Re: intl 1.0.0RC1
References: 1 2 3 4 5  Groups: php.i18n 
Request: Send a blank email to php-i18n+get-1236@lists.php.net to get a copy of this message
Hi Stas, (sorry for the cluttered reply) Am Montag, den 02.06.2008, 08:36 +0300 schrieb Stanislav Malyshev: > Because locale is essentially the string. There's nothing in the > locale that isn't in the string, so you don't need any specific object > for that - it wouldn't give you any value. Except that it is easier to validate with object setters than to parse a locale string. $locale = new IntlLocale(); $locale->setCurrency(IntlCurrency::USD); $locale->setCollation(IntlCollation::TRADITIONAL); or $locale = new IntlLocale('en_US', IntlCurrency::USD, IntlCollation::TRADITIONAL, IntlCalendar::THAI_BUDDHIST); Creating the locale programatically, which might be a common use case for the web, is much easier with a well defined object than with a somehow concatted string. cu, Lars

Attachment: [application/pgp-signature] Dies ist ein digital signierter Nachrichtenteil signature.asc
« previous php.i18n (#1236) next »