Merge pull request #6084 from Chocobo1/set_locale

Set default locale
This commit is contained in:
sledgehammer999
2017-01-20 20:14:20 +02:00
committed by GitHub
2 changed files with 16 additions and 24 deletions

View File

@@ -31,8 +31,9 @@
*/
#include <QCryptographicHash>
#include <QPair>
#include <QDir>
#include <QLocale>
#include <QPair>
#include <QSettings>
#ifndef DISABLE_GUI
@@ -92,7 +93,7 @@ void Preferences::setValue(const QString &key, const QVariant &value)
// General options
QString Preferences::getLocale() const
{
return value("Preferences/General/Locale").toString();
return value("Preferences/General/Locale", QLocale::system().name()).toString();
}
void Preferences::setLocale(const QString &locale)