This is an automated email from the git hooks/post-receive script.

nomad pushed a commit to branch master
in repository apps/xfdashboard.

commit 926c66befe12c7eae8c067d398b159a808f2e302
Author: Stephan Haller <no...@froevel.de>
Date:   Fri Mar 27 16:24:05 2015 +0100

    Oops ... forgot to initialize gettext for localization in application
---
 xfdashboard/Makefile.am |    2 ++
 xfdashboard/main.c      |    6 ++++++
 2 files changed, 8 insertions(+)

diff --git a/xfdashboard/Makefile.am b/xfdashboard/Makefile.am
index 4662fbf..56de0c5 100644
--- a/xfdashboard/Makefile.am
+++ b/xfdashboard/Makefile.am
@@ -145,6 +145,7 @@ xfdashboard_CFLAGS = \
        $(GIO_UNIX_CFLAGS) \
        $(GARCON_CFLAGS) \
        $(LIBXFCONF_CFLAGS) \
+       $(LIBXFCE4UTIL_CFLAGS) \
        $(DBUS_GLIB_CFLAGS) \
        $(PLATFORM_CFLAGS)
 
@@ -162,6 +163,7 @@ xfdashboard_LDADD = \
        $(GIO_UNIX_LIBS) \
        $(GARCON_LIBS) \
        $(LIBXFCONF_LIBS) \
+       $(LIBXFCE4UTIL_LIBS) \
        $(DBUS_GLIB_LIBS) \
        -lm
 
diff --git a/xfdashboard/main.c b/xfdashboard/main.c
index 804eef1..e049f12 100644
--- a/xfdashboard/main.c
+++ b/xfdashboard/main.c
@@ -29,6 +29,7 @@
 #include <clutter/clutter.h>
 #include <clutter/x11/clutter-x11.h>
 #include <gtk/gtk.h>
+#include <libxfce4util/libxfce4util.h>
 
 #include "application.h"
 #include "types.h"
@@ -187,6 +188,11 @@ int main(int argc, char **argv)
        GError                                          *error=NULL;
        gint                                            status;
 
+#ifdef ENABLE_NLS
+       /* Set up localization */
+       xfce_textdomain(GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR, "UTF-8");
+#endif
+
 #if !GLIB_CHECK_VERSION(2, 36, 0)
        /* Initialize GObject type system */
        g_type_init();

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to