preferencesdialog: New combobox to change application language

The behavior remains basically as before: when first launched
the application will try to load a translation for the user's
locale, and if one cannot be found it defaults to English.
The difference is that now this is remembered so that upon
further launches the program will go straight to the matching
locale.

See issue #182.
This commit is contained in:
Samir Aguiar
2015-01-18 01:57:42 +01:00
parent 823e51a917
commit 6d6544043d
4 changed files with 169 additions and 62 deletions

View File

@@ -38,6 +38,8 @@ private:
// This works similar to getSettingsValue but returns the default value instead of the value set by the user
static QVariant getSettingsDefaultValue(const QString& group, const QString& name);
void fillLanguageBox();
// Cache for storing the settings to avoid repeatedly reading the settings file all the time
static QHash<QString, QVariant> m_hCache;
};