[gnome-desktop/wip/hadess/fix-ci] mo' locale



commit 957f8c17961930c97c8093bb2a5b79146b443340
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Jan 29 14:57:43 2019 +0100

    mo' locale

 tests/meson.build         | 1 +
 tests/wallclock-reftest.c | 5 +++++
 2 files changed, 6 insertions(+)
---
diff --git a/tests/meson.build b/tests/meson.build
index 3b7f0159..38373791 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -1,5 +1,6 @@
 test_args = [
   '-DG_LOG_DOMAIN="GnomeDesktop"',
+  '-DGNOMELOCALEDIR="@0@"'.format(localedir),
   '-DGDK_DISABLE_DEPRECATED_WARNINGS',
   '-DGTK_DISABLE_DEPRECATED_WARNINGS',
   '-DINSTALLED_TEST_DIR="@0@"'.format(test_execdir)
diff --git a/tests/wallclock-reftest.c b/tests/wallclock-reftest.c
index a01dbdcd..1d051f2b 100644
--- a/tests/wallclock-reftest.c
+++ b/tests/wallclock-reftest.c
@@ -20,6 +20,7 @@
 
 #include "config.h"
 
+#include <libintl.h>
 #include <string.h>
 #include <glib/gstdio.h>
 #include <locale.h>
@@ -581,6 +582,10 @@ main (int argc, char **argv)
   g_setenv ("GDK_RENDERING", "image", FALSE);
 
   setlocale (LC_ALL, "");
+  bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
+  bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+  textdomain (GETTEXT_PACKAGE);
+
   g_test_init (&argc, &argv, NULL);
   gtk_init (&argc, &argv);
 


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