Fix accidental switch/teleporter behavior changes
[neverball] / share / lang.h
index 83983e5..54d1b1e 100644 (file)
 
 #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 *);
 
 /*---------------------------------------------------------------------------*/