1 /* intl-compat.c - Stub functions to call gettext functions from GNU gettext
3 Copyright (C) 1995, 2000-2002 Software Foundation, Inc.
5 This program is free software; you can redistribute it and/or modify it
6 under the terms of the GNU Library General Public License as published
7 by the Free Software Foundation; either version 2, or (at your option)
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
15 You should have received a copy of the GNU Library General Public
16 License along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
24 #define _INTL_REDIRECT_MACROS
25 #include "libgnuintl.h"
28 /* @@ end of prolog @@ */
30 /* This file redirects the gettext functions (without prefix) to those
31 defined in the included GNU libintl library (with "libintl_" prefix).
32 It is compiled into libintl in order to make the AM_GNU_GETTEXT test
33 of gettext <= 0.11.2 work with the libintl library >= 0.11.3 which
34 has the redirections primarily in the <libintl.h> include file. */
45 #undef bind_textdomain_codeset
52 return libintl_gettext (msgid
);
57 dgettext (domainname
, msgid
)
58 const char *domainname
;
61 return libintl_dgettext (domainname
, msgid
);
66 dcgettext (domainname
, msgid
, category
)
67 const char *domainname
;
71 return libintl_dcgettext (domainname
, msgid
, category
);
76 ngettext (msgid1
, msgid2
, n
)
81 return libintl_ngettext (msgid1
, msgid2
, n
);
86 dngettext (domainname
, msgid1
, msgid2
, n
)
87 const char *domainname
;
92 return libintl_dngettext (domainname
, msgid1
, msgid2
, n
);
97 dcngettext (domainname
, msgid1
, msgid2
, n
, category
)
98 const char *domainname
;
104 return libintl_dcngettext (domainname
, msgid1
, msgid2
, n
, category
);
109 textdomain (domainname
)
110 const char *domainname
;
112 return libintl_textdomain (domainname
);
117 bindtextdomain (domainname
, dirname
)
118 const char *domainname
;
121 return libintl_bindtextdomain (domainname
, dirname
);
126 bind_textdomain_codeset (domainname
, codeset
)
127 const char *domainname
;
130 return libintl_bind_textdomain_codeset (domainname
, codeset
);