从.po文件中删除源引用注释

时间:2017-01-23 06:11:12

标签: poedit

我想从使用poeditor生成的.po文件中删除源引用注释。

了Exa。

#: controllers/admin/device.php:282
msgid "Error while deleting !!"
msgstr "Error while deleting !!"

我想从#:文件

中删除此.po条评论

1 个答案:

答案 0 :(得分:1)

我得到了答案:

https://www.gnu.org/software/gettext/manual/html_node/xgettext-Invocation.html

选中此链接,我需要将xgettext--no-location属性

一起使用

如果您需要Windows,请参阅此链接:

https://docs.djangoproject.com/en/1.7/topics/i18n/translation/#gettext-on-windows

然后使用CMD并使用此命令可以实现此目的:

xgettext --no-location -o /output-file-path /input-file-path
相关问题