1 /*
2 * Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation
3 * All rights reserved.
4 *
5 * This file is part of the Gnome Devtools Library.
6 *
7 * The Gnome Devtools Library is free software; you can redistribute
8 * it and/or modify it under the terms of the GNU Library General
9 * Public License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
11 *
12 * The Gnome Devtools Library is distributed in the hope that it will
13 * be useful, but WITHOUT ANY WARRANTY; without even the implied
14 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15 * See the GNU Library General Public License for more details.
16 *
17 * You should have received a copy of the GNU Library General Public
18 * License along with the Gnome Library; see the file COPYING.LIB. If not,
19 * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 * Boston, MA 02111-1307, USA.
21 */
22 /*
23 @NOTATION@
24 */
26 /*
27 * Handles all of the internationalization configuration options.
28 * Author: Tom Tromey <tromey@creche.cygnus.com>
29 */
31 #ifndef __GDL_18N_H__
32 #define __GDL_18N_H__ 1
34 #include <glib.h>
37 G_BEGIN_DECLS
39 #ifdef ENABLE_NLS
40 # include <libintl.h>
41 # undef _
42 # define _(String) gdl_gettext (String)
43 # ifdef gettext_noop
44 # define N_(String) gettext_noop (String)
45 # else
46 # define N_(String) (String)
47 # endif
48 #else
49 /* Stubs that do something close enough. */
50 # undef textdomain
51 # define textdomain(String) (String)
52 # undef gettext
53 # define gettext(String) (String)
54 # undef dgettext
55 # define dgettext(Domain,Message) (Message)
56 # undef dcgettext
57 # define dcgettext(Domain,Message,Type) (Message)
58 # undef bindtextdomain
59 # define bindtextdomain(Domain,Directory) (Domain)
60 # undef bind_textdomain_codeset
61 # define bind_textdomain_codeset(Domain,CodeSet) (Domain)
62 # undef _
63 # define _(String) (String)
64 # undef N_
65 # define N_(String) (String)
66 #endif
68 char *gdl_gettext (const char *msgid);
70 G_END_DECLS
72 #endif /* __GDL_I18N_H__ */