Qt-interest Archive, October 2007
Qt Linguist and HTML
Message 1 in thread
> Hello everyone,
>
> Is it possible to display in Qt Linguist the source text for
> translation as a rich text (i.e. without HTML tags)?
>
>
> I introduced a formatted text in a QLabel widget ("ab/ someText").
> When I generate the .ts files, the corresponding text to be translated
> is the following:
>
> <html><head><meta name="qrichtext" content="1" /><style
> type="text/css">\np, li { white-space: pre-wrap;
> }\n</style></head><body style=" font-family:'MS Shell Dlg 2';
> font-size:8.25pt; font-weight:400; font-style:normal;">\n<p style="
> margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px;
> -qt-block-indent:0; text-indent:0px;"><span style="
> font-weight:600;">ab/</span> someText</p></body></html>
>
> I find the text above difficult to translate, obviously by a
> translator (not a programmer), and the problem is worse when we intend
> to translate a right-to-left language.
>
> Is there a way to avoid generating html tags in the text to be
> translated? And if not, what do you think the solution is?
>
> Thanks,
> Moez