1
mirror of https://github.com/qbittorrent/qBittorrent synced 2024-10-19 21:36:47 +02:00

Revert "Set default locale". Closes #6436 and #6459.

This reverts commit 75ef6356d3.
This commit is contained in:
sledgehammer999 2017-03-07 15:35:42 +02:00
parent 610922e3dc
commit b69b6d1f55
No known key found for this signature in database
GPG Key ID: 6E4A2D025B7CC9A2

View File

@ -510,7 +510,6 @@ void Application::initializeTranslation()
Preferences* const pref = Preferences::instance();
// Load translation
QString localeStr = pref->getLocale();
QLocale::setDefault(QLocale(localeStr));
if (m_qtTranslator.load(QString::fromUtf8("qtbase_") + localeStr, QLibraryInfo::location(QLibraryInfo::TranslationsPath)) ||
m_qtTranslator.load(QString::fromUtf8("qt_") + localeStr, QLibraryInfo::location(QLibraryInfo::TranslationsPath)))