]> Dogcows Code - chaz/openbox/blob - intl/intl-compat.c
no space on teh top or bottom of text..
[chaz/openbox] / intl / intl-compat.c
1 /* intl-compat.c - Stub functions to call gettext functions from GNU gettext
2 Library.
3 Copyright (C) 1995, 2000-2002 Software Foundation, Inc.
4
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.
9
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.
14
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. */
19
20 #ifdef HAVE_CONFIG_H
21 # include <config.h>
22 #endif
23
24 #define _INTL_REDIRECT_MACROS
25 #include "libgnuintl.h"
26 #include "gettextP.h"
27
28 /* @@ end of prolog @@ */
29
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. */
35
36
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
46
47
48 char *
49 gettext (msgid)
50 const char *msgid;
51 {
52 return libintl_gettext (msgid);
53 }
54
55
56 char *
57 dgettext (domainname, msgid)
58 const char *domainname;
59 const char *msgid;
60 {
61 return libintl_dgettext (domainname, msgid);
62 }
63
64
65 char *
66 dcgettext (domainname, msgid, category)
67 const char *domainname;
68 const char *msgid;
69 int category;
70 {
71 return libintl_dcgettext (domainname, msgid, category);
72 }
73
74
75 char *
76 ngettext (msgid1, msgid2, n)
77 const char *msgid1;
78 const char *msgid2;
79 unsigned long int n;
80 {
81 return libintl_ngettext (msgid1, msgid2, n);
82 }
83
84
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;
91 {
92 return libintl_dngettext (domainname, msgid1, msgid2, n);
93 }
94
95
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;
103 {
104 return libintl_dcngettext (domainname, msgid1, msgid2, n, category);
105 }
106
107
108 char *
109 textdomain (domainname)
110 const char *domainname;
111 {
112 return libintl_textdomain (domainname);
113 }
114
115
116 char *
117 bindtextdomain (domainname, dirname)
118 const char *domainname;
119 const char *dirname;
120 {
121 return libintl_bindtextdomain (domainname, dirname);
122 }
123
124
125 char *
126 bind_textdomain_codeset (domainname, codeset)
127 const char *domainname;
128 const char *codeset;
129 {
130 return libintl_bind_textdomain_codeset (domainname, codeset);
131 }
This page took 0.039168 seconds and 4 git commands to generate.