Upstream tarball 10193
[amule.git] / intl / intl-compat.c
blobda890159f8029c9e5020bf7346c81144377eebb4
1 /* intl-compat.c - Stub functions to call gettext functions from GNU gettext
2 Library.
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)
8 any later version.
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,
18 USA. */
20 #ifdef HAVE_CONFIG_H
21 # include <config.h>
22 #endif
24 #define _INTL_REDIRECT_MACROS
25 #include "libgnuintl.h"
26 #include "gettextP.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. */
37 #undef gettext
38 #undef dgettext
39 #undef dcgettext
40 #undef ngettext
41 #undef dngettext
42 #undef dcngettext
43 #undef textdomain
44 #undef bindtextdomain
45 #undef bind_textdomain_codeset
48 char *
49 gettext (msgid)
50 const char *msgid;
52 return libintl_gettext (msgid);
56 char *
57 dgettext (domainname, msgid)
58 const char *domainname;
59 const char *msgid;
61 return libintl_dgettext (domainname, msgid);
65 char *
66 dcgettext (domainname, msgid, category)
67 const char *domainname;
68 const char *msgid;
69 int category;
71 return libintl_dcgettext (domainname, msgid, category);
75 char *
76 ngettext (msgid1, msgid2, n)
77 const char *msgid1;
78 const char *msgid2;
79 unsigned long int n;
81 return libintl_ngettext (msgid1, msgid2, n);
85 char *
86 dngettext (domainname, msgid1, msgid2, n)
87 const char *domainname;
88 const char *msgid1;
89 const char *msgid2;
90 unsigned long int n;
92 return libintl_dngettext (domainname, msgid1, msgid2, n);
96 char *
97 dcngettext (domainname, msgid1, msgid2, n, category)
98 const char *domainname;
99 const char *msgid1;
100 const char *msgid2;
101 unsigned long int n;
102 int category;
104 return libintl_dcngettext (domainname, msgid1, msgid2, n, category);
108 char *
109 textdomain (domainname)
110 const char *domainname;
112 return libintl_textdomain (domainname);
116 char *
117 bindtextdomain (domainname, dirname)
118 const char *domainname;
119 const char *dirname;
121 return libintl_bindtextdomain (domainname, dirname);
125 char *
126 bind_textdomain_codeset (domainname, codeset)
127 const char *domainname;
128 const char *codeset;
130 return libintl_bind_textdomain_codeset (domainname, codeset);