Deploying translation .qm files
-
Hi,
I have a localized application. I have the .qm files and if I copy them to the program directory on desktop, it works fine.
But if compile my application for Android the translation files are not copied to the APK. I think I need to add something to my .pro file so that QtCreator knows that it should include those files. But I could not find how to do it.
-
Hi,
You need to add them to
QMAKE_BUNDLE_DATAso they will be copied over. However, with translation file, it's also pretty usual to embed them in your application using Qt's resource system. -
My bad, for Android you can use the assets file system. You can use that when you have to embed e.g. multimedia assets.