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. How to solve QML internationalization?
Forum Updated to NodeBB v4.3 + New Features

How to solve QML internationalization?

Scheduled Pinned Locked Moved QML and Qt Quick
6 Posts 5 Posters 4.2k 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.
  • S Offline
    S Offline
    sfjam
    wrote on 7 Jul 2011, 08:12 last edited by
    #1

    hi everyone:can you tell me how to implement QML internationalization?i want to implement display chinese!

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Alexandr Ekimov
      wrote on 7 Jul 2011, 14:26 last edited by
      #2

      http://doc.qt.nokia.com/4.7-snapshot/qdeclarativei18n.html

      Ekimov Alexander,
      http://www.ekimoff.com

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mbrasser
        wrote on 8 Jul 2011, 02:28 last edited by
        #3

        Hi,

        You should be able to add Chinese directly into your QML file (if it doesn't display correctly when you run, you might need to change the file's encoding to UTF-8).

        Regards,
        Michael

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dbzhang800
          wrote on 8 Jul 2011, 04:46 last edited by
          #4

          [quote author="mbrasser" date="1310092114"]Hi,

          You should be able to add Chinese directly into your QML file (if it doesn't display correctly when you run, you might need to change the file's encoding to UTF-8).

          Regards,
          Michael[/quote]

          Hello Mcihael,

          Does this mean .qml files always use utf-8 codec.

          Thanks,

          Debao

          1 Reply Last reply
          0
          • S Offline
            S Offline
            sfjam
            wrote on 9 Jul 2011, 13:36 last edited by
            #5

            it successed when use qmlviewer,but when i use Qt run directly,it failed,but in main.cpp i have installed QTranslator,i followed the Qt Internationalization,so who can help me solve this problem?thanks very much!

            1 Reply Last reply
            0
            • C Offline
              C Offline
              changsheng230
              wrote on 10 Jul 2011, 06:22 last edited by
              #6

              This has been discussed, please refer to the "threads":http://developer.qt.nokia.com/forums/viewthread/2032/:

              Chang Sheng
              常升

              1 Reply Last reply
              0

              1/6

              7 Jul 2011, 08:12

              • Login

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