Edgewall Software

Opened 12 years ago

Last modified 8 years ago

#567 new defect

[i18n:msg] Babel extracts different strings than gettext receives

Reported by: javier.casas@… Owned by: cmlenz
Priority: major Milestone: 0.9
Component: Internationalization Version: 0.6
Keywords: i18n msg babel Cc:

Description

When using the i18n:msg="" attrib on tags with sub-tags, but no python substitutions, Babel extracts the strings with the sub-tags marked with brackets, but when generating the page using the templates, the Translator object requests different strings.

See attached test for an example of it:

Attachments (1)

test_genshi.py (1.4 KB) - added by anonymous 12 years ago.

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by anonymous

comment:1 follow-up: Changed 12 years ago by anonymous

The provided example works fine with Genshi 0.5.1, but fails with Genshi 0.6.1 and Genshi 0.7

comment:2 in reply to: ↑ 1 Changed 11 years ago by anonymous

Replying to anonymous:

The provided example works fine with Genshi 0.5.1, but fails with Genshi 0.6.1 and Genshi 0.7

if you change "template.filters.insert(0, filter)" to "filter.setup(template)" it works fine.

comment:3 Changed 8 years ago by hodgestar

  • Milestone changed from 0.7 to 0.9

Moved to milestone 0.9.

Note: See TracTickets for help on using tickets.