mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 07:27:22 -06:00
Remove country flags from program preferences
This commit is contained in:
@@ -229,9 +229,9 @@ void options_imp::initializeLanguageCombo()
|
|||||||
QString localeStr = lang_file.mid(12); // remove "qbittorrent_"
|
QString localeStr = lang_file.mid(12); // remove "qbittorrent_"
|
||||||
localeStr.chop(3); // Remove ".qm"
|
localeStr.chop(3); // Remove ".qm"
|
||||||
QLocale locale(localeStr);
|
QLocale locale(localeStr);
|
||||||
const QString country = locale.name().split("_").last().toLower();
|
//const QString country = locale.name().split("_").last().toLower();
|
||||||
QString language_name = QLocale::languageToString(locale.language());
|
QString language_name = QLocale::languageToString(locale.language());
|
||||||
comboI18n->addItem(QIcon(":/Icons/flags/"+country+".png"), language_name, locale.name());
|
comboI18n->addItem(/*QIcon(":/Icons/flags/"+country+".png"), */language_name, locale.name());
|
||||||
qDebug() << "Supported locale:" << locale.name();
|
qDebug() << "Supported locale:" << locale.name();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user