This happened to me, when updating already exiting PO files from POT, using pybabel update -i ./translations/messages.pot -d ./translations -l ca
PoEdit is showing ...this is the location of the first definition error, and these are the real errors in those files:
msgfmt -v -c translations/ca/LC_MESSAGES/messages.po
translations/ca/LC_MESSAGES/messages.po:1887: duplicate message definition...
translations/ca/LC_MESSAGES/messages.po:7: ...this is the location of the first definition
translations/ca/LC_MESSAGES/messages.po:1929: duplicate message definition...
translations/ca/LC_MESSAGES/messages.po:777: ...this is the location of the first definition
translations/ca/LC_MESSAGES/messages.po:1962: duplicate message definition...
translations/ca/LC_MESSAGES/messages.po:545: ...this is the location of the first definition
translations/ca/LC_MESSAGES/messages.po:1980: duplicate message definition...
translations/ca/LC_MESSAGES/messages.po:26: ...this is the location of the first definition
translations/ca/LC_MESSAGES/messages.po:1983: duplicate message definition...
translations/ca/LC_MESSAGES/messages.po:49: ...this is the location of the first definition
translations/ca/LC_MESSAGES/messages.po:1986: duplicate message definition...
translations/ca/LC_MESSAGES/messages.po:54: ...this is the location of the first definition
translations/ca/LC_MESSAGES/messages.po:1989: duplicate message definition...
translations/ca/LC_MESSAGES/messages.po:59: ...this is the location of the first definition
translations/ca/LC_MESSAGES/messages.po:1992: duplicate message definition...
translations/ca/LC_MESSAGES/messages.po:64: ...this is the location of the first definition
translations/ca/LC_MESSAGES/messages.po:2025: duplicate message definition...
translations/ca/LC_MESSAGES/messages.po:486: ...this is the location of the first definition
translations/ca/LC_MESSAGES/messages.po:2028: duplicate message definition...
translations/ca/LC_MESSAGES/messages.po:491: ...this is the location of the first definition
translations/ca/LC_MESSAGES/messages.po:2031: duplicate message definition...
translations/ca/LC_MESSAGES/messages.po:501: ...this is the location of the first definition
translations/ca/LC_MESSAGES/messages.po:2034: duplicate message definition...
translations/ca/LC_MESSAGES/messages.po:202: ...this is the location of the first definition
translations/ca/LC_MESSAGES/messages.po:2037: duplicate message definition...
translations/ca/LC_MESSAGES/messages.po:207: ...this is the location of the first definition
translations/ca/LC_MESSAGES/messages.po:2040: duplicate message definition...
translations/ca/LC_MESSAGES/messages.po:289: ...this is the location of the first definition
translations/ca/LC_MESSAGES/messages.po:2043: duplicate message definition...
translations/ca/LC_MESSAGES/messages.po:241: ...this is the location of the first definition
translations/ca/LC_MESSAGES/messages.po:2046: duplicate message definition...
translations/ca/LC_MESSAGES/messages.po:251: ...this is the location of the first definition
translations/ca/LC_MESSAGES/messages.po:2052: duplicate message definition...
translations/ca/LC_MESSAGES/messages.po:279: ...this is the location of the first definition
msgfmt: found 17 fatal errors
This happened to me, when updating already exiting PO files from POT, using
pybabel update -i ./translations/messages.pot -d ./translations -l ca
PoEdit is showing...this is the location of the first definition
error, and these are the real errors in those files:Does not seem to be a problem with the POT, as newly created PO files from the template do not show this error. Anyway, you have it here: https://gitlab.com/liberaforms/liberaforms/-/blob/i18n/extracted-comments/liberaforms/translations/messages.pot
Why can this be happening, and how can it be solved?