Hello,

I'm in the process of translating a TG1.0.8 application and I 
encountered the following issues with kid templates :

if a template includes something like
<p>some text ${my_var}.</p>
tg-admin i18n collect complains about "Mixed content in tag <p>".

if I rewrite the template like this
<p>some text <span py:replace="my_var"/>.</p>
the collect phase gives no error (then merge, edit, compile the .po 
file...). But at render time "some text" is not translated. So I guess 
the translation occurs after all the variables have been replaced by 
their actual values... Am I right ?

Why is the template not translated before the variables get replaced ? 
Actually I would not mind if templates were translated during the 
"tg-admin i18n compile" phase...

Do we get the same issues with genshi ?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to