[gtk-mac-integration] Setup gettext in test-integration.



commit ca9174d61d2903a7011ba7db8a1f9c64370ea040
Author: John Ralls <jralls ceridwen us>
Date:   Sun May 6 14:05:42 2018 -0400

    Setup gettext in test-integration.

 src/test-integration.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/test-integration.c b/src/test-integration.c
index 839c978..7105b4f 100644
--- a/src/test-integration.c
+++ b/src/test-integration.c
@@ -58,6 +58,7 @@
 
 #include <gtk/gtk.h>
 #include <stdio.h>
+#include <libintl.h>
 
 /* Uncomment ONE of these to test menu-mangling: */
 //#define GTKMACINTEGRATION
@@ -818,6 +819,9 @@ main (int argc, char **argv)
 #ifdef GTKOSXAPPLICATION
   GtkosxApplication *theApp;
 #endif //GTKOSXAPPLICATION
+  setlocale (LC_ALL, "");
+  bindtextdomain (PACKAGE_NAME, LOCALEDIR);
+  textdomain (PACKAGE_NAME);
 #if ! GLIB_CHECK_VERSION (2, 34, 0)
   g_thread_init (NULL);
 #endif


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]