The way Quassel solved this, was by converting .po files to Qt's .qm format translations during the build stage (http://git.quassel-irc.org/?p=quassel.git;a=blob;f=po/CMakeLists.txt).
This way no custom QTranslator was necessary. Downside is that you cannot ship translations in separate gettext language packages.
The way Quassel solved this, was by converting .po files to Qt's .qm format translations during the build stage (http:// git.quassel- irc.org/ ?p=quassel. git;a=blob; f=po/CMakeLists .txt).
This way no custom QTranslator was necessary. Downside is that you cannot ship translations in separate gettext language packages.