source: trunk/third/libgnomecanvas/libgnomecanvas/gnome-canvas-i18n.h @ 18323

Revision 18323, 2.0 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18322, which included commits to RCS files with non-trunk default branches.
Line 
1/*
2 * Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation
3 * All rights reserved.
4 *
5 * This file is part of the Gnome Library.
6 *
7 * The Gnome Library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public License as
9 * published by the Free Software Foundation; either version 2 of the
10 * License, or (at your option) any later version.
11 *
12 * The Gnome Library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15 * 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 */
25
26/*
27 * Handles all of the internationalization configuration options.
28 * Author: Tom Tromey <tromey@creche.cygnus.com>
29 */
30
31#ifndef __LIBGNOME_CANVAS_I18N_H__
32#define __LIBGNOME_CANVAS_I18N_H__
33
34#include <glib.h>
35
36G_BEGIN_DECLS
37
38#if !defined(__LIBGNOME_CANVAS_I18NP_H__)
39
40#ifdef ENABLE_NLS
41#    include <libintl.h>
42#    ifdef GNOME_EXPLICIT_TRANSLATION_DOMAIN
43#        undef _
44#        define _(String) dgettext (GNOME_EXPLICIT_TRANSLATION_DOMAIN, String)
45#    else
46#        define _(String) gettext (String)
47#    endif
48#    ifdef gettext_noop
49#        define N_(String) gettext_noop (String)
50#    else
51#        define N_(String) (String)
52#    endif
53#else
54/* Stubs that do something close enough.  */
55#    define textdomain(String) (String)
56#    define gettext(String) (String)
57#    define dgettext(Domain,Message) (Message)
58#    define dcgettext(Domain,Message,Type) (Message)
59#    define bindtextdomain(Domain,Directory) (Domain)
60#    define _(String) (String)
61#    define N_(String) (String)
62#endif
63
64#endif
65
66G_END_DECLS
67
68#endif /* __LIBGNOME_CANVAS_I18N_H__ */
Note: See TracBrowser for help on using the repository browser.