english mode move

This commit is contained in:
Syping 2017-10-09 12:32:05 +02:00
parent 1edf71eedc
commit 948d12694c

View file

@ -362,10 +362,10 @@ bool TranslationClass::loadSystemTranslation_p(const QString &langPath, QTransla
{ {
if (appTranslator->load(langPath % QDir::separator() % "gta5sync_" % langList.at(0) % ".qm")) if (appTranslator->load(langPath % QDir::separator() % "gta5sync_" % langList.at(0) % ".qm"))
{ {
isEnglishMode = false;
#ifdef GTA5SYNC_DEBUG #ifdef GTA5SYNC_DEBUG
qDebug() << "loadLanguageFileSuccess" << QString(langPath % QDir::separator() % "gta5sync_" % langList.at(0) % ".qm"); qDebug() << "loadLanguageFileSuccess" << QString(langPath % QDir::separator() % "gta5sync_" % langList.at(0) % ".qm");
#endif #endif
isEnglishMode = false;
currentLanguage = languageName; currentLanguage = languageName;
currentLangIndex = currentLangCounter; currentLangIndex = currentLangCounter;
return true; return true;