>
> {{if T.accepted_language in('en','en-us'):}}
> <img src />
> {{else:}}
> <img src />
> {{pass}}
>
You could also replace the above with something like:
<img src="{{=URL('static', 'images/%s' % T('myimage.png'))}}" />
Then just translate the name of the image file. Even easier, you could use
the same image file names but put them in sub-folders with the same names
as the language codes (e.g., /images/en-en/myimage.png,
/images/es-es/myimage.png, etc.). So, the code would be:
<img src="{{=URL('static', 'images/%s/myimage.png' % T.accepted_language or
'en-en')}}" />
The above defaults to /images/en-en/myimage.png in case there is no
T.accepted_language.
Anthony