Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
2.7.1 (rev.08)
-
None
-
-
fa65d9ce2271db855d1ac1753523a180d101d409
Description
We have a old Qt project that worked fine with Qt Visual Studio Tools 2.6.
After upgrading to 2.7.1, we would like to use the lupdate feature because we added new files and texts to translate. As usual, we right clicked on the .ts file and selected the lupdate action. The ouput tells me that everything is ok:
== MyProjectInstallerMMI: starting build...
* Properties:
QtTranslationForceUpdate = true
SelectedFiles = myprojectinstallermmi_fr.ts;
* Targets: QtTranslation
Translation disabled during build; skipping.
== MyProjectInstallerMMI: build successful
But the .ts file remains unchanged!
So I tried to create a new translation file, but this time, I've got an error:
== MyProjectInstallerMMI: starting build... * Properties: QtTranslationForceUpdate = true SelectedFiles = myprojectinstallermmi_de.ts * Targets: QtTranslation lupdate myprojectinstallermmi_de.ts File 'D:\Develops\Main\Installer\MyProject\MyProjectInstallerUI\MyProjectInstallerMMI\build\v142\..\ThirdParty\SQLite\3.21.0\sqlite3.c' does not exist. The command "(D:/Develops/ThirdParty/Qt/Qt5.12.5/5.12.5/msvc2017_64/bin/lupdate "@D:\Develops\Main\Installer\MyProject\MyProjectInstallerUI\MyProjectInstallerMMI\build\v142\Intermediate\v142\MyProjectInstallerMMI\x64\Debug\myprojectinstallermmi_de.in.txt" -ts myprojectinstallermmi_de.ts)" exited with code 1. MyProjectInstallerMMI.vcxproj: background build FAILED! == MyProjectInstallerMMI: build ERROR
After investigation, the issue comes from the file sqlite.c which is included through a .props file (see attached SQLite_static_3.21.0.props). The problem seems to be the $(SolutionDir) macro.
<SQLitePath>$(SolutionDir)..\ThirdParty\SQLite\3.21.0\</SQLitePath>
You can find attached the related .in.txt.
And my other question is: is there a way to migrate old .ts file to the new .in.txt system? Or do I need to recreate all my .ts files? If yes, how do I reccover my old translations?