[SCM] Debian package checker branch, master, updated. 1.24.2-6-g051f191
The following commit has been merged in the master branch:
commit 051f191352cf92586fd768c805dddf54477abb9c
Author: Jordà Polo <jorda@ettin.org>
Date: Fri Jul 18 19:06:39 2008 +0100
Check that po-debconf using packages provide at least one complete translation.
* checks/po-debconf{,.desc}:
+ [ADB] Check that at least one complete translation exists. Thanks Jordà
Polo.
diff --git a/checks/po-debconf b/checks/po-debconf
index fd97f61..371a063 100644
--- a/checks/po-debconf
+++ b/checks/po-debconf
@@ -28,6 +28,8 @@ sub run {
my $pkg = shift;
my $type = shift;
+my $full_translation = 0;
+
# First, check wether this package seems to use debconf but not po-debconf.
# Read the templates file and look at the template names it provides, since
# some shared templates aren't translated.
@@ -155,8 +157,15 @@ while (defined(my $file=readdir(DEBIAN))) {
unless length($charset);
system_env("msgfmt -o /dev/null debfiles/po/$file 2>/dev/null") == 0
or tag "invalid-po-file", "debian/po/$file";
+
+ my $stats = `LANG=C msgfmt -o /dev/null --statistics debfiles/po/$file 2>&1`;
+ if (!$full_translation && $stats =~ m/^\w+ \w+ \w+\.$/) {
+ $full_translation = 1;
+ }
}
+tag "no-complete-translation", "" if !$full_translation;
+
}
1;
diff --git a/checks/po-debconf.desc b/checks/po-debconf.desc
index bd14598..fcca263 100644
--- a/checks/po-debconf.desc
+++ b/checks/po-debconf.desc
@@ -89,3 +89,10 @@ Info: You should not mark as translatable "Default:" or "DefaultChoice:"
.
_Default: English[ Default language name, but not translated]
Ref: po-debconf(7)
+
+Tag: no-complete-translation
+Type: info
+Info: Even though this package provides translation support, there are no
+ translations or none of the translations are complete. This may mean that
+ translators weren't properly warned about new strings.
+Ref: devref 6.5.2.2
diff --git a/debian/changelog b/debian/changelog
index 3bd8891..f70f209 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,9 @@ lintian (1.24.3) unstable; urgency=low
* checks/description:
+ [RA] Don't warn about a synopsis that ends in "etc." Patch from
Chris Lamb. (Closes: #491252)
+ * checks/po-debconf{,.desc}:
+ + [ADB] Check that at least one complete translation exists. Thanks Jordà
+ Polo.
* checks/shared-libs.desc:
+ [ADB] Improve the description of no-symbols-control-file.
--
Debian package checker
Reply to: