Sub projects translation
I have a project structure that consists in several libraries and plugins used by a Qt desktop application. Some of these plugins launch certain dialogs that i need to internationalize and not only de main app. I used an approach of generate a translation file for each plugin, but when i load it from the main app doesn't translate anything. What is going wrong? anybody have a solution?
It should work this way. Just create a "QTranslator":http://doc.qt.nokia.com/4.7/qtranslator.html for each file and make it visible to the app with "QCoreApplication::installTranslator() ":http://doc.qt.nokia.com/4.7/qcoreapplication.html#installTranslator
The translator objects must remain valid for the lifetime of the QApplication object.