Hi Tomasz,
please check the latest version, because "zh_Hans_HK" and "zh_Hant_HK" are
supported.
Kind regards,
Frank
Am 13.07.2015, 13:23 Uhr, schrieb ts <[email protected]>:
I am having trouble with I18N. I want to support locales like:
- zh_Hans_HK
- zh_Hant_HK
and it seems that it is impossible with the Zend_Locale. It seems to be
functioning correctly only with locales which look like "xx_XX" and not
"xx_xxxx_XX".
Example:
$locale = new \Zend_Locale('zh_Hans_HK');
var_dump($locale, $locale->getLanguage()); exit(__METHOD__ . '('
.
__LINE__ . ')');
returns output:
object(Zend_Locale)[6]
protected '_locale' => string 'zh_HK' (length=5)
string 'zh' (length=2)
This means that the Zend_Locale object cannot distinguish between
zh_Hans_HK
and zh_Hant_HK locales (and treats them all like zh_HK). Again, I need
to be
able to treat them totally separately (for translations and some locale
dependent settings).
Did anyone experience such problems? If so how did you solve it?
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]