[gnome-todo/gnome-3-26] main: don't rely on ENABLE_NLS anymore



commit 25db155e03af9a77746336ae78a36c241c3446a8
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Wed Sep 20 00:07:42 2017 -0300

    main: don't rely on ENABLE_NLS anymore
    
    This was autotools stuff, and is dropped now.

 src/main.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index f926328..78d0618 100644
--- a/src/main.c
+++ b/src/main.c
@@ -20,6 +20,7 @@
 #include "gtd-application.h"
 
 #include <config.h>
+#include <glib/gi18n.h>
 
 gint
 main (gint  argc,
@@ -28,11 +29,9 @@ main (gint  argc,
   GtdApplication *app;
   int status;
 
-#ifdef ENABLE_NLS
   bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
   bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
   textdomain (GETTEXT_PACKAGE);
-#endif
 
   app = gtd_application_new ();
   g_application_set_default (G_APPLICATION (app));


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