I am confused with lupdate with different directory!
Unsolved
General and Desktop
-
hi guys, i'm using 5.14.1 + win10.
I need put different project'ts file to different folder.
so every pro include a pri to config the variable.
here is the code in pri file:# just for test variable UNIVERSAL_LIBRARY2 = 1 MACHINE_TYPE2 = 1234 equals(UNIVERSAL_LIBRARY2,"1") { TRANS_DIR = $$PWD/Common/resource/res/lang/universal-plugin } else { TRANS_DIR = $$PWD/Common/resource/res/lang/as$${MACHINE_TYPE2} } message("trans dir is:") message($$TRANS_DIR) TRANSLATIONS += $${TRANS_DIR}/en-US-$${PROJECT_DIR}.ts TRANSLATIONS += $${TRANS_DIR}/zh-TW-$${PROJECT_DIR}.ts
when run qmake it prints correct string:
Project MESSAGE: trans dir is: Project MESSAGE: D:/lyj/trunk-work/Common/resource/res/lang/universal-plugin
BUT, when I run tools->external->linguist->lupdate from QtCreator, it says:
Updating '../Common/resource/res/lang/as1234/en-US-BasicLibrary.ts'... Found 226 source text(s) (226 new and 0 already existing) Updating '../Common/resource/res/lang/as1234/zh-TW-BasicLibrary.ts'... Found 226 source text(s) (226 new and 0 already existing)
if I comment
# TRANS_DIR = $$PWD/Common/resource/res/lang/as$${MACHINE_TYPE2}
it also generated the correct ts file for "../lang/universal-plugin/xxx.ts"
Seems
else { }
always WORK from lupdate.exe !!!
why 'universal-plugin' becomes 'as1234'?
It drives me crazy... -
I have confirmed this is a bug, but will not be fixed.
anyone can help me how to pass different path to lupdate?
thank you all.