diff options
Diffstat (limited to 'gl/gettext.h')
-rw-r--r-- | gl/gettext.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gl/gettext.h b/gl/gettext.h index 763dd3c1..8cf2dca0 100644 --- a/gl/gettext.h +++ b/gl/gettext.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* Convenience header for conditional use of GNU <libintl.h>. | 1 | /* Convenience header for conditional use of GNU <libintl.h>. |
2 | Copyright (C) 1995-1998, 2000-2002, 2004-2006 Free Software Foundation, Inc. | 2 | Copyright (C) 1995-1998, 2000-2002, 2004-2006, 2009 Free Software Foundation, Inc. |
3 | 3 | ||
4 | This program is free software; you can redistribute it and/or modify | 4 | This program is free software; you can redistribute it and/or modify |
5 | it under the terms of the GNU General Public License as published by | 5 | it under the terms of the GNU General Public License as published by |
@@ -63,21 +63,30 @@ | |||
63 | for invalid uses of the value returned from these functions. | 63 | for invalid uses of the value returned from these functions. |
64 | On pre-ANSI systems without 'const', the config.h file is supposed to | 64 | On pre-ANSI systems without 'const', the config.h file is supposed to |
65 | contain "#define const". */ | 65 | contain "#define const". */ |
66 | # undef gettext | ||
66 | # define gettext(Msgid) ((const char *) (Msgid)) | 67 | # define gettext(Msgid) ((const char *) (Msgid)) |
68 | # undef dgettext | ||
67 | # define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid)) | 69 | # define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid)) |
70 | # undef dcgettext | ||
68 | # define dcgettext(Domainname, Msgid, Category) \ | 71 | # define dcgettext(Domainname, Msgid, Category) \ |
69 | ((void) (Category), dgettext (Domainname, Msgid)) | 72 | ((void) (Category), dgettext (Domainname, Msgid)) |
73 | # undef ngettext | ||
70 | # define ngettext(Msgid1, Msgid2, N) \ | 74 | # define ngettext(Msgid1, Msgid2, N) \ |
71 | ((N) == 1 \ | 75 | ((N) == 1 \ |
72 | ? ((void) (Msgid2), (const char *) (Msgid1)) \ | 76 | ? ((void) (Msgid2), (const char *) (Msgid1)) \ |
73 | : ((void) (Msgid1), (const char *) (Msgid2))) | 77 | : ((void) (Msgid1), (const char *) (Msgid2))) |
78 | # undef dngettext | ||
74 | # define dngettext(Domainname, Msgid1, Msgid2, N) \ | 79 | # define dngettext(Domainname, Msgid1, Msgid2, N) \ |
75 | ((void) (Domainname), ngettext (Msgid1, Msgid2, N)) | 80 | ((void) (Domainname), ngettext (Msgid1, Msgid2, N)) |
81 | # undef dcngettext | ||
76 | # define dcngettext(Domainname, Msgid1, Msgid2, N, Category) \ | 82 | # define dcngettext(Domainname, Msgid1, Msgid2, N, Category) \ |
77 | ((void) (Category), dngettext(Domainname, Msgid1, Msgid2, N)) | 83 | ((void) (Category), dngettext(Domainname, Msgid1, Msgid2, N)) |
84 | # undef textdomain | ||
78 | # define textdomain(Domainname) ((const char *) (Domainname)) | 85 | # define textdomain(Domainname) ((const char *) (Domainname)) |
86 | # undef bindtextdomain | ||
79 | # define bindtextdomain(Domainname, Dirname) \ | 87 | # define bindtextdomain(Domainname, Dirname) \ |
80 | ((void) (Domainname), (const char *) (Dirname)) | 88 | ((void) (Domainname), (const char *) (Dirname)) |
89 | # undef bind_textdomain_codeset | ||
81 | # define bind_textdomain_codeset(Domainname, Codeset) \ | 90 | # define bind_textdomain_codeset(Domainname, Codeset) \ |
82 | ((void) (Domainname), (const char *) (Codeset)) | 91 | ((void) (Domainname), (const char *) (Codeset)) |
83 | 92 | ||