Trolltech Home | Qt4-preview-feedback Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt4-preview-feedback Archive, October 2007
Qt Linguist and HTML


Message 1 in thread

Hello everyone,

I introduced a formatted text in a QLabel widget ("ab/ someText") using
the Qt Designer. 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.

So, to resolve this problem, I suggest adding in Qt Linguist the
possibility of drawing the source text as plain text or rich text and
adding buttons to format the translated text (make it bold, italic,
colors, etc.).

Thanks,
Moez