aboutsummaryrefslogtreecommitdiffstats
path: root/src/i18n.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/i18n.h')
-rw-r--r--src/i18n.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/i18n.h b/src/i18n.h
index 64484834a..dd0ae85ae 100644
--- a/src/i18n.h
+++ b/src/i18n.h
@@ -21,13 +21,18 @@
#include "config.h"
-/* i18n */
-#if defined(HAVE_LOCALE_H) && !defined(NCMPC_MINI)
-#include <locale.h>
-#endif
#ifdef ENABLE_NLS
+
#include <libintl.h>
-#include <glib/gi18n.h>
+
+#define _(x) gettext(x)
+
+#ifdef gettext_noop
+#define N_(x) gettext_noop(x)
+#else
+#define N_(x) (x)
+#endif
+
#else
#define _(x) x
#define N_(x) x