【发布时间】:2013-07-18 15:16:49
【问题描述】:
我正在尝试使用po2php 将我的 .po 文件转换为 Zend php 翻译数组。
我只是在尝试这个:$ po2php translations.po translations.php,但这会导致我无法理解的错误:po2php: warning: Couldn't handle input file translations.po: don't know what to do with input format .po, no template file。
我不知道模板文件是什么,为什么要提供它?
更新:我也试过$ po2php translations.po translations.php -t messages.pot,但这对我没有帮助,它显示几乎相同的错误:po2php: warning: Couldn't handle input file translations.po: don't know what to do with input format .po, template format .pot。
【问题讨论】:
-
为什么不使用 Zend_Translate_Adapter_Gettext (framework.zend.com/manual/1.12/en/zend.translate.adapter.html) 直接使用您的 .po/.mo 文件?
-
这只是我正在从事的项目的要求。历史原因...
-
对不起,我帮不上忙... :(
标签: php zend-framework internationalization gettext po