Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Sub projects translation
idertator last edited by
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?
goetz last edited by
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.