From d6f6be678cf65b2f1600d655abcdab357c232944 Mon Sep 17 00:00:00 2001 From: SET Date: Thu, 26 Nov 2020 22:30:04 +0100 Subject: [PATCH] Show localized GpgME error strings. Using locale::global(locale("") in main(). No success with ::Context::setLocale(). --- main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.cpp b/main.cpp index 852500d..6388c1d 100644 --- a/main.cpp +++ b/main.cpp @@ -8,6 +8,7 @@ */ #include +#include #include "K7Main.h" #include #include @@ -25,6 +26,9 @@ unique_ptr createApplication(const WEnvironment& env) int main(int argc, char** argv) { + // To get localized GpgME error strings. + locale::global(locale("")); + GpgME::initializeLibrary(); return WRun(argc, argv, &createApplication); }