-
Notifications
You must be signed in to change notification settings - Fork 804
Missing locale file '/***/Zend/Locale/Data/zh_CN.xml' for 'zh_CN' locale. #296
Comments
@glen-84 |
Looks like it was replaced with zh_Hans_CN.xml, which I don't think Zend_Locale can cope with? |
@froschdesign Yes I know, but what is the correct way to avoid this exception? |
Reproduce with:
|
There are other locales that fail as well: zh_TW, sr_RS, bs_BA, zh_HK, zh_SG, ms_MY, kk_KZ |
It is a nasty bug, it broke some locales in my multilingual apps. Had to roll back to 1.12.3. Waiting for solution |
Please compare with the "CLD-Repository" and you will see, these locales were removed in 2011 (CLDRv2.0.1). |
This not a bug. This only a new version of the underlying library (CLDR). |
We have to remove the outdated class constants. |
@froschdesign I know that, but this is still a BC-break because ZF can no longer handle these locales. This change should be reverted or ZF should be updated in order to handle the new CLDR data. |
@glen-84 |
@froschdesign I completely agree with @glen-84 that these changes made ZF 1.12.4 incompatible with previous version and Zend_Locale implementation. I just looked into ZF 1.12.3, and there are all those locales that you say were removed in 2011 - zh_TW, sr_RS, bs_BA, zh_HK, zh_SG, ms_MY. I wonder if it is a bug, but it's not an expected behaviour either. |
Removed from CLDR in 2011! New CLDR version == expected behaviour |
@froschdesign Are you planning on submitting a PR? |
It's already there: #298 |
Great, thanks. |
My main question is should we be aliasing the removed locale names to their new ones? |
Do this:
The region seems to be removed in both cases. |
…ter CLDR update
After updating to ZF 1.12.4, I get this exception:
I think it's caused by #233, but I don't know what the solution is.
The text was updated successfully, but these errors were encountered: