Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #2256 (closed defect: fixed)

Opened 9 years ago

Last modified 8 years ago

[PATCH] .po header lost when merging a .pot including genshi templates

Reported by: rejoc Owned by: rejoc
Priority: normal Milestone: 1.1
Component: I18n Version: 1.1 HEAD
Severity: major Keywords: i18n
Cc:

Description

When collecting i18n records, "tg-admin i18n collect" genrerates records with msgid "" for genshi templates in the .pot file. Then, during a subsequent merge phase, the .pot header disappears from the .po file, replaced by an "empty" record (the last empty record from the .po file I think).

This leads to bad replacements at render time when msgid contains not pure ascii characters.

Attachments

command_i18n.py.diff Download (498 bytes) - added by rejoc 9 years ago.
patch

Change History

Changed 9 years ago by rejoc

patch

comment:1 Changed 9 years ago by rejoc

  • Status changed from new to assigned
  • Summary changed from .po header lost when merging a .pot including genshi templates to [PATCH] .po header lost when merging a .pot including genshi templates

comment:2 Changed 9 years ago by faide

+1 for patch inclusion...

comment:3 Changed 9 years ago by rejoc

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

patch applied in [6473]

comment:4 Changed 8 years ago by Chris Arndt

  • Milestone changed from 1.1b4 to 1.1
Note: See TracTickets for help on using tickets.