]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
Translations: Omit man page line numbers from .pot and .po files
authorLasse Collin <lasse.collin@tukaani.org>
Mon, 27 May 2024 22:17:45 +0000 (01:17 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Tue, 28 May 2024 14:21:47 +0000 (17:21 +0300)
(cherry picked from commit 9114267038deaecf4832a5cacb5acbe6591ac839)

po4a/update-po

index 3c993072b8213deb6a6f4997d6cfd14aa5e8ea0d..a9d75ec3d4ddd6ad5fbde2bed0c0e9bf071be6ca 100755 (executable)
@@ -37,8 +37,13 @@ PACKAGE_VERSION=`cd .. && sh build-aux/version.sh` || exit 1
 # when nothing else has changed. This makes it slower but it's fine
 # as long as this isn't run every time when "make" is run at the
 # top level directory. (po4a isn't super-fast even without --force).
+#
+# Using --porefs file and --msgmerge-opt '--add-location=file' make diffing
+# the .pot and .po files easier. If a translator prefers to have the line
+# numbers available, one may delete those options and rerun this script.
 set -x
 po4a --force --verbose \
+       --porefs file --msgmerge-opt '--add-location=file' \
        --package-name="XZ Utils" \
        --package-version="$PACKAGE_VERSION" \
        --copyright-holder="[See the headers in the input files.]" \