Re: intl 1.0.0RC1
| From: | David Zülke | Date: | Wed, 04 Jun 2008 11:52:06 +0000 |
| Subject: | Re: intl 1.0.0RC1 | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.i18n |
| Request: | Send a blank email to php-i18n+get-1239@lists.php.net to get a copy of this message | ||
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 stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com -- PHP Unicode & I18N Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php