[evolution-data-server/gnome-3-24] Correct localization of external tool
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/gnome-3-24] Correct localization of external tool
- Date: Thu, 13 Jul 2017 16:38:00 +0000 (UTC)
commit 2729fce7957d291fd909c1ef5467b9b719bd19af
Author: Milan Crha <mcrha redhat com>
Date: Thu Jul 13 18:37:42 2017 +0200
Correct localization of external tool
Without the setlocale() call the translated strings were not localized.
src/tools/addressbook-export/addressbook-export.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/tools/addressbook-export/addressbook-export.c
b/src/tools/addressbook-export/addressbook-export.c
index 11c2c6c..a9ae188 100644
--- a/src/tools/addressbook-export/addressbook-export.c
+++ b/src/tools/addressbook-export/addressbook-export.c
@@ -19,6 +19,7 @@
#include "evolution-data-server-config.h"
+#include <locale.h>
#include <stdlib.h>
#include <string.h>
#include <glib/gi18n.h>
@@ -946,7 +947,7 @@ main (gint argc,
e_util_win32_initialize ();
#endif
- /*i18n-lize */
+ setlocale (LC_ALL, "");
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]