Don't explicitly send MotionNotify event during Resize (GeometryWindow)
[fvwm.git] / libs / FGettext.h
blob4bcb3e42ab0263254f6f5b839fa6060a8ab2e315
1 /* -*-c-*- */
2 /* Convenience header for conditional use of GNU <libintl.h>.
3 Copyright (C) 1995-1998, 2000-2002 Free Software Foundation, Inc. */
5 #ifndef _LIBGETTEXT_H
6 #define _LIBGETTEXT_H 1
8 #include "config.h"
10 #define _(x) FGettext(x)
12 /* NLS can be disabled through the configure --disable-nls option. */
13 #if HAVE_NLS
15 #define HaveNLSSupport 1
17 /* Get declarations of GNU message catalog functions. */
18 # include <libintl.h>
20 #else
22 #define HaveNLSSupport 0
24 /* Solaris /usr/include/locale.h includes /usr/include/libintl.h, which
25 chokes if dcgettext is defined as a macro. So include it now, to make
26 later inclusions of <locale.h> a NOP. We don't include <libintl.h>
27 as well because people using "gettext.h" will not include <libintl.h>,
28 and also including <libintl.h> would fail on SunOS 4, whereas <locale.h>
29 is OK. */
30 #if defined(__sun)
31 # include <locale.h>
32 #endif
34 /* Disabled NLS.
35 The casts to 'const char *' serve the purpose of producing warnings
36 for invalid uses of the value returned from these functions.
37 On pre-ANSI systems without 'const', the config.h file is supposed to
38 contain "#define const". */
40 # define gettext(Msgid) ((const char *) (Msgid))
41 # define dgettext(Domainname, Msgid) ((const char *) (Msgid))
42 # define dcgettext(Domainname, Msgid, Category) ((const char *) (Msgid))
43 # define ngettext(Msgid1, Msgid2, N) \
44 ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2))
45 # define dngettext(Domainname, Msgid1, Msgid2, N) \
46 ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2))
47 # define dcngettext(Domainname, Msgid1, Msgid2, N, Category) \
48 ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2))
49 # define textdomain(Domainname) ((const char *) (Domainname))
50 # define bindtextdomain(Domainname, Dirname) ((const char *) (Dirname))
51 # define bind_textdomain_codeset(Domainname, Codeset) ((const char *) (Codeset))
54 #endif
56 /* A pseudo function call that serves as a marker for the automated
57 extraction of messages, but does not call gettext(). The run-time
58 translation is done at a different place in the code.
59 The argument, String, should be a literal string. Concatenated strings
60 and other string expressions won't work.
61 The macro's expansion is not parenthesized, so that it is suitable as
62 initializer for static 'char[]' or 'const char[]' variables. */
63 #define gettext_noop(String) String
65 void FGettextInit(const char *domain, const char *dir, const char *module);
66 const char *FGettext(char *str);
67 char *FGettextCopy(char *str);
68 void FGettextSetLocalePath(const char *path);
69 void FGettextPrintLocalePath(int verbose);
71 #endif /* _LIBGETTEXT_H */