Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Is processing and translation of .ts files now automatic?
Forum Updated to NodeBB v4.3 + New Features

Is processing and translation of .ts files now automatic?

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 4 Posters 533 Views 2 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.
  • SPlattenS Offline
    SPlattenS Offline
    SPlatten
    wrote on last edited by
    #1

    The Qt 4.8 version of the project I'm working with has 12 ,ts files under TRANSLATIONS in the .pro file, additionally these files are read in by the C++ and processed.

    There is another project based on the same which although it has the same section in the .pro file it does not have any C++ for reading or processing these files.

    Is this something that is no longer required in Qt >= 5.8 or is it still required and just missing?

    Kind Regards,
    Sy

    J.HilkJ 1 Reply Last reply
    0
    • SPlattenS Offline
      SPlattenS Offline
      SPlatten
      wrote on last edited by
      #2

      Anyone, does anyone know?

      Kind Regards,
      Sy

      1 Reply Last reply
      -1
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        Please have some patience and allow at least 24 hours before bumping your own thread. People answering here do it on their time and might not live in the same timezone as you.

        The ts files are generated based on your code however they can be handled separately.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        2
        • SPlattenS SPlatten

          The Qt 4.8 version of the project I'm working with has 12 ,ts files under TRANSLATIONS in the .pro file, additionally these files are read in by the C++ and processed.

          There is another project based on the same which although it has the same section in the .pro file it does not have any C++ for reading or processing these files.

          Is this something that is no longer required in Qt >= 5.8 or is it still required and just missing?

          J.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on last edited by
          #4

          @SPlatten No, you still need your QTranslator to load your ts-File, no automation as of yet.
          And how else would you then add your own non common language package to your application, like Pirate Language


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          1 Reply Last reply
          0
          • SPlattenS Offline
            SPlattenS Offline
            SPlatten
            wrote on last edited by
            #5

            @J-Hilk , thanks for the response, I think I've found something which could help and it would appear that the file extension is no longer required.

            https://doc.qt.io/qt-5/qtlinguist-hellotr-example.html

            Kind Regards,
            Sy

            J.HilkJ Christian EhrlicherC 2 Replies Last reply
            0
            • SPlattenS SPlatten

              @J-Hilk , thanks for the response, I think I've found something which could help and it would appear that the file extension is no longer required.

              https://doc.qt.io/qt-5/qtlinguist-hellotr-example.html

              J.HilkJ Offline
              J.HilkJ Offline
              J.Hilk
              Moderators
              wrote on last edited by
              #6

              @SPlatten said in Is processing and translation of .ts files now automatic?:

              I think I've found something which could help and it would appear that the file extension is no longer required.

              that is correct, QTranslator will, when no extension provided, search/supplement with a range of common translator extensions.

              It will take "longer" but, as far as I can tell thats the only downside


              Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


              Q: What's that?
              A: It's blue light.
              Q: What does it do?
              A: It turns blue.

              1 Reply Last reply
              2
              • SPlattenS SPlatten

                @J-Hilk , thanks for the response, I think I've found something which could help and it would appear that the file extension is no longer required.

                https://doc.qt.io/qt-5/qtlinguist-hellotr-example.html

                Christian EhrlicherC Offline
                Christian EhrlicherC Offline
                Christian Ehrlicher
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @SPlatten said in Is processing and translation of .ts files now automatic?:

                that the file extension is no longer required.
                https://doc.qt.io/qt-5/qtlinguist-hellotr-example.html

                'No longer' mean more than 13 years I would guess... :)
                https://sourceforge.net/p/qtwin/code/HEAD/tree/qt-3/trunk/src/kernel/qtranslator.cpp line 449

                Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                Visit the Qt Academy at https://academy.qt.io/catalog

                1 Reply Last reply
                3

                • Login

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