开发者

Why is there no translation for the language 'en_US'?

开发者 https://www.devze.com 2023-01-11 06:10 出处:网络
Here is my config.ini resources.locale.defaul开发者_开发百科t = \"en\" resources.translate.adapter = \"gettext\"

Here is my config.ini

resources.locale.defaul开发者_开发百科t = "en"
resources.translate.adapter = "gettext"
resources.translate.data = APPLICATION_PATH "/../languages/"
resources.translate.option.scan = "directory"
resources.translate.registry_key = "Zend_Translate"
resources.translate.disableNotices = true
resources.translate.default = en

And my languages are structured like in the manual:

application/
languages/
-- en/
---- LC_MESSAGES/
------ default.po
-- se/
---- LC_MESSAGES/
------ default.po

Any ideas ?


This happens when your translation file for en_US contains only original strings. You need to translate at least one string from original to translated version, compile your *.po to *.mo again, and then it'll start working. If not, rename default.mo to messages.mo, or try even renaming the directory en to en_US.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号