Project setup language supply
-
Dear Forum,
I need some assistance in setting up language supply of my test project.
I use cmake with msvc compiler and QT6.6. The project was initially setup without translation support. Using Windows by the way.
I found Qts Linguist and figured our I need a ts file with the translations, which will then be "compiled" to a qm file - this qm file needs to be a resource(?) inside the executable, right?
I found a tutorial on how adjust the code in c++, but it doesn't specify what I need to change in cmake (I don't know anything about cmake, just using the Qt Creator IDE) and how to create the ts file. An empty ts file is rejected by Linguist. And how to specify that the qm file will be a resource of the exe rather than an additional file?
And by the way: When I edit the ui files, do I need to put "tr(<text>)" in the text field of the objects? Or is "<text>" enough? Or do I need to set it via code at runtime?
Best regards
Sebi