Subject: po-debconf: Please add the package name in POT headers Package: po-debconf Version: 1.0.16+nmu1 Severity: wishlist Tags: patch l10n X-Debbugs-Cc: debian-i18n@lists.debian.org Le 10/04/2011 04:29, Andrei Popescu a écrit : > On Du, 10 apr 11, 09:40:11, Slavko wrote: >> >> I have one question about this (but perhaps i am wrong - i know very >> small about debconf's POT generation process) - is it possible change >> template generation (update) to include: >> >> "Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER" >> "Project-Id-Version: PACKAGE VERSION" >> ... etc > > And "This file is distributed under the same terms as the package > PACKAGE" ;) This one should be filled against gettext. >> filled with proper package name and version? > > I doubt it's not possible, but someone has to code it ;) Here is a proposed patch about this issue. Regards David
--- /tmp/debconf-updatepo-orig 2011-04-10 08:27:08.000000000 -0400
+++ /usr/bin/debconf-updatepo 2011-04-10 08:51:32.087324227 -0400
@@ -113,17 +113,20 @@
[ -f debian.pot ] && domain=debian
if [ -z "$skip_pot" ]; then
- if [ -z "$msgid_bugs_address" ] && [ -r "../control" ]; then
+ if [ -r "../control" ]; then
source_package=$(LC_ALL=C grep "^Source:" ../control |
sed -e 's/.*:\s\+//' -e 1q)
+ fi
+ if [ -z "$msgid_bugs_address" ]; then
if [ -n "$source_package" ]; then
msgid_bugs_address="$source_package@packages.debian.org"
+ package_name="$source_package"
export XGETTEXT_ARGS
fi
fi
if [ -n "$msgid_bugs_address" ]; then
# intltool-update accepts XGETTEXT_ARGS since intltool-debian 0.34.1
- XGETTEXT_ARGS="--msgid-bugs-address=\"$msgid_bugs_address\""
+ XGETTEXT_ARGS="--msgid-bugs-address=\"$msgid_bugs_address\" --package-name=\"$source_package\""
export XGETTEXT_ARGS
fi
"$PODEBCONF_LIB/intltool-update" $verbose --gettext-package=$domain --pot || exit 1
Attachment:
signature.asc
Description: OpenPGP digital signature