Description
https://doc.qt.io/qt-6/localization.html#deploy-translations mentions the following:
In addition to the application's QM files, you need to deploy the QM files for the Qt modules that you use in the application, unless they are installed on the system.
The QM files are split up by module and there is a so-called meta catalog file which includes the QM files of all modules. However, you only need to deploy the QM files for the modules that you use in the application.
You can use the lconvert tool in the deploy step to concatenate the required QM files into one file that matches the meta catalog file. For example, to create a German translation file for an application that uses the Qt Core, Qt GUI, and Qt Quick modules, run:
lconvert -o installation_folder/qt_de.qm qtbase_de.qm qtdeclarative_de.qm
I'm in the process of migrating my project from linuxdeployqt
to linuxdeploy
with the linuxdeploy-plugin-qt
plugin and have just spotted that the latter is including (in my particular case) qtbase_
xx.qm
and qtmultimedia_
xx.qm
for each locale whereas the former does produce the combined qt_
xx.qm
that the above suggests. I would point you to the shared.cpp
file in that project but since it is GPL licenced whereas this one is MIT I don't want to lead anyone to precisely copy what is there as it can't be used here. I'm guessing that (inline bool) deployTranslations(appdir::AppDir&, const fs::path&, const std::vector<QtModule>&)
is the place to fix this...