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
-
-
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. -
@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? -
Nice, good to hear it. Happy coding!