WeblateOrg/weblate

msgmerge created duplicate string in PO file

keunes opened this issue · 3 comments

Describe the issue

It seems that msgmerge has created duplicate strings, which are now causing an error.

Command
msgmerge --output-file /home/weblate/data/vcs/antennapod/website/short-strings/documentation-pages/site-documentation_ca.pog7zz42du /home/weblate/data/vcs/antennapod/website/short-strings/documentation-pages/site-documentation_ca.po /home/weblate/data/vcs/antennapod/website/short-strings/site-documentation.pot

Error

/home/weblate/data/vcs/antennapod/website/short-strings/documentation-pages/site-documentation_ca.po:1902: duplicate message definition...
/home/weblate/data/vcs/antennapod/website/short-strings/documentation-pages/site-documentation_ca.po:281: ...this is the location of the first definition
/home/weblate/data/vcs/antennapod/website/short-strings/documentation-pages/site-documentation_ca.po:1910: duplicate message definition...
/home/weblate/data/vcs/antennapod/website/short-strings/documentation-pages/site-documentation_ca.po:289: ...this is the location of the first definition
/home/weblate/data/vcs/antennapod/website/short-strings/documentation-pages/site-documentation_ca.po:1918: duplicate message definition...
/home/weblate/data/vcs/antennapod/website/short-strings/documentation-pages/site-documentation_ca.po:294: ...this is the location of the first definition
/home/weblate/data/vcs/antennapod/website/short-strings/documentation-pages/site-documentation_ca.po:1923: duplicate message definition...
/home/weblate/data/vcs/antennapod/website/short-strings/documentation-pages/site-documentation_ca.po:304: ...this is the location of the first definition
/home/weblate/data/vcs/antennapod/website/short-strings/documentation-pages/site-documentation_ca.po:1933: duplicate message definition...
/home/weblate/data/vcs/antennapod/website/short-strings/documentation-pages/site-documentation_ca.po:309: ...this is the location of the first definition
/home/weblate/data/vcs/antennapod/website/short-strings/documentation-pages/site-documentation_ca.po:1938: duplicate message definition...
/home/weblate/data/vcs/antennapod/website/short-strings/documentation-pages/site-documentation_ca.po:316: ...this is the location of the first definition
/home/weblate/data/vcs/antennapod/website/short-strings/documentation-pages/site-documentation_ca.po:1945: duplicate message definition...
/home/weblate/data/vcs/antennapod/website/short-strings/documentation-pages/site-documentation_ca.po:323: ...this is the location of the first definition
/home/weblate/data/vcs/antennapod/website/short-strings/documentation-pages/site-documentation_ca.po:1952: duplicate message definition...
/home/weblate/data/vcs/antennapod/website/short-strings/documentation-pages/site-documentation_ca.po:330: ...this is the location of the first definition
/home/weblate/data/vcs/antennapod/website/short-strings/documentation-pages/site-documentation_ca.po:1959: duplicate message definition...
/home/weblate/data/vcs/antennapod/website/short-strings/documentation-pages/site-documentation_ca.po:335: ...this is the location of the first definition
/home/weblate/data/vcs/antennapod/website/short-strings/documentation-pages/site-documentation_ca.po:1963: duplicate message definition...
/home/weblate/data/vcs/antennapod/website/short-strings/documentation-pages/site-documentation_ca.po:930: ...this is the location of the first definition
/home/weblate/data/vcs/antennapod/website/short-strings/documentation-pages/site-documentation_ca.po:1969: duplicate message definition...
/home/weblate/data/vcs/antennapod/website/short-strings/documentation-pages/site-documentation_ca.po:955: ...this is the location of the first definition
/home/weblate/data/vcs/antennapod/website/short-strings/documentation-pages/site-documentation_ca.po:1983: duplicate message definition...
/home/weblate/data/vcs/antennapod/website/short-strings/documentation-pages/site-documentation_ca.po:1717: ...this is the location of the first definition
/home/weblate/data/vcs/antennapod/website/short-strings/documentation-pages/site-documentation_ca.po:1994: duplicate message definition...
/home/weblate/data/vcs/antennapod/website/short-strings/documentation-pages/site-documentation_ca.po:1724: ...this is the location of the first definition
/home/weblate/data/vcs/antennapod/website/short-strings/documentation-pages/site-documentation_ca.po:2003: duplicate message definition...
/home/weblate/data/vcs/antennapod/website/short-strings/documentation-pages/site-documentation_ca.po:1731: ...this is the location of the first definition
/home/weblate/data/vcs/antennapod/website/short-strings/documentation-pages/site-documentation_ca.po:2012: duplicate message definition...
/home/weblate/data/vcs/antennapod/website/short-strings/documentation-pages/site-documentation_ca.po:1739: ...this is the location of the first definition
/home/weblate/data/vcs/antennapod/website/short-strings/documentation-pages/site-documentation_ca.po:2023: duplicate message definition...
/home/weblate/data/vcs/antennapod/website/short-strings/documentation-pages/site-documentation_ca.po:1747: ...this is the location of the first definition
msgmerge: found 16 fatal errors

I already tried

  • I've read and searched the documentation.
  • I've searched for similar filed issues in this repository.

Steps to reproduce the behavior

Not sure why this happened, sorry.

Expected behavior

No duplication of strings :-)

Screenshots

No response

Exception traceback

No response

How do you run Weblate?

weblate.org service

Weblate versions

No response

Weblate deploy checks

No response

Additional context

I can see that indeed the same string (first mentioned in the error message) exists twice in our upstream branch:

Both strings seem to be introduced by Weblate.

This particular string exists only once in the source POT: https://github.com/AntennaPod/antennapod.github.io/blame/translation-files/site-documentation.pot#L238 (and was introduced quite some time ago.

We don't push commits upstream too often (mostly only manually, occasionally). Maybe the fact that the 'msgmerge' commit wasn't pushed upstream before the translation commit was pushed caused an issue?

We also have the same issue with the Italian file. But that's the only two languages that have an issue.

Thank you for your report; the issue you have reported has just been fixed.

  • In case you see a problem with the fix, please comment on this issue.
  • In case you see a similar problem, please open a separate issue.
  • If you are happy with the outcome, don’t hesitate to support Weblate by making a donation.

Thank you for your report; the issue you have reported has just been fixed.

  • In case you see a problem with the fix, please comment on this issue.
  • In case you see a similar problem, please open a separate issue.
  • If you are happy with the outcome, don’t hesitate to support Weblate by making a donation.

Thanks @nijel for all your work! 🙏