Re: [PHP-I18N] intl 1.0.0RC1
[email protected] (David Zülke) Wed, 4 Jun 2008 13:52:06 +0200
| Newsgroups | php.i18n |
|---|---|
| Message-ID | <[email protected]> |
You mean http://docs.php.net/manual/en/locale.composelocale.php ?
I just looked at that for the first time.
It is utterly frightening. You can't possibly be serious about this:
$arr = array(
'language' => 'en',
'script' => 'Hans',
'region' => 'CN',
'variant2' => 'rozaj',
'variant1' => 'nedis',
'private1' => 'prv1',
'private2' => 'prv2'
);
echo Locale::composeLocale($arr);
I may use private0, private1, ... private14?
How about
$arr = array(
'language' => 'en',
'script' => 'Hans',
'region' => 'CN',
'variants' => array(
'rozaj',
'nedis',
),
'privates' => array(
'prv1',
'prv2',
),
);
echo Locale::composeLocale($arr);
- David
Am 03.06.2008 um 12:50 schrieb Stanislav Malyshev:
> Hi!
>
>> $locale = new IntlLocale();
>> $locale->setCurrency(IntlCurrency::USD);
>> $locale->setCollation(IntlCollation::TRADITIONAL);
>
> You have functions for that in Locale class.
> --
> Stanislav Malyshev, Zend Software Architect
> [email protected] http://www.zend.com/
> (408)253-8829 MSN: [email protected]
>
> --
> PHP Unicode & I18N Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>