View Full Version : help me change language in qmessagebox from default to vietnamese?
banlinhtienphong
23rd April 2011, 06:01
help me change language in qmessagebox from default to vietnamese?Thank in advance!
Lykurg
23rd April 2011, 08:34
Hi, see the documentation at QTranslator and QCoreApplication::installTranslator().
banlinhtienphong
23rd April 2011, 15:10
Hi i have seen but not found,please tell me more...
Lykurg
23rd April 2011, 16:42
From "Writing Source Code for Translation":
QTranslator qtTranslator;
qtTranslator.load("qt_" + QLocale::system().name(),
QLibraryInfo::location(QLibraryInfo::TranslationsP ath));
app.installTranslator(&qtTranslator);And of course you have to first translate the Qt source (or only your needed strings) and create the qm file.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.