# gettext
+if test "x$enable_nls" != "xno"; then
IT_PROG_INTLTOOL([0.35.0])
GETTEXT_PACKAGE=pulseaudio
AC_SUBST([GETTEXT_PACKAGE])
pulselocaledir='${prefix}/${DATADIRNAME}/locale'
AX_DEFINE_DIR(PULSE_LOCALEDIR, pulselocaledir, [Gettext locale dir])
+fi
#### Determine host OS ####
#include "i18n.h"
void pa_init_i18n(void) {
-
+#ifdef ENABLE_NLS
PA_ONCE_BEGIN {
bindtextdomain(GETTEXT_PACKAGE, PULSE_LOCALEDIR);
bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
} PA_ONCE_END;
+#endif
}
PA_C_DECL_BEGIN
+#ifdef ENABLE_NLS
+
#if !defined(GETTEXT_PACKAGE)
#error "Something is very wrong here, config.h needs to be included first"
#endif
-#ifdef ENABLE_NLS
-
#include <libintl.h>
#define _(String) dgettext(GETTEXT_PACKAGE, String)