QApplication app(argc, argv); app.setApplicationName("xxx"); app.setOrganizationName("xxx"); QString locale = QLocale::system().name(); QTranslator qtTranslator; qtTranslator.load(QString("qt_") + locale); app.installTranslator(&qtTranslator);