summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/test-menu-spec.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/util/test-menu-spec.c b/util/test-menu-spec.c
index 2b742fc..9de1ab6 100644
--- a/util/test-menu-spec.c
+++ b/util/test-menu-spec.c
@@ -19,7 +19,9 @@
#include <config.h>
#include <glib/gi18n.h>
+#ifdef ENABLE_NLS
#include <locale.h>
+#endif
#include "matemenu-tree.h"
@@ -202,7 +204,13 @@ main (int argc, char **argv)
MateMenuTreeFlags flags;
GError *error = NULL;
+#ifdef ENABLE_NLS
setlocale(LC_ALL, "");
+ bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR);
+ bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+ textdomain (GETTEXT_PACKAGE);
+#endif /* ENABLE_NLS */
+
options_context = g_option_context_new(_("- test MATE's implementation of the Desktop Menu Specification"));
g_option_context_add_main_entries(options_context, options, GETTEXT_PACKAGE);
g_option_context_parse(options_context, &argc, &argv, NULL);