diff options
Diffstat (limited to 'utils/xscreensaver-intl.h')
-rw-r--r-- | utils/xscreensaver-intl.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/utils/xscreensaver-intl.h b/utils/xscreensaver-intl.h new file mode 100644 index 0000000..50c6414 --- /dev/null +++ b/utils/xscreensaver-intl.h @@ -0,0 +1,36 @@ +/* xscreensaver, Copyright (c) 2002 Jamie Zawinski <jwz@jwz.org> + * + * Permission to use, copy, modify, distribute, and sell this software and its + * documentation for any purpose is hereby granted without fee, provided that + * the above copyright notice appear in all copies and that both that + * copyright notice and this permission notice appear in supporting + * documentation. No representations are made about the suitability of this + * software for any purpose. It is provided "as is" without express or + * implied warranty. + */ + +#ifndef __XSCREENSAVER_INTL_H__ +#define __XSCREENSAVER_INTL_H__ + +#ifdef ENABLE_NLS +# include <libintl.h> +# define _(String) dgettext(GETTEXT_PACKAGE,(String)) +# ifdef gettext_noop +# define N_(String) gettext_noop((String)) +# else /* !gettext_noop */ +# define N_(String) (String) +# endif /* !gettext_noop */ + +#else /* !ENABLE_NLS */ + +# define _(String) (String) +# define N_(String) (String) +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,String) (String) +# define dcgettext(Domain,String,Type) (String) +# define bindtextdomain(Domain,Directory) (Domain) + +#endif /* !ENABLE_NLS */ + +#endif /* __XSCREENSAVER_INTL_H__ */ |