ZF-6132: Chinese Languae using Zend Translate

Issue Type: Improvement Created: 2009-03-26T08:28:16.000+0000 Last Updated: 2009-03-27T06:06:45.000+0000 Status: Resolved Fix version(s): - 1.7.8 (30/Mar/09)

Reporter: Yau HAk Mo (tonyhk) Assignee: Thomas Weidner (thomas) Tags: - Zend_Translate

Related issues: Attachments:


i'm going to making a website with multi language

Chinese Simple , Chinese Traditional & English

Now i am facing the problem in Detecting the locale

zh_CN Using Chinese Simple

zh_HK & zh_TW Using Chinese Traditional

In Zend Translate it only Detect zh_HK the first Two letter , so any solution for this ?


Posted by Thomas Weidner (thomas) on 2009-03-26T09:11:29.000+0000

It does not... When a translation for zh_HK is not available THEN it falls back to this translation for zh.

When you don't want this behaviour you have to make your own rerouting within your bootstrap file.

Posted by Thomas Weidner (thomas) on 2009-03-26T13:45:52.000+0000

Closing due to not an issue. Full locales are recognised the same as only languages.

Posted by Yau HAk Mo (tonyhk) on 2009-03-27T04:31:03.000+0000

No, Even all zh translation is available , when i choose my browser to zh-cn it will using zh-hk

Posted by Thomas Weidner (thomas) on 2009-03-27T06:06:45.000+0000

Choosing a locale within your browser has no effect to Zend_Translate when you are doing something wrong. This is no problem is Zend_Translate, this is a handling problem.

And sorry, but with this little information you gave a help is impossible.


<pre class="highlight">
$translate = new Zend_Translate('array', 'path/to/file.php', 'zh_CN');

will NEVER result in the language zh_HK... this is impossible as rerouting is actually not available within ZF.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.