This commit is contained in:
jzxc95 2021-12-07 09:41:59 +08:00
parent e8211f4a68
commit f9c2b12b1d
1 changed files with 1 additions and 2 deletions

View File

@ -112,8 +112,7 @@ int main(int argc, char *argv[])
} }
QTranslator qtBaseTranslator; QTranslator qtBaseTranslator;
qtBaseTranslator.load(QT_TRANSLATE_FILE); if (qtBaseTranslator.load(QLocale(), "qt", "_", "/usr/share/qt5/translations//"))
if (qtBaseTranslator.load(QT_TRANSLATE_FILE))
{ {
a.installTranslator(&qtBaseTranslator); a.installTranslator(&qtBaseTranslator);
qDebug()<<"QtBase Translations load success"; qDebug()<<"QtBase Translations load success";