Opened 13 years ago
Closed 12 years ago
#20311 closed Bug (fixed)
Avoid double Plural-Forms entry in translation files
| Reported by: | 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 |
Description
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)
Change History (4)
by , 13 years ago
comment:1 by , 12 years ago
| Needs tests: | set |
|---|---|
| Triage Stage: | Unreviewed → Accepted |
| Type: | Uncategorized → Bug |
comment:2 by , 12 years ago
I guess this was unnoticed because it happens only if the first processed file contains plural strings.
comment:3 by , 12 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Patch