Thanks. Works great. I never thought about translating my CSS attributes. 
For anyone coming in the future a quick example of what I've done with 
Massimo's suggestion is add for image swapping:

{{if T.accepted_language in('en','en-us'):}}
<img src />
{{else:}}
<img src />
{{pass}}

and for the css attributes you can just add the T function inside a class 
or id like:

<p class="{{T('paragraph')}}">Some text</p>

And then in es.py I just changed the definition of paragraph to 
paragraph_es or you can keep paragraph and add an additional class like 
paragraph spanish. And then make sure you add styles to your CSS to account 
for these new styles.

Hopefully that's exactly what you were telling me to do, Massimo, cause it 
works. Sorry to post all this but I like to be thorough with my solutions 
so no one has to ask later.


Thanks again.

Reply via email to