]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
po: tell xgettext that we want line numbers
authorSerge Hallyn <serge@hallyn.com>
Sun, 21 Jun 2026 22:42:59 +0000 (17:42 -0500)
committerSerge Hallyn <serge@hallyn.com>
Mon, 22 Jun 2026 21:59:26 +0000 (16:59 -0500)
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 <serge@hallyn.com>
Acked-by: Alejandro Colomar <alx@kernel.org>
man/po/Makefile.in
po/Makevars

index 991177bca211ac7ab0110607b4b91d6dec2cc750..d4f8b33ceb172afc1c6fe2b86440614a1aa71734 100644 (file)
@@ -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; \
index c2b35f88bed4eaf4c985228df89b491773ecb5df..cba6fd7bf0b49b3794104c9c169d3f4241626c5a 100644 (file)
@@ -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