[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH] Translation statistics do not include packages with a debian/patches directory



Hello,

The script which generates the l10n statistics pages
(http://www.debian.org/international/l10n/po/rank) excludes the
packages which have a debian/patches directory.

I think this is due to the fact that a patch might update translation,
which would result in wrong statistics for this package.

The amount of packages with such directory increased, and now this
restriction causes about 2/3 of the translations to be not considered.
(The website counts 78897 string in POfiles, while I count more than
200000 on
http://i18n.debian.net/debian-l10n-stats/unstable/year/po-pt.png).

Also, even packages without a debian/patches directory might have
inaccurate statistics (po files not updated in the source package, strings
patched by the Debian diff, etc.)

Given the amount of missing strings this restriction causes, and given
that this doe not garanty neither that the packages listed will have an
accurate status, I would propose to remove the restriction.

With the last policy changes and the "patch" target, I will see if I can
provide more accurate statistics.

Could anybody review and apply the attached patch?

Thanks in advance,
-- 
Nekral
Index: gen-files.pl
===================================================================
RCS file: /cvs/webwml/webwml/english/international/l10n/scripts/gen-files.pl,v
retrieving revision 1.62
diff -u -r1.62 gen-files.pl
--- gen-files.pl	22 Oct 2006 17:09:10 -0000	1.62
+++ gen-files.pl	13 Aug 2008 05:20:31 -0000
@@ -151,10 +151,6 @@
 
         $total{$section} = 0;
         foreach $pkg (sort pkgsort @{$packages}) {
-                if ($data->upstream($pkg) eq 'dbs') {
-                        $none .= "<li>".$pkg." (*)</li>\n";
-                        next;
-                }
                 unless ($data->has_po4a($pkg)) {
                         $none .= "<li>".$pkg."</li>\n";
                         next;
@@ -287,10 +283,6 @@
 
         $total{$section} = 0;
         foreach $pkg (sort pkgsort @{$packages}) {
-                if ($data->upstream($pkg) eq 'dbs') {
-                        $none .= "<li>".$pkg." (*)</li>\n";
-                        next;
-                }
                 unless ($data->has_po($pkg)) {
                         $none .= "<li>".$pkg."</li>\n";
                         next;

Reply to: