diff options
author | rofl0r <retnyg@gmx.net> | 2012-09-18 19:53:07 +0200 |
---|---|---|
committer | rofl0r <retnyg@gmx.net> | 2012-09-18 19:53:07 +0200 |
commit | ec0ff2c64860b00d3dacd288855da15ffa8a2bd8 (patch) | |
tree | 6c8360fa1820a0a043952c85b8627f017a85bac7 | |
parent | b7fd8c2d181d82fc208829f3b08a28f5892d3df6 (diff) | |
download | gettext-tiny-ec0ff2c64860b00d3dacd288855da15ffa8a2bd8.tar.gz |
add more funcs to libintl.h
-rw-r--r-- | include/libintl.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/libintl.h b/include/libintl.h index 2c449b4..5b9f322 100644 --- a/include/libintl.h +++ b/include/libintl.h @@ -2,10 +2,18 @@ #define LIBINTL_H #define gettext(X) (X) +#define dgettext(dom, X) (X) #define dcgettext(dom, X, cat) (X) +#define ngettext(X, Y, N) ((N == 1) ? X : Y) +#define dngettext(dom, X, Y, N) ((N == 1) ? X : Y) +#define dcngettext(dom, X, Y, N, cat) ((N == 1) ? X : Y) + #define gettext_noop(X) (X) + +// FIXME these should probably return something #define bindtextdomain(X, Y) #define textdomain(X) +#define bind_textdomain_codeset(dom, codeset) #include <stdio.h> #define gettext_printf(args...) printf(args) |