X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=share%2Flang.h;h=54d1b1ee7fa130d6784eb6d501a86b10318d2e03;hb=4483dfdacd29073b37a6429ca8e123c80deac75a;hp=9d625ef14a63afda139caef87f41fe3a9847f9d7;hpb=fe351c68ff4b83d003194cebd0812a1b152d2bab;p=neverball diff --git a/share/lang.h b/share/lang.h index 9d625ef..54d1b1e 100644 --- a/share/lang.h +++ b/share/lang.h @@ -15,21 +15,30 @@ #ifndef LANG_H #define LANG_H -#ifndef DISABLE_NLS +#if ENABLE_NLS #include + #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 *); /*---------------------------------------------------------------------------*/