I can install translator as myApp.installTranslator(&translator)
Is it possible to have multiple translation files and load them from different parts of my application? How can I do it?
I can install translator as myApp.installTranslator(&translator)
Is it possible to have multiple translation files and load them from different parts of my application? How can I do it?
Yes, you can. As doc said:
You need to load some translation file,
qApp
macro to get instance ofQApplication
outsidemain()
function and do something like:Also you can remove translator with:
Internationalization is a big part, so I can suggest also next links:
Internationalization with Qt
Writing Source Code for Translation
And books:
Foundations of Qt Development (Expert's Voice in Open Source) Chapter 10
C++ GUI Programming with Qt 4 (2nd Edition) (Prentice Hall Open Source Software Development Series) Chapter 18
Qt4.8. Professionalnoe programmirovanie na C++ (Russian) Chapter 31 (for russian-speakers)