]> granicus.if.org Git - procps-ng/commitdiff
build-sys: enable xgettext TRANSLATORS comments
authorJim Warner <james.warner@comcast.net>
Fri, 14 Oct 2011 07:10:34 +0000 (02:10 -0500)
committerSami Kerola <kerolasa@iki.fi>
Tue, 20 Dec 2011 16:30:51 +0000 (17:30 +0100)
This commit will enable pass comments to translators near gettext
directive to .pot file. For example;

/* TRANSLATORS: this is visible in .pot file */
printf(_("to be translated"));

Signed-off-by: Jim Warner <james.warner@comcast.net>
po/Makevars

index daa42e2b42a32c4140fb60cb008dc78a84b06a34..7865213a1dd1945926c07ff780d2ae1cdc6cfe9a 100644 (file)
@@ -8,7 +8,7 @@ subdir = po
 top_builddir = ..
 
 # These options get passed to xgettext.
-XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --keyword=P_:1,2
+XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --keyword=P_:1,2 --no-wrap --escape --add-comments=
 
 # This is the copyright holder that gets inserted into the header of the
 # $(DOMAIN).pot file.  Set this to the copyright holder of the surrounding