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. Qt Linguist: Open several ts files from command line
QtWS25 Last Chance

Qt Linguist: Open several ts files from command line

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
linguist
9 Posts 3 Posters 3.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.
  • StefanoDS Offline
    StefanoDS Offline
    StefanoD
    wrote on last edited by
    #1

    Hi,

    our projects are divided in many subprojects. That is, we have one parent pro file referring to several child pro files.
    When we run lupdate on the parent pro file, we get several ts files.
    One of our use cases is to search translations keys or translations in all these ts files when a bad or missing translation is detected in the GUI. The problem is, that we have really many ts files and when I open many ts files with Qt Linguist, I get the warning, that the to be opened ts files are not related and if I really want to open them. I get this warning for every ts file!
    My question is, if it is possible to open all ts files by command line with the option to surpress the warning.

    Thanks in advance!

    Stefano

    kshegunovK 1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      A quick look at linguist's code doesn't show any flag/option to avoid that message. You can try to open a feature request for that.

      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
      0
      • StefanoDS Offline
        StefanoDS Offline
        StefanoD
        wrote on last edited by
        #3

        Thanks for your reply. Unfortunately, the developer didn't take us seriously.
        And because we assume he would resign patches from us, we are forced to develop a custom tool with our needs.

        https://bugreports.qt.io/browse/QTBUG-52458

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

          If by patches you mean implement multi-document support in Assistant then I don't think it will be blocked.

          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
          0
          • StefanoDS Offline
            StefanoDS Offline
            StefanoD
            wrote on last edited by
            #5

            Too vague and shaky, sorry.
            Linguist can open several ts files, but this "is not meant for".

            1 Reply Last reply
            0
            • StefanoDS StefanoD

              Hi,

              our projects are divided in many subprojects. That is, we have one parent pro file referring to several child pro files.
              When we run lupdate on the parent pro file, we get several ts files.
              One of our use cases is to search translations keys or translations in all these ts files when a bad or missing translation is detected in the GUI. The problem is, that we have really many ts files and when I open many ts files with Qt Linguist, I get the warning, that the to be opened ts files are not related and if I really want to open them. I get this warning for every ts file!
              My question is, if it is possible to open all ts files by command line with the option to surpress the warning.

              Thanks in advance!

              Stefano

              kshegunovK Offline
              kshegunovK Offline
              kshegunov
              Moderators
              wrote on last edited by kshegunov
              #6

              @StefanoD
              Hello,
              It's not a good answer, but you could open the *.ts files with any text editor of choice (they're XML) and do the searching/modification by hand. Granted, it's not the most convenient way but should work.

              Kind regards.

              Read and abide by the Qt Code of Conduct

              1 Reply Last reply
              0
              • StefanoDS Offline
                StefanoDS Offline
                StefanoD
                wrote on last edited by
                #7

                @kshegunov : Thx, but this was meant only to be the first step for more features, like batch translations of multiple ts files. We would have implemented them ourselves, if we could really be sure, the patches would be accepted.

                kshegunovK 1 Reply Last reply
                0
                • StefanoDS StefanoD

                  @kshegunov : Thx, but this was meant only to be the first step for more features, like batch translations of multiple ts files. We would have implemented them ourselves, if we could really be sure, the patches would be accepted.

                  kshegunovK Offline
                  kshegunovK Offline
                  kshegunov
                  Moderators
                  wrote on last edited by
                  #8

                  @StefanoD
                  Fair enough. I'd then file a multi-document feature request for Linguist, as this seems to be the main reasoning of the developer for rejecting your suggestion, and if it's "accepted" I'd start implementing the needed changes.

                  Read and abide by the Qt Code of Conduct

                  1 Reply Last reply
                  0
                  • StefanoDS Offline
                    StefanoDS Offline
                    StefanoD
                    wrote on last edited by
                    #9

                    I'll give it a try.

                    https://bugreports.qt.io/browse/QTBUG-52589

                    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