我在.xml中有Zend Framework导航项,如下所示:
<entry-i> <label>Text to translate</label> <params> ... <params> <entry-i>
我希望poedit只读取来自< label>的消息.
在Poedit(我有1.4.2)中,添加一个具有以下属性的新解析器(Edit> Preferences):
>语言:XML>以分号分隔的扩展名列表(例如.cpp; .h):* .xml>解析器命令:xgettext –force-po -o%o%C%K%F -L glade>关键字列表中的项目:-k%k>输入文件列表中的项目:%f>源代码字符集: – from-code =%c
在您的翻译项目中,为关键字列表添加标签和标题并更新目录.