mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-14 21:02:04 +08:00
chore:解决该文件构建deb报错的问题
This commit is contained in:
@@ -163,7 +163,10 @@ void Application::loadTranslator()
|
||||
|
||||
if (QLocale::system().language() == QLocale::Chinese) {
|
||||
QTranslator *webengineTranslator = new QTranslator(this);
|
||||
webengineTranslator->load(QLocale(QLocale::Chinese), "qtwebengine", "_", ":/translations");
|
||||
bool loaded = webengineTranslator->load(QLocale(QLocale::Chinese), "qtwebengine", "_", ":/translations");
|
||||
if (!loaded) {
|
||||
qWarning() << "Failed to load webengine translator";
|
||||
}
|
||||
installTranslator(webengineTranslator);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user