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. Qt Multi Language Application on imx6 board (wandboard)

Qt Multi Language Application on imx6 board (wandboard)

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 2 Posters 1.8k Views
  • 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.
  • P Offline
    P Offline
    Pavan
    wrote on last edited by
    #1

    Hi,

    I am trying to create a multi language in qt with language options as Chinese, Korean. I have followed the example from the below link

    http://qt-project.org/faq/answer/how_can_i_dynamically_switch_between_languages_in_my_application_using_e.g_

    I have changed the language options in above example from t1_fr, tf_sp to t1_zh (simpiified chinese) and t1_ko (korean) respectively

    I have added the t1_zh.ts, t1_zh.qm, t1_ko.ts, t1_ko.qm files as resource files on to my application

    Added the below line in my .pro file
    TRANSLATIONS += t1_ko.ts
    t1_zh.ts

    Run the linguist and lrelease on the ts file to apply the translations.

    I am able to compile it & run it on my host pc (Ubuntu 14.04) and can see appropriate language when selected from the combo box.

    Now I am trying to compile and deploy the same onto my imx6q based board (wandboard-quad). I have cross compiled it successfully and copied to target.

    When I started the app on wandboard, I can see english language absolutely perfect. But when selected "zh" (i.e. chinese) from combo box, I can't see anything on the screen. when selected "ko" (i.e. korean) from combo box, I can see some boxes on the screen but not the appropriate font.

    Since I have included the qm files as resources in my app, I think there is no need to copy them onto target board.

    I am missing something else to get the multi language app running on target board. Can some one please let me know what else needs to be done

    Regards,
    Pavan

    1 Reply Last reply
    0
    • P Offline
      P Offline
      Pavan
      wrote on last edited by
      #2

      Hi,

      Can someone please let me know how to deploy the multi language app on target board (arm based)

      Thanks in advance

      Regards,
      Pavan

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

        Hi and welcome to devnet,

        You need to take on the same steps you would use to deploy a desktop application. So you can follow the Internationalization chapter in Qt's documentation

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

        P 1 Reply Last reply
        0
        • SGaistS SGaist

          Hi and welcome to devnet,

          You need to take on the same steps you would use to deploy a desktop application. So you can follow the Internationalization chapter in Qt's documentation

          P Offline
          P Offline
          Pavan
          wrote on last edited by
          #4

          @SGaist
          Hi,
          I have made some progress in this aspect. After deploying the my application onto wandboard, initially I could see only english.

          I made use of makeqpf tool and converted the UnDotum.ttf font (korean font) to qpf format and copied them (both UnDotum.ttf and qpf files) on to target at fonts location (on my board it was /usr/lib/fonts). By doing so, when I select ko from combo box I can see the text translated to korean on my GUI screen and it works fine.

          I have tried the same for chinese font also. I have converted wqy-zenhei.ttf font (chinese font) to qpf format and copied them (both wqy-zenhei.ttf and its qpf format) on to target at fonts location. But when I select zh, text simply disappears on the screen and nothing is displayed.

          Is there any additional step to be done to display chinese font on the GUI screen.

          Please let me know

          Thanks in advance

          Regards,
          Pavan

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

            I'd check with QFontDatabase that the font can be found

            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