Re: _(string) macro

murrayc t-online de (Murray Cumming) writes:
> Is the _(string) gettext macro a GNOME-only thing, or is there a
> glib2/gtk2 header that I can include to get it?

GNOME-only. However, all you need is:

 #include <libintl.h>
 #define _(x) gettext (x)
 #define N_(x) (x)

So, you can just type that in wherever you like. For a library it
should be:
 #define _(x) dgettext (GETTEXT_PACKAGE, x)


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