projects
/
neverball
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Correct logic of BSP back/front tests
[neverball]
/
share
/
lang.h
diff --git
a/share/lang.h
b/share/lang.h
index
58e06ab
..
6ee5f64
100644
(file)
--- a/
share/lang.h
+++ b/
share/lang.h
@@
-15,12
+15,20
@@
#ifndef LANG_H
#define LANG_H
#ifndef LANG_H
#define LANG_H
-#ifndef POSIX
+#if ENABLE_NLS
#include <libintl.h>
#include <libintl.h>
+
#define _(String) gettext(String)
#define _(String) gettext(String)
+#define L_(String) get_local_text(String)
+
#else
#else
+
#define _(String) (String)
#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)
/* 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 *);
void lang_init(const char *domain, const char *locale_dir);
const char *sgettext(const char *);
+const char *get_local_text(const char *);
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/