Solved Linguist ignoring qStr. Why?
-
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:
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
-
-
@sierdzio It is.
Just mistake in this message not in code
-
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 startlupdate
from a different directory, it might get confused. -
@sierdzio Thx will try to do it ... but all of I've done before just in following of official doc ...
-
@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? -
@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".
-
Nice, good to hear it. Happy coding!
-
@sierdzio Thx