From 34b51c5e0915cbb11c80029aaa05d96c7115fac3 Mon Sep 17 00:00:00 2001 From: saturneric Date: Tue, 16 Jan 2024 01:19:34 +0800 Subject: fix: slove the languange settings issue --- src/ui/GpgFrontendUIInit.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'src/ui/GpgFrontendUIInit.cpp') 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 #include -#include #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 -- cgit v1.2.3