Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Linguist lupdate problem
Qt 6.11 is out! See what's new in the release blog

Linguist lupdate problem

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
6 Posts 2 Posters 1.0k 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.
  • I Offline
    I Offline
    IknowQT
    wrote on last edited by
    #1

    I created a new class in the previously worked ts file and worked with tr tags there. And to work on the translation, I updated the ts file with lupdate.

    The contents of the newly created class are not loaded.
    If you delete the ts file and run lupdate to re-create it, the contents of the newly created class are displayed normally. The problem is that all of the previously worked content is gone...

    I want to keep accumulating while maintaining the existing content, but is there any way to do this? I am developing in vs2019 environment.

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Did you rename the class? If so you either have to update the class name in the ts file manually or re-add all the translated texts.

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

      I 1 Reply Last reply
      0
      • Christian EhrlicherC Christian Ehrlicher

        Did you rename the class? If so you either have to update the class name in the ts file manually or re-add all the translated texts.

        I Offline
        I Offline
        IknowQT
        wrote on last edited by
        #3

        @Christian-Ehrlicher

        I just added the class and didn't change the name. ㅜㅜ

        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @IknowQT said in Linguist lupdate problem:

          I just added the class

          I created a new class in the previously worked ts

          Sorry but I don't understand what you did...

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

          I 1 Reply Last reply
          0
          • Christian EhrlicherC Christian Ehrlicher

            @IknowQT said in Linguist lupdate problem:

            I just added the class

            I created a new class in the previously worked ts

            Sorry but I don't understand what you did...

            I Offline
            I Offline
            IknowQT
            wrote on last edited by
            #5

            @Christian-Ehrlicher

            The ts file requires accumulation of multilingual activity, but will not be added to the Linguist context list after adding a new class.

            74f12747-4f74-4c11-b024-1fbbc7428046-image.png

            1 Reply Last reply
            0
            • Christian EhrlicherC Offline
              Christian EhrlicherC Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on last edited by
              #6

              You have to run lupdate to update the ts files as described in the documentation.

              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
              1

              • Login

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