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. Is there a way to load the .ts files directly with QTranslator, without compiling them to .qm?
Forum Updated to NodeBB v4.3 + New Features

Is there a way to load the .ts files directly with QTranslator, without compiling them to .qm?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
translatortranslationfileqml
4 Posts 3 Posters 1.1k 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.
  • jeanmilostJ Offline
    jeanmilostJ Offline
    jeanmilost
    wrote on last edited by
    #1

    I'm interested to know if there is a way to load the .ts translation files directly with QTranslator, without having to compile them to .qm first. Is it possible, or there is no way to perform that and the files should always be compiled before be loaded by the QTranslator object?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      There is no way that I know of. You should always use QM files in QTranslator.

      (Z(:^

      1 Reply Last reply
      0
      • jeanmilostJ Offline
        jeanmilostJ Offline
        jeanmilost
        wrote on last edited by
        #3

        ok, thank you very much for the answer

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MajidKamali
          wrote on last edited by
          #4

          I think you can bundle lupdate in your application and create qm file on the fly.

          P.S. : TS files are just xml files, so you can change them in your own application, via user feedback or something else

          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