Once we have learn how to make the
translation of the application interface at Qt/C++
, it is time to research possibilities of dynamic translation application interface which is written in
In developing the
to have a couple of moments that need to be taken into account, as opposed to the standard application on
Requires additional configuration .pro file;
Process of the loading of translation for your language is carried in C ++ layer;
Reinitialize the translation interface implemented in
After loading the translation, you need to send a signal from the C ++ layer in QML layer to re-translate the application interface.
Create a project, which will include the following files:
- profile of project;
- configuration file of deployment, created by default;
- source file of file with main function;
- header file of class for translation loading;
- sourcefile of class for translation loading;
- main file of QML layer.