Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
None
-
None
Description
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
Attachments
Issue Links
- resulted in
-
QTBUG-10976 simplify html created by qtextedit (again)
- Closed