Qt linguist problem with utf8 accent (qml and c++)
-
Hi,
I'm trying to translate an application using qt4.8.2 and qml from french (containing accents) to english.
I works fine for orginal sentences containing no accent (utf-8 caracters). But for original (french) sentences with accents it simply does not apply translation. The sentences with accents appear fine in qt linquist interface and in the original application. All the source code (c++ and qml) is encoded in utf8 format.
In c++ I have found a trick that make it work for sentence with accents:
@//gets correctly translated
QObject::tr(QObject::trUtf8("éèê").toUtf8());
//!!! DOES NOT GET TRANSLATED !!!
QObject::trUtf8("éèê")
@But in QML it's not possible to do anything like that.
qml:
@//!! DOES NOT GET TRANSLATED !!
qsTr("éèê");
//gets correctly translated
qsTr("Bonjour");
@Would you have a clue?
Thank's in advance.Pierre.
-
Hi and welcome to devnet,
Did you check the "bug report system":http://bugreports.qt-project.org to see whether it's something known ?