So, this is my problem:
I have an app which does some langauge translation functionality.
It does translations by calling a web server app.
I’d like to make the UI of my app dynamically translational.
Just to note, that I’m not talking about standard dynamic translation (on the fly translation).
Here is how I would like it to behave.
Start empty, without any translation files (except english default).
When user chooses a language, get the translations via web service, and store them in a translation file.
Dynamically load the translation file to retranslate the UI.
Translation files should be saved locally on the device, so the next time user chooses that language it will load straight from the saved file, without the need to translate everything via web service.
The problem is that I want to generate translation files and include them in my project dynamically (on the fly). So I can’t add all the files in my .pro file (which will be translated via lupdate). I need to include and process them dynamically, only when they are needed.
Is this possible with QT?
Update: translations can also be done locally (not via web service), but the problem still remains how to generate and load translation files, without the need to declare them in .pro fileQ
I have an app which does some langauge translation functionality.
It does translations by calling a web server app.
I’d like to make the UI of my app dynamically translational.
Just to note, that I’m not talking about standard dynamic translation (on the fly translation).
Here is how I would like it to behave.
Start empty, without any translation files (except english default).
When user chooses a language, get the translations via web service, and store them in a translation file.
Dynamically load the translation file to retranslate the UI.
Translation files should be saved locally on the device, so the next time user chooses that language it will load straight from the saved file, without the need to translate everything via web service.
The problem is that I want to generate translation files and include them in my project dynamically (on the fly). So I can’t add all the files in my .pro file (which will be translated via lupdate). I need to include and process them dynamically, only when they are needed.
Is this possible with QT?
Update: translations can also be done locally (not via web service), but the problem still remains how to generate and load translation files, without the need to declare them in .pro fileQ