~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/gettext.h

  • Committer: Monty Taylor
  • Date: 2008-08-02 00:06:32 UTC
  • mto: (236.1.42 codestyle)
  • mto: This revision was merged to the branch mainline in revision 261.
  • Revision ID: monty@inaugust.com-20080802000632-jsse0zdd9r6ic5ku
Actually turn gettext on...

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* - mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
 
   vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
 
   Convenience header for conditional use of GNU <libintl.h>.
 
1
/* Convenience header for conditional use of GNU <libintl.h>.
4
2
   Copyright (C) 1995-1998, 2000-2002, 2004-2006 Free Software Foundation, Inc.
5
3
 
6
4
   This program is free software; you can redistribute it and/or modify it
18
16
   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
19
17
   USA.  */
20
18
 
21
 
#ifndef DRIZZLED_GETTEXT_H
22
 
#define DRIZZLED_GETTEXT_H
 
19
#ifndef _LIBGETTEXT_H
 
20
#define _LIBGETTEXT_H 1
23
21
 
24
22
/* NLS can be disabled through the configure --disable-nls option.  */
25
 
#if defined(ENABLE_NLS)
 
23
#if ENABLE_NLS
26
24
 
27
25
/* Get declarations of GNU message catalog functions.  */
28
26
# include <libintl.h>
56
54
   it now, to make later inclusions of <libintl.h> a NOP.  */
57
55
#if defined(__cplusplus) && defined(__GNUG__) && (__GNUC__ >= 3)
58
56
# include <cstdlib>
59
 
# if defined(__GLIBC__)
60
 
#  if (__GLIBC__ >= 2) || defined(_GLIBCXX_HAVE_LIBINTL_H)
61
 
#    include <libintl.h>
62
 
#  endif
 
57
# if (__GLIBC__ >= 2) || _GLIBCXX_HAVE_LIBINTL_H
 
58
#  include <libintl.h>
63
59
# endif
64
60
#endif
65
61
 
66
 
#ifndef gettext
67
62
/* Disabled NLS.
68
63
   The casts to 'const char *' serve the purpose of producing warnings
69
64
   for invalid uses of the value returned from these functions.
88
83
    ((void) (Domainname), (const char *) (Codeset))
89
84
 
90
85
#endif
91
 
#endif 
 
86
 
92
87
/* A pseudo function call that serves as a marker for the automated
93
88
   extraction of messages, but does not call gettext().  The run-time
94
89
   translation is done at a different place in the code.
273
268
}
274
269
 
275
270
#define _(String)  gettext(String)
276
 
#define N_(String) gettext_noop(String)
277
 
#endif /* DRIZZLED_GETTEXT_H */
 
271
#endif /* _LIBGETTEXT_H */