Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Problems with QML internationalisation on Windows CE with Qt 4.8.2

Problems with QML internationalisation on Windows CE with Qt 4.8.2

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 1 Posters 1.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    ludde
    wrote on last edited by
    #1

    Just updated from Qt 4.7.4 to 4.8.2, and am having a problem with QML internationalisation.
    Problem occurs when I pass a non-ASCII character to the qsTr() function, but only on Windows CE, on Windows it works as expected.
    E.g., the following example

    @Text { text: "°" + qsTr("°") + "\xb0" + qsTr("\xb0") }@

    displays as °°°° on Windows, but as °Ã☐°°Â° on Windows CE. I.e. only "\xb0" displays as expected.
    (All of this without actually providing a translation.)

    Any ideas on what could be causing this?

    1 Reply Last reply
    0
    • L Offline
      L Offline
      ludde
      wrote on last edited by
      #2

      Solved this myself. The problem was that I had defined QT_NO_CODECS and QT_NO_TEXTCODEC when configuring Qt. If I remove these definitions, things work as expected (except for a bug which I have reported as "QTBUG-26193":https://bugreports.qt-project.org/browse/QTBUG-26193).

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved