2005-10-07 Marcus Brinkmann <marcus@g10code.de>
[gnupg.git] / common / i18n.h
blob0e13dca4dde23841f9619a08173893ab3b4481ac
1 /* i18n.h
2 * Copyright (C) 1998, 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
21 #ifndef GNUPG_COMMON_I18N_H
22 #define GNUPG_COMMON_I18N_H
24 #ifdef USE_SIMPLE_GETTEXT
25 int set_gettext_file( const char *filename );
26 const char *gettext( const char *msgid );
27 # define _(a) gettext (a)
28 # define N_(a) (a)
29 #else
30 # ifdef HAVE_LOCALE_H
31 # include <locale.h>
32 # endif
33 # ifdef ENABLE_NLS
34 # include <libintl.h>
35 # define _(a) gettext (a)
36 # ifdef gettext_noop
37 # define N_(a) gettext_noop (a)
38 # else
39 # define N_(a) (a)
40 # endif
41 # else
42 # define _(a) (a)
43 # define N_(a) (a)
44 # endif
45 #endif /*!USE_SIMPLE_GETTEXT*/
47 #endif /*GNUPG_COMMON_I18N_H*/