diff --git a/configure.ac b/configure.ac index ce6224c..0b6a0ae 100644 --- a/configure.ac +++ b/configure.ac @@ -29,6 +29,7 @@ AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [Gettext Package]) AC_SUBST(GETTEXT_PACKAGE) dnl Not yet useful dnl IT_PROG_INTLTOOL([0.40.0]) +AM_GLIB_GNU_GETTEXT AC_PROG_INSTALL diff --git a/main/src/j4status.c b/main/src/j4status.c index 4c8059c..44d082e 100644 --- a/main/src/j4status.c +++ b/main/src/j4status.c @@ -30,8 +30,14 @@ #ifdef HAVE_UNISTD_H #include #endif /* HAVE_UNISTD_H */ +#ifdef HAVE_LOCALE_H +#include +#endif /* HAVE_LOCALE_H */ #include +#ifdef ENABLE_NLS +#include +#endif /* ENABLE_NLS */ #include #include #ifdef G_OS_UNIX @@ -293,8 +299,8 @@ main(int argc, char *argv[]) g_setenv("G_MESSAGES_DEBUG", "all", FALSE); #endif /* ! DEBUG */ -#if ENABLE_NLS setlocale(LC_ALL, ""); +#ifdef ENABLE_NLS bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR); bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8"); #endif /* ENABLE_NLS */