ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/lib/gettext.h
(Generate patch)

Comparing gvpe/lib/gettext.h (file contents):
Revision 1.1 by pcg, Sat Mar 1 15:53:02 2003 UTC vs.
Revision 1.3 by pcg, Fri Mar 18 02:32:20 2005 UTC

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 Free Software Foundation, Inc. 2 Copyright (C) 1995-1998, 2000-2002 Free Software Foundation, Inc.
3 3
4 This file is part of GVPE.
5
4 This program is free software; you can redistribute it and/or modify it 6 GVPE is free software; you can redistribute it and/or modify it
5 under the terms of the GNU Library General Public License as published 7 under the terms of the GNU Library General Public License as published
6 by the Free Software Foundation; either version 2, or (at your option) 8 by the Free Software Foundation; either version 2, or (at your option)
7 any later version. 9 any later version.
8 10
9 This program is distributed in the hope that it will be useful, 11 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details. 14 Library General Public License for more details.
13 15
14 You should have received a copy of the GNU Library General Public 16 You should have received a copy of the GNU Library General Public
15 License along with this program; if not, write to the Free Software 17 License along with gvpe; if not, write to the Free Software
16 Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 */ 19 */
18 20
19#ifndef _LIBGETTEXT_H 21#ifndef _LIBGETTEXT_H
20#define _LIBGETTEXT_H 1 22#define _LIBGETTEXT_H 1
21 23
24#if __cplusplus
25# include CLOCALE
26#else
27# include <locale.h>
28#endif
29
22/* NLS can be disabled through the configure --disable-nls option. */ 30/* NLS can be disabled through the configure --disable-nls option. */
23#if ENABLE_NLS 31#if ENABLE_NLS
24 32
25/* Get declarations of GNU message catalog functions. */ 33/* Get declarations of GNU message catalog functions. */
26# include <libintl.h> 34# include <libintl.h>
27# include <locale.h>
28 35
29/* Shorthand notation */ 36/* Shorthand notation */
30 37
31# define _(Text) gettext (Text) 38# define _(Text) gettext (Text)
32 39
59# define textdomain(Domainname) ((const char *) (Domainname)) 66# define textdomain(Domainname) ((const char *) (Domainname))
60# define bindtextdomain(Domainname, Dirname) ((const char *) (Dirname)) 67# define bindtextdomain(Domainname, Dirname) ((const char *) (Dirname))
61# define bind_textdomain_codeset(Domainname, Codeset) ((const char *) (Codeset)) 68# define bind_textdomain_codeset(Domainname, Codeset) ((const char *) (Codeset))
62 69
63# define _(Text) Text 70# define _(Text) Text
64# define setlocale(Category, Locale) ((const char *) (Locale)) 71//# define setlocale(Category, Locale) ((const char *) (Locale))
65 72
66#endif 73#endif
67 74
68/* A pseudo function call that serves as a marker for the automated 75/* A pseudo function call that serves as a marker for the automated
69 extraction of messages, but does not call gettext(). The run-time 76 extraction of messages, but does not call gettext(). The run-time

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines