diff --git a/resources/text/CHANGELOG b/resources/text/CHANGELOG
index a4ce90e63..27992ced5 100644
--- a/resources/text/CHANGELOG
+++ b/resources/text/CHANGELOG
@@ -9,7 +9,7 @@ Fixed:
Added:
- Settings/database can now experimentally be exported/imported.
-- Added Swedish localization (thanks to Åke Engelbrektson).
+- Added Swedish localization (thanks to Åke Engelbrektson).
- Parent item is now selected when adding new category/feed with that parent pre-selected in feed view.
diff --git a/src/gui/formsettings.ui b/src/gui/formsettings.ui
index 0b4746f35..2d6528cf1 100644
--- a/src/gui/formsettings.ui
+++ b/src/gui/formsettings.ui
@@ -93,7 +93,7 @@
-
- 0
+ 6
@@ -400,8 +400,8 @@ Authors of this application are NOT responsible for lost data.
0
0
- 100
- 30
+ 684
+ 451
@@ -478,8 +478,8 @@ Authors of this application are NOT responsible for lost data.
0
0
- 167
- 219
+ 678
+ 425
@@ -1163,7 +1163,7 @@ Authors of this application are NOT responsible for lost data.
-
- 0
+ 1
@@ -1286,6 +1286,49 @@ Authors of this application are NOT responsible for lost data.
+ -
+
+
+ Use custom date/time format (overrides format loaded from active localization)
+
+
+ true
+
+
+ false
+
+
+
-
+
+
+ Format code
+
+
+
+ -
+
+
+ true
+
+
+
+ -
+
+
+ Example
+
+
+
+ -
+
+
+
+
+
+
+
+
+
diff --git a/src/miscellaneous/localization.cpp b/src/miscellaneous/localization.cpp
index 14300e4cf..ad685ba76 100755
--- a/src/miscellaneous/localization.cpp
+++ b/src/miscellaneous/localization.cpp
@@ -55,9 +55,7 @@ void Localization::loadActiveLanguage() {
desired_localization = DEFAULT_LOCALE;
}
- if (qt_translator->load(QString("qt-%1.qm").arg(desired_localization),
- APP_LANG_PATH,
- "-")) {
+ if (qt_translator->load(QString("qt-%1.qm").arg(desired_localization), APP_LANG_PATH, "-")) {
Application::installTranslator(qt_translator);
qDebug("Qt localization '%s' loaded successfully.", qPrintable(desired_localization));
}
@@ -66,7 +64,8 @@ void Localization::loadActiveLanguage() {
}
m_loadedLanguage = desired_localization;
- QLocale::setDefault(QLocale(desired_localization));
+ m_loadedLocale = QLocale(desired_localization);
+ QLocale::setDefault(m_loadedLocale);
}
QList Localization::installedLanguages() {
diff --git a/src/miscellaneous/localization.h b/src/miscellaneous/localization.h
index b6100b441..06f2a9e2f 100755
--- a/src/miscellaneous/localization.h
+++ b/src/miscellaneous/localization.h
@@ -21,6 +21,7 @@
#include
#include
+#include
struct Language {
@@ -58,9 +59,14 @@ class Localization : public QObject {
return m_loadedLanguage;
}
+ inline QLocale loadedLocale() const {
+ return m_loadedLocale;
+ }
+
private:
// Code of loaded language.
QString m_loadedLanguage;
+ QLocale m_loadedLocale;
};
#endif // LOCALIZATION_H