[Django] #34869: makemessages - ignore duplicate msgid if the translations are identical

36 views
Skip to first unread message

Django

unread,
Sep 24, 2023, 10:06:48 AM9/24/23
to django-...@googlegroups.com
#34869: makemessages - ignore duplicate msgid if the translations are identical
------------------------------------------------+------------------------
Reporter: אורי | Owner: nobody
Type: Uncategorized | Status: new
Component: Internationalization | Version: dev
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------------+------------------------
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.

--
Ticket URL: <https://code.djangoproject.com/ticket/34869>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Sep 24, 2023, 12:44:30 PM9/24/23
to django-...@googlegroups.com
#34869: makemessages - ignore duplicate msgid if the translations are identical
-------------------------------------+-------------------------------------
Reporter: אורי | Owner: nobody
Type: Uncategorized | Status: closed
Component: | Version: dev
Internationalization |
Severity: Normal | Resolution: wontfix

Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Claude Paroz):

* status: new => closed
* resolution: => wontfix


Comment:

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 running `makemessages`.

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.

--
Ticket URL: <https://code.djangoproject.com/ticket/34869#comment:1>

Reply all
Reply to author
Forward
0 new messages