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?

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
  • 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.
  • J Offline
    J Offline
    jeanmilost
    wrote on 18 Nov 2020, 22:51 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
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 19 Nov 2020, 11:48 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
      • J Offline
        J Offline
        jeanmilost
        wrote on 19 Nov 2020, 11:59 last edited by
        #3

        ok, thank you very much for the answer

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MajidKamali
          wrote on 19 Nov 2020, 13:25 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

          4/4

          19 Nov 2020, 13:25

          • Login

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