Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[SOLVED]Deploy with .qm file
Zondar last edited by Zondar
I want to build project and add .qm files into build directory. I managed to get working translation of my app, but I have to move these .qm files to build directory by myself. I tried to use add translations in .pro file under "TRANSLATIONS", but it does not work. Any idea?
Thanks in advance
You could use QMAKE_POST_LINK to copy the files to the right place.
Hope it helps
Zondar last edited by
Will that work on Android as well? I am sorry for that I did not mentioned that I want to deploy on Android as well.
Deployment itself is another beast and will depend on the platforms you target and the installer framework used. For a platform agnostic solution you could embed the translation files in your application using Qt's resource system.
In the case of Android, you can also use their "assets" system to distribute them.