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?
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/ZF1-Zend-Locale-and-locales-like-zh-Hans-HK-tp4662621.html
Sent from the Zend Framework mailing list archive at Nabble.com.
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]