我想从使用poeditor生成的.po
文件中删除源引用注释。
了Exa。
#: controllers/admin/device.php:282
msgid "Error while deleting !!"
msgstr "Error while deleting !!"
我想从#:
文件
.po
条评论
答案 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