我正在尝试使用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
。