aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/GpgFrontendUIInit.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-01-15 17:19:34 +0000
committersaturneric <[email protected]>2024-01-15 17:19:34 +0000
commit34b51c5e0915cbb11c80029aaa05d96c7115fac3 (patch)
treeabb530d5d93ab09ff95844b000958b79c07cd3c5 /src/ui/GpgFrontendUIInit.cpp
parentfix: reload ui should not destroy core and module system (diff)
downloadGpgFrontend-34b51c5e0915cbb11c80029aaa05d96c7115fac3.tar.gz
GpgFrontend-34b51c5e0915cbb11c80029aaa05d96c7115fac3.zip
fix: slove the languange settings issue
Diffstat (limited to 'src/ui/GpgFrontendUIInit.cpp')
-rw-r--r--src/ui/GpgFrontendUIInit.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/ui/GpgFrontendUIInit.cpp b/src/ui/GpgFrontendUIInit.cpp
index 83de2a0e..f8901e1d 100644
--- a/src/ui/GpgFrontendUIInit.cpp
+++ b/src/ui/GpgFrontendUIInit.cpp
@@ -32,7 +32,6 @@
#include <qcoreapplication.h>
#include <QtNetwork>
-#include <string>
#include "core/GpgConstants.h"
#include "core/function/CoreSignalStation.h"
@@ -225,15 +224,13 @@ void InitLocale() {
auto settings =
GpgFrontend::GlobalSettingStation::GetInstance().GetSettings();
- GF_UI_LOG_DEBUG("current system locale: {}", setlocale(LC_ALL, nullptr));
+ GF_UI_LOG_INFO("current system locale: {}", setlocale(LC_ALL, nullptr));
// read from settings file
- auto lang = settings.value("general/lang", QString{}).toString();
-
- GF_UI_LOG_DEBUG("lang from settings: {}", lang);
- GF_UI_LOG_DEBUG("project name: {}", PROJECT_NAME);
- GF_UI_LOG_DEBUG(
- "locales path: {}",
+ auto lang = settings.value("basic/lang").toString();
+ GF_UI_LOG_INFO("current language settings: {}", lang);
+ GF_UI_LOG_INFO(
+ "current locales path: {}",
GpgFrontend::GlobalSettingStation::GetInstance().GetLocaleDir());
#ifndef WINDOWS