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. Linguist ignoring qStr. Why?
Forum Updated to NodeBB v4.3 + New Features

Linguist ignoring qStr. Why?

Scheduled Pinned Locked Moved Solved General and Desktop
9 Posts 2 Posters 940 Views 1 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.
  • B Offline
    B Offline
    bogong
    wrote on last edited by bogong
    #1

    Hello all!
    Linguist ignoring all of qsTr in QML totally. Why it's happening?

    Already cleaned everything. I've already checked all of sources in *.pro file with:

    lupdate_only{...} 
    

    Qt Creator showing them in Project-tree:

    Screenshot 2021-04-18 at 15.20.26.png

    But when I run Linguist see this:

    15:10:59 Starting external tool "/Users/alexandr/Tools/Qt/5.15.2/ios/bin/lupdate /Users/alexandr/Projects/Mobile/Mobile.pro"
    Info: creating stash file /Users/alexandr/Projects/Mobile/.qmake.stash
    
    Updating '../Resources/Localisation/Mobile_en.ts'...
        Found 0 source text(s) (0 new and 0 already existing)
    Updating '../Resources/Localisation/Mobile_ru.ts'...
        Found 0 source text(s) (0 new and 0 already existing)
    
    15:11:00 "/Users/alexandr/Tools/Qt/5.15.2/ios/bin/lupdate" finished
    
    sierdzioS 1 Reply Last reply
    0
    • B bogong

      Hello all!
      Linguist ignoring all of qsTr in QML totally. Why it's happening?

      Already cleaned everything. I've already checked all of sources in *.pro file with:

      lupdate_only{...} 
      

      Qt Creator showing them in Project-tree:

      Screenshot 2021-04-18 at 15.20.26.png

      But when I run Linguist see this:

      15:10:59 Starting external tool "/Users/alexandr/Tools/Qt/5.15.2/ios/bin/lupdate /Users/alexandr/Projects/Mobile/Mobile.pro"
      Info: creating stash file /Users/alexandr/Projects/Mobile/.qmake.stash
      
      Updating '../Resources/Localisation/Mobile_en.ts'...
          Found 0 source text(s) (0 new and 0 already existing)
      Updating '../Resources/Localisation/Mobile_ru.ts'...
          Found 0 source text(s) (0 new and 0 already existing)
      
      15:11:00 "/Users/alexandr/Tools/Qt/5.15.2/ios/bin/lupdate" finished
      
      sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      @bogong said in Linguist ignoring qStr. Why?:

      qStr

      It's qsTr, not qStr.

      (Z(:^

      B 1 Reply Last reply
      1
      • sierdzioS sierdzio

        @bogong said in Linguist ignoring qStr. Why?:

        qStr

        It's qsTr, not qStr.

        B Offline
        B Offline
        bogong
        wrote on last edited by bogong
        #3

        @sierdzio It is.

        Screenshot 2021-04-18 at 15.24.14.png

        Just mistake in this message not in code

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          OK, so it should work.

          Maybe try listing QML files exactly, without * wildcard? It's shouldn't make a difference but who knows.

          Also, try removing $$PWD from your paths, since you probably start lupdate from a different directory, it might get confused.

          (Z(:^

          B 1 Reply Last reply
          0
          • sierdzioS sierdzio

            OK, so it should work.

            Maybe try listing QML files exactly, without * wildcard? It's shouldn't make a difference but who knows.

            Also, try removing $$PWD from your paths, since you probably start lupdate from a different directory, it might get confused.

            B Offline
            B Offline
            bogong
            wrote on last edited by
            #5

            @sierdzio Thx will try to do it ... but all of I've done before just in following of official doc ...

            sierdzioS 1 Reply Last reply
            0
            • B bogong

              @sierdzio Thx will try to do it ... but all of I've done before just in following of official doc ...

              sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by sierdzio
              #6

              @bogong said in Linguist ignoring qStr. Why?:

              @sierdzio Thx will try to do it ... but all of I've done before just in following of official doc ...

              Yeah like I say - as far as I see your code (both QML and qmake) is correct, I suspect a bug in lupdate for iOS. So I'm giving you some guesses on what might help.

              Oh, by the way - maybe try running lupdate from macOS instead of iOS?

              (Z(:^

              B 1 Reply Last reply
              1
              • sierdzioS sierdzio

                @bogong said in Linguist ignoring qStr. Why?:

                @sierdzio Thx will try to do it ... but all of I've done before just in following of official doc ...

                Yeah like I say - as far as I see your code (both QML and qmake) is correct, I suspect a bug in lupdate for iOS. So I'm giving you some guesses on what might help.

                Oh, by the way - maybe try running lupdate from macOS instead of iOS?

                B Offline
                B Offline
                bogong
                wrote on last edited by bogong
                #7

                @sierdzio Hallelujah!!! It's working only if running on MacOS. I've got it updated. Haven't noticed that I am building for iOS. It's been making me crazy. :-))) 3 hours of "what has got broken since yesterday".

                1 Reply Last reply
                0
                • sierdzioS Offline
                  sierdzioS Offline
                  sierdzio
                  Moderators
                  wrote on last edited by
                  #8

                  Nice, good to hear it. Happy coding!

                  (Z(:^

                  B 1 Reply Last reply
                  0
                  • sierdzioS sierdzio

                    Nice, good to hear it. Happy coding!

                    B Offline
                    B Offline
                    bogong
                    wrote on last edited by
                    #9

                    @sierdzio Thx

                    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