> -----Ursprüngliche Nachricht-----
> Von: [email protected] 
> [mailto:[EMAIL PROTECTED] Im Auftrag von kai
> Gesendet: Mittwoch, 11. Juni 2008 14:40
> An: [email protected]
> Betreff: per request template path modification
> 
> 
> Hi All,
> How do I modify the mako template path per request. I'm 
> serving up multiple languages and and I have the i18n stuff 
> working. However some of the markup needs to also vary 
> depending on the language.
> so during the request cycle I want to change the path to 
> something like path = 
> ['/myapp/templates/fr','/myapp/templates/default']
>  
> in order to pickup a language customized template if it is 
> there and take the default if it is not.

I had the same idea, and I had to patch the mako file name
resolution sources to get it working.

There are more issues (inheritance resolution etc) which 
need to be considered.

The lang_code + templatename isn't really useful, either.

AFAIK there is no really beatiful "directory based" focused 
solution for supporting multiple languages inside of MAKO.

Unfortunatly.

Andrew


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

Reply via email to