Translation Markmin is available.

T.M('**bold** this text')

On Wednesday, October 1, 2014 6:03:44 PM UTC+8, Pablo Angulo wrote:
>
> I sometimes find very inconvenient the translate feature. Some views 
> contain a lot of static text, so if I want to translate it I would do: 
>
> <p>{{=T('I sometimes find very inconvenient the translate feature. Some 
> views contain a lot of text, so if I want to translate it I would 
> do:')}}</p> 
>
> but if there are other html tags, I have to choose between: 
>
> {{=T('''<p>Some  <strong>important</strong> text and other 
> <li>emphasizes</li> items.</p> 
> <p>Another paragraph</p> 
> <p>and the last one</p>''')}} 
>
> which is not ideal because any translator can break the DOM correctness 
> of the page for just one language, or 
> <p>{{=T('Some')}} <strong>{{=T(''important'')}}</strong> ... 
>
> which is cumbersome, and the complete sentence may not make sense at all 
> if the pieces are translated at random order. 
>
> I'm considering using MARKMIN, so the view would be: 
>
> {{=MARKMIN(T(''' 
> # Title 
>
> this is **bold** or ''italic'' and this [[a link http://web2py.com]] 
> '''))}} 
>
> But before I dive deeper: what do you think? 
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to