@RayKn said in Translating between NL and EN:
What do I do at initialization? Do I install the dutch translator even though the program is already set at dutch (also in QT Creator Designer the language is set to dutch).
I really feel like I am missing something.
The Qt translation system at runtime doesn't know anything about specific langauges. It just checks the installed QTranslators one by one whether they provide a translation for the source string / context combo, falling back to the original source string if nothing is found.
If you don't need a nl translation because all the source strings are already in correct language , then you can as well remove the .nl file. Then all you have to do to switch from English to Dutch is to remove the translation file by calling QCoreApplication::removeTranslator() with the QTranslator object as argument.
Sometimes it's useful though to keep a (partial) translation, for instance to be able to fix typos, or to handle plural forms correctly. In this case, you might want to have a partial .ts file for NL (-pluralsonly argument).
That said, if it's true that the nl file is contains a correct translation, then your setup should actually work (even if slightly inorthodox). I suggest at least checking the return value of your installTranslator calls...
Kai