X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=src%2Fwget.h;h=059c830cbbf83fb1e41ce19c5865f4c997a932af;hb=b997a9d34f3649956924d7fc9a380f0b4b99604f;hp=9cac5c759f6db4c3f05be9ec65ab4b8646567d34;hpb=20635226236ab4174bb12622e85cc9d337de57d8;p=wget 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: