2006-09-06 Marcus Brinkmann <marcus@g10code.de>
[gnupg.git] / include / i18n.h
blob6abd2dce3aca8de16f1d9a5c8201b6c86cc5a6bb
1 /* i18n.h
2 * Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
4 * This file is part of GNUPG.
6 * GNUPG is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * GNUPG is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
19 * USA.
22 #ifndef G10_I18N_H
23 #define G10_I18N_H
25 #ifdef USE_SIMPLE_GETTEXT
26 int set_gettext_file( const char *filename, const char *regkey );
27 const char *gettext( const char *msgid );
29 #define _(a) gettext (a)
30 #define N_(a) (a)
32 #else
33 #ifdef HAVE_LOCALE_H
34 #include <locale.h> /* suggested by Ernst Molitor */
35 #endif
37 #ifdef ENABLE_NLS
38 #ifndef __riscos__
39 #include <libintl.h>
40 #else
41 #include "libgettext.h"
42 #endif /* __riscos__ */
43 #define _(a) gettext (a)
44 #ifdef gettext_noop
45 #define N_(a) gettext_noop (a)
46 #else
47 #define N_(a) (a)
48 #endif
49 #else
50 #define _(a) (a)
51 #define N_(a) (a)
52 #endif
53 #endif /* !USE_SIMPLE_GETTEXT */
55 #endif /*G10_I18N_H*/