From dcaaa9223e2d1e0af80ddc2d3d70232cbac60d55 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 15 Sep 1999 14:26:39 +0000 Subject: See ChangeLog: Wed Sep 15 16:22:17 CEST 1999 Werner Koch --- include/ChangeLog | 5 +++++ include/i18n.h | 9 +++++++++ 2 files changed, 14 insertions(+) (limited to 'include') diff --git a/include/ChangeLog b/include/ChangeLog index a1f94e32a..e5c86ce85 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +Wed Sep 15 16:22:17 CEST 1999 Werner Koch + + + * i18n.h: Add support for simple-gettext. + Tue Jun 29 21:44:25 CEST 1999 Werner Koch diff --git a/include/i18n.h b/include/i18n.h index 105a64328..5caf86e92 100644 --- a/include/i18n.h +++ b/include/i18n.h @@ -21,6 +21,14 @@ #ifndef G10_I18N_H #define G10_I18N_H +#ifdef USE_SIMPLE_GETTEXT + int set_gettext_file( const char *filename ); + const char *gettext( const char *msgid ); + + #define _(a) gettext (a) + #define N_(a) (a) + +#else #ifdef HAVE_LOCALE_H #include /* suggested by Ernst Molitor */ #endif @@ -37,5 +45,6 @@ #define _(a) (a) #define N_(a) (a) #endif +#endif /* !USE_SIMPLE_GETTEXT */ #endif /*G10_I18N_H*/ -- cgit v1.2.3