Hi Frank

Here's the ticket I've opened:
https://github.com/zendframework/zf1/issues/586

Just to be 100% clear. This is not about any xml files (containing locale data) 
missing (from the Zend\Locale\Data\ directory) - the xml files for zh_Hans_HK 
and zh_Hant_HK are available.
What this is about is the Zend_Locale code which does not seem to support 
locales with names like xx_Xxxx_XX.

Please let me know if something is not clear.

Regards
Tomasz

-----Original Message-----
From: Frank Brückner [mailto:[email protected]] 
Sent: Tuesday, July 14, 2015 8:42 AM
To: [email protected]; Tomasz Szmytka
Subject: Re: [fw-general] Re: [ZF1] Zend_Locale and locales like "zh_Hans_HK

Hi Tomasz,
sorry, my mistake.

With version 24 of the CLDR (http://cldr.unicode.org/) the locales "zh_Hans_HK" 
and "zh_Hant_HK" are no longer part of CLDR. So we introduced the aliases.
But in the meantime the two locales are back in the CLDR library.

Can you open a bug report for this problem?  
(https://github.com/zendframework/zf1/issues)


Thanks and kind regards,
Frank


Am 13.07.2015, 18:52 Uhr, schrieb ts <[email protected]>:

> Hi Frank
>
> Thanks for the quick answer. I am currently using ZF 1.12.13 (the 
> newest available ZF1 version). While instantiating a Zend_Locale (with 
> locale string "zh_Hans_HK") object it changes it to "zh_HK". It does 
> that in it's constructor already (method _prepareLocale, lines 
> 1938-1942). From this point on the application is working with "zh_HK" 
> (which is not what I want).
>
> Like I wrote in the beginning I need to have different translations 
> for zh_Hans_HK and zh_Hant_HK (translator gets the current locale from 
> a Zend_Locale instance). If Zend_Locale treats both of the locales as 
> zh_HK then it is impossible to distinguish the translations.
> Am I missing something here? If so I would be grateful for any advice.
>
> Regards
> Tomasz

Reply via email to