Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Linguist problem: like to toggle between thai and english by timer trigger. (solved)
Forum Updated to NodeBB v4.3 + New Features

Linguist problem: like to toggle between thai and english by timer trigger. (solved)

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 649 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.
  • H Offline
    H Offline
    houmingc
    wrote on last edited by
    #1

    I would like to toggle between two language by a timer.
    Currently i am not able to display thai language.
    I will be reading xml file using QxmlStreamReader and display on UI.
    I would like to know what did i miss, Because i know i am nearly there

    i am following the link below
    http://qt.developpez.com/doc/4.7/linguist-hellotr/

    ==================================
    1.in linguist/hellotr, initially there is only two file hellotr.pro & main.cpp

    2.after running “lupdate -verbose hellotr.pro”
    hellotr_la.ts file is created.

    3.after running “linguist hellotr_la.ts”
    hellotr_la.qm file is created.

    =xml format =============================
    <?xml version=“1.0” encoding=“utf-8”?>
    <!DOCTYPE TS>
    <TS version=“2.0” language=“th_TH” sourcelanguage=“en_SG”>
    <context> <name>QPushButton</name> <message> <location filename=“main.cpp” line=“63”/> <source>Hello world!</source> <translatorcomment>Orbis, te saluto !</translatorcomment> <translation>Orbis, te Saluto!</translation> </message>
    </context>
    </TS>

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Please stop re-posting almost same questions. This subject is already being talked about "here":http://qt-project.org/forums/viewthread/48844/

      Closing this one.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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