source: trunk/third/xscreensaver/utils/xscreensaver-intl.h @ 20148

Revision 20148, 1.2 KB checked in by ghudson, 21 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r20147, which included commits to RCS files with non-trunk default branches.
Line 
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# include <libintl.h>
17# define _(String) dgettext(GETTEXT_PACKAGE,(String))
18# ifdef gettext_noop
19#  define N_(String) gettext_noop((String))
20# else  /* !gettext_noop */
21#  define N_(String) (String)
22# endif /* !gettext_noop */
23
24#else  /* !ENABLE_NLS */
25
26# define _(String) (String)
27# define N_(String) (String)
28# define textdomain(String) (String)
29# define gettext(String) (String)
30# define dgettext(Domain,String) (String)
31# define dcgettext(Domain,String,Type) (String)
32# define bindtextdomain(Domain,Directory) (Domain)
33
34#endif /* !ENABLE_NLS */
35
36#endif /* __XSCREENSAVER_INTL_H__ */
Note: See TracBrowser for help on using the repository browser.