1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-10 14:57:52 +00:00

Remove country flags from program preferences

This commit is contained in:
Christophe Dumez 2011-01-11 21:10:11 +00:00
parent 9e63a0babb
commit 833750513b

View File

@ -229,9 +229,9 @@ void options_imp::initializeLanguageCombo()
QString localeStr = lang_file.mid(12); // remove "qbittorrent_"
localeStr.chop(3); // Remove ".qm"
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());
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();
}
}