From 306d6d3ca9c9ad774d19135681a7f9805f77035f Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Sun, 22 Feb 2015 14:06:29 -0500 Subject: Imported Upstream version 3.0.3 --- SQLiteStudio3/coreSQLiteStudio/translations.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'SQLiteStudio3/coreSQLiteStudio/translations.cpp') diff --git a/SQLiteStudio3/coreSQLiteStudio/translations.cpp b/SQLiteStudio3/coreSQLiteStudio/translations.cpp index 56dc5f6..362d4fa 100644 --- a/SQLiteStudio3/coreSQLiteStudio/translations.cpp +++ b/SQLiteStudio3/coreSQLiteStudio/translations.cpp @@ -7,7 +7,7 @@ #include QHash SQLITESTUDIO_TRANSLATIONS; -QStringList SQLITESTUDIO_TRANSLATION_DIRS = QStringList({":/msg", ":/msg/translations", "msg", "translations"}); +QStringList SQLITESTUDIO_TRANSLATION_DIRS = QStringList({"msg", "translations", ":/msg", ":/msg/translations"}); void loadTranslation(const QString& baseName) { @@ -106,3 +106,13 @@ QMap getAvailableLanguages() return langs; } + +void setDefaultLanguage(const QString& lang) +{ + CFG_CORE.General.Language.set(lang); +} + +QString getConfigLanguageDefault() +{ + return CFG_CORE.General.Language.getDefultValue().toString(); +} -- cgit v1.2.3