diff options
author | Saturneric <[email protected]> | 2021-12-06 20:38:05 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-12-06 20:38:05 +0000 |
commit | 4f9ee73ffdda5a495d25ebf4f769a4c43aa78295 (patch) | |
tree | 7ef532525a250c485d95c1df5e4b432e169ec53c /src/main.cpp | |
parent | Improve UI & Functions (diff) | |
download | GpgFrontend-4f9ee73ffdda5a495d25ebf4f769a4c43aa78295.tar.gz GpgFrontend-4f9ee73ffdda5a495d25ebf4f769a4c43aa78295.zip |
Test & Improve UI
Diffstat (limited to '')
-rw-r--r-- | src/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 983d062b..066231fb 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -22,6 +22,8 @@ * */ +#include <boost/locale.hpp> + #include "GpgFrontendBuildInfo.h" #include "ui/MainWindow.h" #include "ui/settings/GlobalSettingStation.h" @@ -138,6 +140,9 @@ void init_locale() { GpgFrontend::UI::GlobalSettingStation::GetInstance().Sync(); auto* locale_name = setlocale(LC_ALL, nullptr); + boost::locale::generator gen; + // Create locale generator + std::locale::global(gen(locale_name)); LOG(INFO) << "current system locale" << locale_name; // read from settings file |