Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何添加 phing 任务以自动解析我的项目并创建 PO 进行翻译?
您可以使用 xgettext 收集所有 gettext 可翻译字符串:
http://sourceforge.net/p/semanticscuttle/code/ci/cb4b0469ca48d9865c8b162c1446d9011adf249b/tree/scripts/update-translation-base.php#l11
$ xgettext -kT_ngettext:1,2 -kT_ -L PHP -o data/locales/messages.po src/
从您的 phing 任务中执行该操作。