Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
None
-
None
Description
For a long time, there have been requests for Qt Linguist to either hide HTML or to have a built-in rich text editor. For example: https://bugreports.qt.io/browse/QTBUG-1136
For example, I have a label or other component added in Qt Creator, which has rich text in it. Many translators who are not familiar with HTML, try to translate some of the HTML tags. Even for translators who are familiar with HTML, editing the text can be very tedious if the formatting is very complex.
I understand that hiding the mark-up is not an option, due to problems with certain languages not using the Latin alphabet and requiring different mark-ups, and I understand that adding a complete rich text editor into Linguist would be a lot of work.
Therefore, an easier solution would be to simply highlight the mark-up. We could then tell the translators, for example, "don't translate anything with a yellow background!"
Even for those familiar with HTML, this would make it a lot easier to actually find the text they should translate.
Example
Old system:
<html><head/><body><p><a href="#download"><span style=" text-decoration: underline; color:#0000ff;">download</span></a> the newest version</p></body></html>
Proposed system:
<html><head/><body><p><a href="#download"><span style=" text-decoration: underline; color:#0000ff;">
download
</span></a>
the newest version
</p></body></html>
(the example adds a new line between the marked and non-marked segments. This is not a part of the proposal, I just didn't find any other way to add a background color)