diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 5 | ||||
-rw-r--r-- | include/i18n.h | 9 |
2 files changed, 14 insertions, 0 deletions
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 <[email protected]> + + + * i18n.h: Add support for simple-gettext. + Tue Jun 29 21:44:25 CEST 1999 Werner Koch <[email protected]> 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 <locale.h> /* 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*/ |