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. [SOLVED]QML internalization per file ??
QtWS25 Last Chance

[SOLVED]QML internalization per file ??

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 2 Posters 2.6k 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.
  • D Offline
    D Offline
    dridk
    wrote on last edited by
    #1

    Hello,

    I read some documentation about qml internalization. It seems I have to provide 1 translation file per qml file...
    So my C++ application contain many qml file ( qmlCount) . And I have to internalizate it for many language... ( lngCount)

    Does it mean I have to create : qmlCount * lnCount files ??
    If I have 20 qml file, and I need to translate my application to 10 language... The translation files will be 200 !!

    So my question is : How can I translate my qml application to have 1 translation file per application! Like the translation C++ system!

    It's seems it will be more easy to use an sqlite file! no ?

    Nothing in Biology Makes Sense Except in the Light of Evolution

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dridk
      wrote on last edited by
      #2

      Ok I found!

      lupdate file1.qml file2.qml -ts translation.ts!

      Nothing in Biology Makes Sense Except in the Light of Evolution

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sfilippidis
        wrote on last edited by
        #3

        Since you found the solution, please edit your initial post of this thread so that it reads:

        [SOLVED] QML internalization per file ??

        to indicate that the issue is closed/solved. :-)

        https://www.filippidis.name/

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dridk
          wrote on last edited by
          #4

          Ok ! I had not found the button! Now it's ok

          Nothing in Biology Makes Sense Except in the Light of Evolution

          1 Reply Last reply
          0
          • S Offline
            S Offline
            sfilippidis
            wrote on last edited by
            #5

            [quote author="dridk" date="1311868710"]Ok ! I had not found the button! Now it's ok[/quote]

            Nice! It is an "unofficial" method we use to indicate that the thread addresses a (now) resolved issue! :-)

            https://www.filippidis.name/

            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