http://packetstormsecurity.org/UNIX/admin/xscreensaver-4.03.tar.gz
[xscreensaver] / utils / xscreensaver-intl.h
1 /* xscreensaver, Copyright (c) 2002 Jamie Zawinski <jwz@jwz.org>
2  *
3  * Permission to use, copy, modify, distribute, and sell this software and its
4  * documentation for any purpose is hereby granted without fee, provided that
5  * the above copyright notice appear in all copies and that both that
6  * copyright notice and this permission notice appear in supporting
7  * documentation.  No representations are made about the suitability of this
8  * software for any purpose.  It is provided "as is" without express or 
9  * implied warranty.
10  */
11
12 #ifndef __XSCREENSAVER_INTL_H__
13 #define __XSCREENSAVER_INTL_H__
14
15 #ifdef ENABLE_NLS
16
17 # include <libintl.h>
18 # define _(String) dgettext(GETTEXT_PACKAGE,(String))
19 # ifdef gettext_noop
20 #  define N_(String) gettext_noop((String))
21 # else  /* !gettext_noop */
22 #  define N_(String) (String)
23 # endif /* !gettext_noop */
24
25 #else  /* !ENABLE_NLS */
26
27 # define _(String) (String)
28 # define N_(String) (String)
29 # define textdomain(String) (String)
30 # define gettext(String) (String)
31 # define dgettext(Domain,String) (String)
32 # define dcgettext(Domain,String,Type) (String)
33 # define bindtextdomain(Domain,Directory) (Domain) 
34
35 #endif /* !ENABLE_NLS */
36
37 #ifndef HAVE_BINDTEXTDOMAIN_CODESET
38 # define bindtextdomain_codeset(Domain,Codeset) (Domain)
39 #endif
40
41 #endif /* __XSCREENSAVER_INTL_H__ */