Edgewall Software
Modify

Opened 6 years ago

Last modified 2 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 6 years ago.

Download all attachments as: .zip

Change History (4)

Changed 6 years ago by anonymous

comment:1 follow-up: Changed 6 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 6 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 2 years ago by hodgestar

  • Milestone changed from 0.7 to 0.9

Moved to milestone 0.9.

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain cmlenz.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from cmlenz to the specified user. Next status will be 'new'.
The owner will be changed from cmlenz to anonymous. Next status will be 'assigned'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.