These are chat archives for Mudlet/Mudlet/whatever

10th
Sep 2017
Stephen Lyons
@SlySven
Sep 10 2017 00:06

Make an interesting discovery in that the Qt Designer plugin in bundled into the QtCreator in the Qt 5.5 installation does not force the horrible anti-translator obfuscation of HTML (or rather Qt's "rich-text" subset of it) in things like tooltips that later versions clobber you with - this is an issue because the 8-year old unfixed bug in Qt Linguist that means that translators have to edit the raw HTML source text and will, instead of say seeing:

<html><head/><body><p>Hello world!</p></body></html>

they got presented with:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">

<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;">
<table border="0" style="-qt-table-type: root; margin-top:4px; margin-bottom:4px; margin-left:4px; margin-right:4px;">
<tr>
<td style="border: none;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans'; font-size:9pt;">Hello world!</span></p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans'; font-size:9pt; font-weight:600;"><br /></p>
</td>
</tr>
</table></body>
</html>

because Qt Designer now completely disregards it's own control option to use simple formating ... given that translators who are using Qt Linguist (other options are now available) are not necessarily expected to be coders OR fluent in HTML this would be a nightmare for them IMHO.