PDA

View Full Version : Linguist extract bugs



RolandHughes
16th June 2014, 15:56
Qt Creator 2.6.2 based on 4.8.3 based on some flavor of Ubuntu 32-bit

Have been seeing some notable extract issues with Linguist and wonder if anyone has a work around, short of hand editing the .ts file which is what I have been doing. I was hoping there was some kind of escape sequence or tweaking of the text we could to to make it work correctly. Here is a very good example of what is happening.

In the code we have this:

//% "°C"
addItem(qtTrId("SID_DegreesCelsius_ABB"), 8);
//% "°F"
addItem(qtTrId("SID_DegreesFahrenheit_ABB") 9);

As you can see the text even displays correctly in this message editor. Not so happy in the .ts file though.

<message id="SID_DegreesCelsius_ABB">
<source>°C</source>
<message id="SID_DegreesFahrenheit_ABB">
<source>°F</source>

Anybody know of some kind of escape sequence or quoting which will fix this issue? We have quite a few different entries getting luggied up and I would really like to put the issue to bed.

Thanks,

RolandHughes
16th June 2014, 18:22
I found the issue. The .pro file was missing the following line.

CODECFORTR = UTF-8