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. QT Linguist
Forum Updated to NodeBB v4.3 + New Features

QT Linguist

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 420 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 SPlatten
    #1

    I spent several hours yesterday using Qt Linguist providing translations for all the text in my application. Today I noticed one of the forms didn't have translation, I cleaned the application and remade, however not I find that all the work I did yesterday is gone.

    Every translation is empty, why? what has caused this?

    Are the line numbers in the ts XML file relevant and actually used?

    Kind Regards,
    Sy

    KroMignonK 1 Reply Last reply
    0
    • SPlattenS SPlatten

      I spent several hours yesterday using Qt Linguist providing translations for all the text in my application. Today I noticed one of the forms didn't have translation, I cleaned the application and remade, however not I find that all the work I did yesterday is gone.

      Every translation is empty, why? what has caused this?

      Are the line numbers in the ts XML file relevant and actually used?

      KroMignonK Offline
      KroMignonK Offline
      KroMignon
      wrote on last edited by
      #2

      @SPlatten I don't really understand what you have done, sorry.

      To update translation source file (ts), you have to use lupdate. There is no need to recompile the application for that.

      AFAIK, the line number is only used by the Qt linguist to show the context.

      It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

      SPlattenS 1 Reply Last reply
      0
      • KroMignonK KroMignon

        @SPlatten I don't really understand what you have done, sorry.

        To update translation source file (ts), you have to use lupdate. There is no need to recompile the application for that.

        AFAIK, the line number is only used by the Qt linguist to show the context.

        SPlattenS Offline
        SPlattenS Offline
        SPlatten
        wrote on last edited by
        #3

        @KroMignon , live and learn, I checked it out from git again, so back where I was, is there any way to partially update the ts without loosing everything?

        For example if a new form is added to the application, how to add that to an existing translation file?

        Kind Regards,
        Sy

        KroMignonK 1 Reply Last reply
        0
        • SPlattenS SPlatten

          @KroMignon , live and learn, I checked it out from git again, so back where I was, is there any way to partially update the ts without loosing everything?

          For example if a new form is added to the application, how to add that to an existing translation file?

          KroMignonK Offline
          KroMignonK Offline
          KroMignon
          wrote on last edited by
          #4

          @SPlatten said in QT Linguist:

          I checked it out from git again, so back where I was, is there any way to partially update the ts without loosing everything?
          For example if a new form is added to the application, how to add that to an existing translation file?

          I don't know how you use lupdate, per default nothing is removed from ts file. To remove entries from ts, you have to add --no-obsolete.

          REM update translation files
          lupdate -pro <project_file_name>
          
          REM update and remove old strings
          lupdate -pro <project_file_name> --no-obsolete
          

          It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

          1 Reply Last reply
          2

          • Login

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