From: Serge Hallyn Date: Sun, 21 Jun 2026 22:42:59 +0000 (-0500) Subject: po: tell xgettext that we want line numbers X-Git-Tag: 4.20.0-rc2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5290b03f2b231b270ca290f3c4d955e3f68f774d;p=thirdparty%2Fshadow.git po: tell xgettext that we want line numbers This helps translators find the origin of each entry. On the other hand, in man/po/ tell msgmerge not to add file:line. Signed-off-by: Serge Hallyn Acked-by: Alejandro Colomar --- diff --git a/man/po/Makefile.in b/man/po/Makefile.in index 991177bca..d4f8b33ce 100644 --- a/man/po/Makefile.in +++ b/man/po/Makefile.in @@ -104,7 +104,7 @@ $(DOMAIN).pot-update: $(XMLFILES) $(srcdir)/XMLFILES remove-potcdate.sed fi; \ files="$$files $$outbase"; \ done; \ - cd $$tmpdir; itstool -d -o $(DOMAIN).po $$files; \ + cd $$tmpdir; itstool -d $$files | msgattrib --no-location -o $(DOMAIN).po; \ sed -i '1i \ # To re-generate, run "cd man/po; make update-po"' $$tmpdir/$(DOMAIN).po; \ cd $$origdir; \ diff --git a/po/Makevars b/po/Makevars index c2b35f88b..cba6fd7bf 100644 --- a/po/Makevars +++ b/po/Makevars @@ -8,7 +8,7 @@ subdir = po top_builddir = .. # These options get passed to xgettext. -XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --no-location +XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ # 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