我该如何找到POEdit的错误

4

我在POEdit中遇到了重复的消息定义错误,无法从该目录更新。

POEdit没有显示详细信息,而且错误行号也不匹配。

我该如何找出问题所在?

Sat Mar 11 16:51:31 2017: /var/folders/qt/cg8qlhc159v9s15kmhy1h4440000gn/T/poeditgGtdFw/1input.po:2791: duplicate message definition...
Sat Mar 11 16:51:31 2017: /var/folders/qt/cg8qlhc159v9s15kmhy1h4440000gn/T/poeditgGtdFw/1input.po:65: ...this is the location of the first definition
Sat Mar 11 16:51:31 2017: /var/folders/qt/cg8qlhc159v9s15kmhy1h4440000gn/T/poeditgGtdFw/1input.po:2827: duplicate message definition...
Sat Mar 11 16:51:31 2017: /var/folders/qt/cg8qlhc159v9s15kmhy1h4440000gn/T/poeditgGtdFw/1input.po:1530: ...this is the location of the first definition
Sat Mar 11 16:51:31 2017: /Users/burakkilic/Applications/Poedit.app/Contents/PlugIns/GettextTools.bundle/Contents/MacOS/bin/msgmerge: found 2 fatal errors
Sat Mar 11 16:51:31 2017: Entries in the catalogue are probably incorrect.
Sat Mar 11 16:51:31 2017: Updating the catalogue failed. Click on 'Details >>' for details.
1个回答

13

我该如何找出问题所在?

msgfmt -v -c /path/to/1input.po

msgfmt -v -c tr.po 显示了问题所在。非常感谢,已接受为答案。 - Burak
你怎么在Windows上运行这个? - icc97
2
@icc97,msgfmt.exe位于Poedit\GettextTools\bin目录下。 - RunninglVlan
太好了!只是添加一个提示,当调用此命令时,您需要指定文件,例如:msgfmt -v -c path/to/your/file。 - pabloRN
如果你正在使用Windows 10,只需要使用Linux子系统来运行这个命令(需要安装gettext)- 对我有用。 - Ales
Poedit内部使用gettext命令并捆绑了适当的二进制文件,因此无需在其他地方查找它们。 - Álvaro González

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接