#1049: i18n_filter can't translate text with python expressions
---------------------+------------------------------------------------------
 Reporter:  ulysses  |       Owner:  anonymous           
     Type:  defect   |      Status:  new                 
 Priority:  normal   |   Milestone:  1.0b1               
Component:  Kid      |     Version:  0.9a6               
 Severity:  major    |    Keywords:  i18n i18n_filter kid
---------------------+------------------------------------------------------
 Text with python expressions inside kid template can't get translated by
 plain_gettext()

 Kid example:
 {{{
   Actual Status: ${actualStatus[0]}.
 }}}

 This string will generate "Actual Status: ${actualStatus![0]}." key on
 .pot file, but, after translating and compiling it, it still untranslated
 when showing through browser.

 Traccking this bug I realize that i18n_filter function calls
 plain_gettext() using as key the alredy processed python expression. So
 the line above will call plain_gettext using "Actual Status: some_value"
 instead of "Actual Status: ${actualStatus![0]}". I think here is the
 problem but I can't figure out how to solve yet.

-- 
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/1049>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Tickets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears-tickets
-~----------~----~----~----~------~----~------~--~---

Reply via email to