Opened 3 years ago

Closed 3 years ago

#21406 closed Bug (fixed)

blocktrans trimmed mixes up po-file source line numbers

Reported by: bouke Owned by: bouke
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 3 years ago.

Download all attachments as: .zip

Change History (5)

Changed 3 years ago by bouke

comment:1 Changed 3 years ago by bouke

  • Cc bouke@… added
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 3 years ago by bmispelon

  • Triage Stage changed from Unreviewed to Accepted
  • Type changed from Uncategorized to Bug

comment:3 Changed 3 years ago by bouke

  • Has patch set
  • Owner changed from nobody to bouke
  • Status changed from new to assigned

comment:4 Changed 3 years ago by ramiro

  • Resolution set to fixed
  • Status changed from assigned to closed

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