Correct logic of BSP back/front tests
[neverball] / share / lang.h
index 58e06ab..6ee5f64 100644 (file)
 #ifndef LANG_H
 #define LANG_H
 
-#ifndef POSIX
+#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)
@@ -30,6 +38,7 @@
 void lang_init(const char *domain, const char *locale_dir);
 
 const char *sgettext(const char *);
+const char *get_local_text(const char *);
 
 /*---------------------------------------------------------------------------*/