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?
QtWS25 Last Chance

How to solve QML internationalization?

Scheduled Pinned Locked Moved QML and Qt Quick
6 Posts 5 Posters 4.2k 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.
  • S Offline
    S Offline
    sfjam
    wrote on 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 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 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 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 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 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

              • Login

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