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;
qtBaseTranslator.load(QT_TRANSLATE_FILE);
if (qtBaseTranslator.load(QT_TRANSLATE_FILE))
if (qtBaseTranslator.load(QLocale(), "qt", "_", "/usr/share/qt5/translations//"))
{
a.installTranslator(&qtBaseTranslator);
qDebug()<<"QtBase Translations load success";