]> sjero.net Git - wget/commitdiff
[svn] Don't parenthesize argument to N_.
authorhniksic <devnull@localhost>
Mon, 3 Nov 2003 00:28:53 +0000 (16:28 -0800)
committerhniksic <devnull@localhost>
Mon, 3 Nov 2003 00:28:53 +0000 (16:28 -0800)
src/ChangeLog
src/wget.h

index 60debe4f7648ff68a2ba490c144ada3854bad75c..a771b8ac9e5347a7e9f0074a093983a681f065e6 100644 (file)
@@ -1,3 +1,7 @@
+2003-11-03  Hrvoje Niksic  <hniksic@xemacs.org>
+
+       * wget.h (N_): Don't parenthesize argument.
+
 2003-11-03  Hrvoje Niksic  <hniksic@xemacs.org>
 
        * host.h (ADDRESS_IPV4_DATA): Don't take the address of in.s_addr,
index 9cac5c759f6db4c3f05be9ec65ab4b8646567d34..059c830cbbf83fb1e41ce19c5865f4c997a932af 100644 (file)
@@ -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: