2 * Copyright (C) 1998, 2001 Free Software Foundation, Inc.
4 * This file is free software; as a special exception the author gives
5 * unlimited permission to copy and/or distribute it, with or without
6 * modifications, as long as this notice is preserved.
8 * This file is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY, to the extent permitted by law; without even
10 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 #ifndef GNUPG_COMMON_I18N_H
15 #define GNUPG_COMMON_I18N_H
18 #ifdef USE_SIMPLE_GETTEXT
19 # include "../jnlib/w32help.h"
20 # define _(a) gettext (a)
28 # define _(a) gettext (a)
30 # define N_(a) gettext_noop (a)
37 # define ngettext(a,b,c) ((c)==1? (a):(b))
39 #endif /*!USE_SIMPLE_GETTEXT*/
41 void i18n_init (void);
42 char *i18n_switchto_utf8 (void);
43 void i18n_switchback (char *saved_codeset
);
44 const char *i18n_utf8 (const char *string
);
47 #endif /*GNUPG_COMMON_I18N_H*/