html = DIV("foo", SPAN("bar"))
{{=XML(str(T(str(html))))}}
it works but there is an aditional overhead.
http://zerp.ly/rochacbruno
Em 09/03/2012 12:14, "Bruce Wade" <[email protected]> escreveu:
> Hi,
>
> Now that I am working on my 4th site that requires translations I am
> starting to run into the problem where one design looks good and is layout
> well for a specific language, however when translating into a different
> language it doesn't fit the design.
>
> For example in English:
>
> WE APPRECIATE
> YOUR TIME FOR FILLING
> THIS APPLICATION
>
> HTML:
> <div class='personal-questions text'>
> {{=SPAN(T('WE APPRECIATE'), _class='big-registertext')}}
> {{=SPAN(T('YOUR TIME FOR FILLING'), _class='small-registertext')}}
> {{=SPAN(T('THIS APPLICATION'), _class='middle-registertext')}}
> {{=P(T('The information provided in this application will be used
> ONLY for training purposes and your data won\'t be shared at any level'),
> _class='plain-registertext')}}
> </div>
>
> Looks good (see screenshot).
>
> However because we want to translate and don't want the translator to
> understand HTML, when they change the text it doesn't look good in Chinese
> for example because their language isn't so wordy and forcing to use
> multiple lines makes it look bad.
>
> Now what if the translation tool could handle HTML tags with a text
> editor. That way if you wrap T('') around HTML tags it would show as is in
> the translation tool, then when someone types a different language they
> have full control over the content. Allow a designer to design specific for
> a language not for the in-forced HTML tags.
>
> --
> --
> Regards,
> Bruce Wade
> http://ca.linkedin.com/in/brucelwade
> http://www.wadecybertech.com
> http://www.warplydesigned.com
> http://www.fitnessfriendsfinder.com
>