.ts files not getting updated.
-
Hello everyone,
I am trying to write a simple sample program to test the QTranslator and the corresponding tools.
I have uploaded my progress to github.The program compiles and cmake seems call the proper translation tools and finds my .ts files: The console output mentions something about generating the .qm files.
Generating Translation_de_DE.qm [build] Updating '***/Translation/.build/src/Translation_de_DE.qm'... [build] Generated 0 translation(s) (0 finished and 0 unfinished) [build] Generating Translation_en_150.qm [build] Updating '***/Translation/.build/src/Translation_en_150.qm'... [build] Generated 0 translation(s) (0 finished and 0 unfinished)
The code contains two occurrences of of the
tr()
function.
If I understand the documentation correctly, the translation tool should add two corresponding entries to both .ts files automatically so that I can edit and translate them manually.I guess that I need to add something to my CMakeLists.txt that I am not aware of.
Thanks for your time and support!
Unzu -
Hello everyone,
I am trying to write a simple sample program to test the QTranslator and the corresponding tools.
I have uploaded my progress to github.The program compiles and cmake seems call the proper translation tools and finds my .ts files: The console output mentions something about generating the .qm files.
Generating Translation_de_DE.qm [build] Updating '***/Translation/.build/src/Translation_de_DE.qm'... [build] Generated 0 translation(s) (0 finished and 0 unfinished) [build] Generating Translation_en_150.qm [build] Updating '***/Translation/.build/src/Translation_en_150.qm'... [build] Generated 0 translation(s) (0 finished and 0 unfinished)
The code contains two occurrences of of the
tr()
function.
If I understand the documentation correctly, the translation tool should add two corresponding entries to both .ts files automatically so that I can edit and translate them manually.I guess that I need to add something to my CMakeLists.txt that I am not aware of.
Thanks for your time and support!
UnzuSo did yo actually built e.g. the target 'Translations_lupdate_' as written in the documentation?
-
So did yo actually built e.g. the target 'Translations_lupdate_' as written in the documentation?
@Christian-Ehrlicher said in .ts files not getting updated.:
built e.g. the target 'Translations_lupdate_'
Oh noes. I never did that.
I just checked the build directory, there are indeed those targets. I opened the generated solution with visual studio and manually built the targets and indeed - the missing translations now appear in the .ts files.When building in VS Code, 'CMake Tools' builds the ALL_BUILD target. I wonder why it does not build the translation targets..?
-
@Christian-Ehrlicher said in .ts files not getting updated.:
built e.g. the target 'Translations_lupdate_'
Oh noes. I never did that.
I just checked the build directory, there are indeed those targets. I opened the generated solution with visual studio and manually built the targets and indeed - the missing translations now appear in the .ts files.When building in VS Code, 'CMake Tools' builds the ALL_BUILD target. I wonder why it does not build the translation targets..?
Because those target are not meant to be run every time so they're excluded from build all.
-
Because those target are not meant to be run every time so they're excluded from build all.
-
-
-