mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-07-04 09:05:30 +08:00
update
This commit is contained in:
@ -19,9 +19,6 @@ void TranslateHelper::init(QQmlEngine* engine){
|
||||
_translator = new QTranslator(this);
|
||||
qApp->installTranslator(_translator);
|
||||
QString translatorPath = QGuiApplication::applicationDirPath()+"/i18n";
|
||||
#ifdef Q_OS_MACX
|
||||
translatorPath.append("/../Resources/");
|
||||
#endif
|
||||
_translator->load(QString::fromStdString("%1/example_%2.qm").arg(translatorPath,_current));
|
||||
_engine->retranslate();
|
||||
}
|
||||
|
Reference in New Issue
Block a user