realdarkman71
27th May 2012, 19:09
Hi all,
I put common functions in a dynamical linked library for my main app. The strings and forms of main app are translated and will be loaded with QTranslator::load(...) and installed with QApplication::installTranslator(...), it works. But the translated strings and forms in the lib are not used, always english only! App and lib translation loading and installing are the same:
QTranslator translator;
translator.load("german.qm");
QApplication::installTranslator(&translator);
Why are the strings and forms from lib in english only? Any hints?
Thanks!
Chris
I put common functions in a dynamical linked library for my main app. The strings and forms of main app are translated and will be loaded with QTranslator::load(...) and installed with QApplication::installTranslator(...), it works. But the translated strings and forms in the lib are not used, always english only! App and lib translation loading and installing are the same:
QTranslator translator;
translator.load("german.qm");
QApplication::installTranslator(&translator);
Why are the strings and forms from lib in english only? Any hints?
Thanks!
Chris