From b997a9d34f3649956924d7fc9a380f0b4b99604f Mon Sep 17 00:00:00 2001 From: hniksic Date: Sun, 2 Nov 2003 16:28:53 -0800 Subject: [PATCH] [svn] Don't parenthesize argument to N_. --- src/ChangeLog | 4 ++++ src/wget.h | 12 ++++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 60debe4f..a771b8ac 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2003-11-03 Hrvoje Niksic + + * wget.h (N_): Don't parenthesize argument. + 2003-11-03 Hrvoje Niksic * host.h (ADDRESS_IPV4_DATA): Don't take the address of in.s_addr, diff --git a/src/wget.h b/src/wget.h index 9cac5c75..059c830c 100644 --- a/src/wget.h +++ b/src/wget.h @@ -59,8 +59,16 @@ so, delete this exception statement from your version. */ # define _(string) (string) #endif /* not HAVE_NLS */ -/* No-op version of gettext, used for constant strings. */ -#define N_(string) (string) +/* A pseudo function call that serves as a marker for the automated + extraction of messages, but does not call gettext(). The run-time + translation is done at a different place in the code. The purpose + of the N_("...") call is to make the message snarfer aware that the + "..." string needs to be translated. STRING should be a string + literal. Concatenated strings and other string expressions won't + work. The macro's expansion is not parenthesized, so that it is + suitable as initializer for static 'char[]' or 'const char[]' + variables. -- explanation partly taken from GNU make. */ +#define N_(string) string /* I18N NOTE: You will notice that none of the DEBUGP messages are marked as translatable. This is intentional, for a few reasons: -- 2.39.2