bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bindtextdomain, textdomain, and gettext not getting called.


From: Bruno Haible
Subject: Re: bindtextdomain, textdomain, and gettext not getting called.
Date: Sun, 11 Nov 2007 02:34:18 +0100
User-agent: KMail/1.5.4

David Bruce wrote in 
<http://lists.gnu.org/archive/html/bug-gnu-utils/2007-11/msg00036.html>:

> // Translation stuff:
> #ifdef MACOSX
> #define N_(String) String
> #define _(String) String
> #else
> #ifdef WIN32
> #define N_(String) String
> #define _(String) String
> #else
> #include "gettext.h"
> #include <locale.h>
> #define _(String) gettext (String)
> #define gettext_noop(String) String
> #define N_(String) gettext_noop (String)
> #endif
> #endif

There's no need to exclude MacOS X from the platforms where internationalization
is applied. GNU gettext supports MacOS X fine.

The same holds for Cygwin. Cygwin also defines WIN32 in many configurations.

On native Woe32 (mingw or MSVC), however, I can understand that you want to
understand the DLL version and linking nightmare. The #ifdef test for these
platforms is
   #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__

Bruno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]