[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-i18n-doc
Subject:    Re: Re: Some strings resist to translate. -- Definitely a Qt Designer bug
From:       Burkhard =?ISO-8859-1?Q?L=FCck?= <lueck () hube-lueck ! de>
Date:       2013-04-24 12:11:48
Message-ID: 1662843.GHOmR2ABtZ () parodia
[Download RAW message or body]

Am Mittwoch, 24. April 2013, 14:01:26 schrieb Orestes Mas:
> El Dimecres 24 Abril 2013, a les 12:12:53, Orestes Mas va escriure:
> 
> Finally I'm finding that if you enter a text containing quotes in any Qt
> Designer field that accepts "rich text" format, this text is incorrectly
> coded into the *.ui file generated by designer.
> 
> I've tested only the "tooltip" and "what's this" fields, but I think the
> error is valid for other rich text fields (if any).
> 
> To reproduce, put this text in "rich text" format in the "toolTip" field of
> some control in a designer form:
> 
> Sample text for the "tooltip" field in "rich text" format
> 
> Looking at the source tab, the HTML code is:
> 
> <html><head/><body><p>Sample text for the &quot;tooltip&quot; field, in
> &quot;rich text&quot; format.</p></body></html>
> 
> Notice that quotes are correctly coded as '&quot;', which is correct
> 
> BUT in the .ui file, this text will be stored as:
> 
> <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Sample text for the
> &amp;quot;tooltip&amp;quot; field, in &amp;quot;rich text&amp;quot;
> format.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
> 
> Notice that the HTML entity '&quot;' is erroneously expanded as '&amp;quot;'
> instead of '&amp;&quot;'
> 
> Which is the error that Burkhard pointed out.
> 
> Anyone with an account at Qt bug tracker willing to report this bug (after
> confirming it, of course) ?

Afair this bug happens for "&quot;lt;" and &quot;gt;" as well, see

https://projects.kde.org/projects/kde/applications/konsole/repository/revisions/5ff04a800dabd6394b6f851d7f4b0185fb1eb74e/diff/src/EditProfileDialog.ui


-- 
Burkhard Lück


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic