How can I find POEdit errors
Asked Answered
F

1

5

I'm getting duplicate message definition errors in POEdit and I cannot update from that catalog.

POEdit doesn't show details and the line numbers in the errors don't match.

How can I find what is wrong?

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.
Forcefeed answered 11/3, 2017 at 13:52 Comment(0)
H
14

How can I find what is wrong?

msgfmt -v -c /path/to/1input.po
Hibbitts answered 12/3, 2017 at 16:30 Comment(6)
msgfmt -v -c tr.po showed where the problems are. Thank you very much, accepted as the answer.Forcefeed
How can you run this on Windows?Harrod
@icc97, msgfmt.exe is located in Poedit\GettextTools\binEucalyptus
perfect!! Just adding a tip, you need to specify the file when call this command e.j. msgfmt -v -c path/to/your/fileDocket
If you are running on windows 10, just use linux subsystem to run this command (gettext installed is needed) - worked for me.Viper
Poedit uses gettext commands internally and bundles the appropriate binaries because it needs them, so there's no need to find them elsewhere.Icbm

© 2022 - 2024 — McMap. All rights reserved.