Opened 15 months ago
Closed 15 months ago
#34869 closed Uncategorized (wontfix)
makemessages - ignore duplicate msgid if the translations are identical
Reported by: | אורי | Owned by: | nobody |
---|---|---|---|
Component: | Internationalization | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
When we run makemessages
- if there is a duplicate msgid
in a specific locale - if the translations (msgstr
) are identical in all cases - remove the duplicate msgid
and don't display warnings or errors. Currently, a duplicate message definition
error is displayed and the duplicate msgid
is not removed. I have to check if the translations are identical and remove the duplicates manually. If the translations are identical, I don't see any advantage in displaying an error message, and I prefer that the duplicates will be removed automatically.
Duplicate
msgid
' s are not allowed by the gettext infrastructure, there's nothing we can do to change that. However, you should generally not obtain duplicate messages when runningmakemessages
.I suggest you open a thread in the Django forums (i18n section) with some concrete example so we can examine it and maybe find a solution.