mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 06:28:03 -06:00
Fix commit about Esperanto. Closes #4999 again.
This commit is contained in:
@@ -316,7 +316,7 @@ void options_imp::initializeLanguageCombo()
|
|||||||
QString localeStr = langFile.mid(12); // remove "qbittorrent_"
|
QString localeStr = langFile.mid(12); // remove "qbittorrent_"
|
||||||
localeStr.chop(3); // Remove ".qm"
|
localeStr.chop(3); // Remove ".qm"
|
||||||
QString languageName;
|
QString languageName;
|
||||||
if (localeStr == "eo") {
|
if (localeStr.startsWith("eo", Qt::CaseInsensitive)) {
|
||||||
// QLocale doesn't work with that locale. Esperanto isn't a "real" language.
|
// QLocale doesn't work with that locale. Esperanto isn't a "real" language.
|
||||||
languageName = QString::fromUtf8(C_LOCALE_ESPERANTO);
|
languageName = QString::fromUtf8(C_LOCALE_ESPERANTO);
|
||||||
}
|
}
|
||||||
@@ -1228,7 +1228,7 @@ QString options_imp::getLocale() const
|
|||||||
void options_imp::setLocale(const QString &localeStr)
|
void options_imp::setLocale(const QString &localeStr)
|
||||||
{
|
{
|
||||||
QString name;
|
QString name;
|
||||||
if (localeStr == "eo") {
|
if (localeStr.startsWith("eo", Qt::CaseInsensitive)) {
|
||||||
name = "eo";
|
name = "eo";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user