Opened 9 years ago

Last modified 9 years ago

#26670 closed Cleanup/optimization

makemessages' plural form handling helper function can insert extra empty line in PO file — at Version 1

Reported by: Ramiro Morales Owned by: nobody
Component: Internationalization Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Ramiro Morales)

When it copies the plural form formula header line from Django translations it can insert a line with a triling newline:

https://github.com/django/django/blob/4731e9d82ea72b6d793fb06713d11d228eb89ace/django/core/management/commands/makemessages.py#L624

This is mostly a correctness issue rarely seen in final PO files as makemessages usually runs
the resulting PO file through additional invocations of gettext tools which can correct the issue in case the plural forms formula PO header line is the last one.

Change History (1)

comment:1 by Ramiro Morales, 9 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top