Pass lang correctly to config dialog
authorAndre Heinecke <aheinecke@intevation.de>
Tue, 16 Oct 2018 12:14:29 +0000 (14:14 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Tue, 16 Oct 2018 12:14:29 +0000 (14:14 +0200)
* src/addin-options.cpp (open_gpgolconfig): Pass lang.

src/addin-options.cpp

index d82b095..137d880 100644 (file)
@@ -185,6 +185,9 @@ open_gpgolconfig (LPVOID arg)
   args.push_back (std::string("--gpgol-version"));
   args.push_back (std::string(VERSION));
 
+  args.push_back (std::string ("--lang"));
+  args.push_back (std::string (gettext_localename ()));
+
   auto ctx = GpgME::Context::createForEngine (GpgME::SpawnEngine);
   if (!ctx)
     {