#ifndef LANG_H
#define LANG_H
-#ifndef DISABLE_NLS
+#if ENABLE_NLS
#include <libintl.h>
+
#define _(String) gettext(String)
+#define L_(String) get_local_text(String)
+
#else
+
#define _(String) (String)
-#endif
+#define L_(String) (String)
+
+#define ngettext(msgid, msgid_plural, n) ((n) == 1 ? (msgid) : (msgid_plural))
+
+#endif /* ENABLE_NLS */
/* No-op, useful for marking up strings for extraction-only. */
#define N_(String) (String)
/*---------------------------------------------------------------------------*/
-void lang_init(const char *domain, const char *locale_dir);
+void lang_init(const char *domain);
const char *sgettext(const char *);
+const char *get_local_text(const char *);
/*---------------------------------------------------------------------------*/