if T.accepted_language in ('es','es-es'): 

should do what you ask. Anyway, I you can use {{=T('...')}} to translate 
everything not just text. You can use to "translate" the css attributes and 
with of columns.

On Wednesday, 13 June 2012 12:40:01 UTC-5, RKS wrote:
>
> The old way I was doing things (because I hadn't had time to explore how 
> w2p was handling T) was creating multiple views based on languages with 
> anchors pointed at these different views. Easy enough since I only had like 
> 6 views to translate into one other language.
>
> But now that I want to do things right, and for the simple fact that some 
> things are given to me programmatically instead of in the HTML, I changed 
> everything over to T strings. It works great and it's simple. 
>
> The problem I'm having now is that some images contain text that I need to 
> translate and serve the user that image instead of the original. The other 
> problem is things like dynamically changing the CSS. In Spanish there's a 
> 5:1 ratio for words to say the same thing and several times in my design 
> just a straight translation will break the layout. When I was doing 
> multiple views, I could add different classes and change the CSS that way, 
> now I can't seem to figure that out.
>
> So how would I do that? I'm sure there has to be some 'if language=es' 
> type function I could put in there I just have more design sense than w2p 
> sense. Thanks.
>

Reply via email to