Opened 5 years ago

Closed 4 years ago

#21406 closed Bug (fixed)

blocktrans trimmed mixes up po-file source line numbers

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


Currently when makemessages generates a po-file from a template, it uses an intermediate format as templates cannot be fed into gettext. This intermediate Python file follows the same structure as the original template file, such that the source line numbers match up. However with blocktrans new trimmed option, the intermediate format is not adjusted and as a result the line numbers of translations following after that tag are mixed up.

Attachments (1)

21406-proof.diff (1.1 KB) - added by Bouke Haarsma 5 years ago.

Download all attachments as: .zip

Change History (5)

Changed 5 years ago by Bouke Haarsma

Attachment: 21406-proof.diff added

comment:1 Changed 5 years ago by Bouke Haarsma

Cc: bouke@… added

comment:2 Changed 5 years ago by Baptiste Mispelon

Triage Stage: UnreviewedAccepted
Type: UncategorizedBug

comment:3 Changed 5 years ago by Bouke Haarsma

Has patch: set
Owner: changed from nobody to Bouke Haarsma
Status: newassigned

comment:4 Changed 4 years ago by Ramiro Morales

Resolution: fixed
Status: assignedclosed

In 91c38ce4b236e6eeb5f6f636250df7316fa766bd:

Fixed 21406 -- Made blocktrans 'trimmed' option preserve line numbers.

Thanks Bouke Haarsma for report, fix and initial patch.

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