fix language display error
This commit is contained in:
parent
ebe8d616f2
commit
39a83200d2
1 changed files with 3 additions and 2 deletions
|
@ -227,9 +227,10 @@ void OptionsDialog::setupLanguageBox()
|
|||
}
|
||||
|
||||
QString aCurrentAreaLanguage = Translator->getCurrentAreaLanguage();
|
||||
if (QFile::exists(":/global/global." % currentAreaLanguage % ".loc"))
|
||||
if (QFile::exists(":/global/global." % aCurrentAreaLanguage % ".loc"))
|
||||
{
|
||||
QFile locFile(":/global/global." % currentAreaLanguage % ".loc");
|
||||
qDebug() << "locFile found";
|
||||
QFile locFile(":/global/global." % aCurrentAreaLanguage % ".loc");
|
||||
if (locFile.open(QFile::ReadOnly))
|
||||
{
|
||||
aCurrentAreaLanguage = QString::fromUtf8(locFile.readLine()).trimmed();
|
||||
|
|
Loading…
Reference in a new issue