Opened 4 years ago

Closed 3 years ago

#20311 closed Bug (fixed)

Avoid double Plural-Forms entry in translation files

Reported by: naktinis@… Owned by: nobody
Component: Internationalization Version: 1.5
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: yes Patch needs improvement: no
Easy pickings: no UI/UX: no


Since xgettext already generates plural form entry, we have to make sure we remove the template before adding the correct plural form.

Without this fix makemessages command would generate:
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
"Plural-Forms: nplurals=1; plural=0\n"

Attachments (1)

patch (1003 bytes) - added by naktinis@… 4 years ago.

Download all attachments as: .zip

Change History (4)

Changed 4 years ago by naktinis@…

Attachment: patch added


comment:1 Changed 3 years ago by Claude Paroz

Needs documentation: unset
Needs tests: set
Patch needs improvement: unset
Triage Stage: UnreviewedAccepted
Type: UncategorizedBug

comment:2 Changed 3 years ago by Claude Paroz

I guess this was unnoticed because it happens only if the first processed file contains plural strings.

comment:3 Changed 3 years ago by Ramiro Morales <cramm0@…>

Resolution: fixed
Status: newclosed

In 1559f84d8b5c2d4d088a27fc0edf02f01a1d65f0:

Fixed #20311 -- Make sure makemessages doesn't create duplicate Plural-Forms .po file headers.

Thanks naktinis for the report and initial patch.

Note: See TracTickets for help on using tickets.
Back to Top