From: Lasse Collin Date: Tue, 28 May 2024 10:25:07 +0000 (+0300) Subject: Translations: Use --package-name=xz-man with po4a X-Git-Tag: v5.2.13~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af667d7f499a69adf9fbee02db9a20cb0feb2b24;p=thirdparty%2Fxz.git Translations: Use --package-name=xz-man with po4a This is to match reality. See the added comment. (cherry picked from commit 75f5f2e014b0ee646963f36bc6a9c840fb272353) --- diff --git a/po4a/update-po b/po4a/update-po index a9d75ec3..689c7602 100755 --- a/po4a/update-po +++ b/po4a/update-po @@ -41,10 +41,17 @@ PACKAGE_VERSION=`cd .. && sh build-aux/version.sh` || exit 1 # 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. +# +# The values from --package-name and --package-version are used to create +# the Project-Id-Version field. It likely makes sense that its value isn't +# identical to the value in the program message translations. In practice +# it seems that the .po files from many (but not all) translators will use +# "xz-man" no matter what is specified here and in xz-man.pot. Thus it's +# best to use "xz-man" here to get the most consistent results. set -x po4a --force --verbose \ --porefs file --msgmerge-opt '--add-location=file' \ - --package-name="XZ Utils" \ + --package-name="xz-man" \ --package-version="$PACKAGE_VERSION" \ --copyright-holder="[See the headers in the input files.]" \ po4a.conf