Hey everybody,

I'm using translations in my program the following way:
Qt Code:
  1. QString locale = QLocale::system().name();
  2. QTranslator translator;
  3. translator.load("Program_" + locale);
  4. app.installTranslator(&translator);
To copy to clipboard, switch view to plain text mode 

This code appears in main.cpp after creating the QApplication and before executing it. When opening the program at a later point everything works fine, but my program can "start with windows", if the user likes that. In order to make this happen I added a key in registry-key in "HKCU/Software/Microsoft/Windows/CurrentVersion/Run". The program starts as expected, but the translation is missing. I read, that installing the translator in main.cpp is too early, but it works fine starting the program manually some seconds after windows started.

Maybe it actually is too early to install the translation in autostart, but I can't figure out why, even installing the language directly is not showing any effect:
Qt Code:
  1. translator.load("Program_de");
  2. app.installTranslator(&translator);
To copy to clipboard, switch view to plain text mode 

It this a bug in Qt or is it really to early in autostart? Why? If it's too early , how can I install the translation at a later point?

Thanks alot for your help,

MisterIKS