mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 06:01:33 -06:00
Remove country flags from program preferences
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
- BUGFIX: Do not report PeX as being disabled when DHT is
|
- BUGFIX: Do not report PeX as being disabled when DHT is
|
||||||
- I18N: Updated Greek, Unkrainian and Bulgarian translations
|
- I18N: Updated Greek, Unkrainian and Bulgarian translations
|
||||||
- I18N: Added Armenian translation
|
- I18N: Added Armenian translation
|
||||||
|
- I18N: Remove country flags from program preferences (language selection)
|
||||||
|
|
||||||
* Mon Jan 10 2011 - Christophe Dumez <chris@qbittorrent.org> - v2.6.1
|
* Mon Jan 10 2011 - Christophe Dumez <chris@qbittorrent.org> - v2.6.1
|
||||||
- BUGFIX: Really disable torrent addition dialog by default
|
- BUGFIX: Really disable torrent addition dialog by default
|
||||||
|
|||||||
@@ -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