From fa8bae8931001759110ac0c6481ef4e12da6123c Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Sun, 27 Mar 2016 21:06:28 +0300 Subject: [PATCH] Fix commit about Esperanto. Closes #4999 again. --- src/gui/options_imp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/options_imp.cpp b/src/gui/options_imp.cpp index 839f7fe87..f15e1db81 100644 --- a/src/gui/options_imp.cpp +++ b/src/gui/options_imp.cpp @@ -322,7 +322,7 @@ void options_imp::initializeLanguageCombo() QString localeStr = langFile.mid(12); // remove "qbittorrent_" localeStr.chop(3); // Remove ".qm" QString languageName; - if (localeStr == "eo") { + if (localeStr.startsWith("eo", Qt::CaseInsensitive)) { // QLocale doesn't work with that locale. Esperanto isn't a "real" language. languageName = QString::fromUtf8(C_LOCALE_ESPERANTO); } @@ -1225,7 +1225,7 @@ QString options_imp::getLocale() const void options_imp::setLocale(const QString &localeStr) { QString name; - if (localeStr == "eo") { + if (localeStr.startsWith("eo", Qt::CaseInsensitive)) { name = "eo"; } else {