Re: _(string) macro
- From: Havoc Pennington <hp redhat com>
- To: murrayc usa net
- Cc: gtk-devel-list <gtk-devel-list gnome org>
- Subject: Re: _(string) macro
- Date: 03 Dec 2001 11:15:56 -0500
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)
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]