Author: cjwatson
Date: 2006-09-11 19:37:33 +0200 (Mon, 11 Sep 2006)
New Revision: 743

Modified:
   trunk/checks/debconf
   trunk/debian/changelog
Log:
* checks/debconf:
  + [CW] Don't trigger partially-translated-question when Choices-C exists
    but not Description-C.

Modified: trunk/checks/debconf
===================================================================
--- trunk/checks/debconf        2006-09-10 19:01:10 UTC (rev 742)
+++ trunk/checks/debconf        2006-09-11 17:37:33 UTC (rev 743)
@@ -228,7 +228,15 @@
     if (exists $template->{choices}
        && $template->{choices} !~ m/^\s*\$\{\w+\}\s*$/) {
        foreach my $lang (sort keys %languages) {
-           if ($languages{$lang}{choices} and not 
$languages{$lang}{description}) {
+           # Choices-C is special. Normally, when it is present, the only
+           # other Choices* field present will be Choices itself, and there
+           # is not necessarily a Description-C. This is used by code that
+           # wants to substitute into the untranslated choices and also
+           # into all translated choices at once.
+           # TODO: it's reasonable to have a full set of Choices-*, but
+           # only Description-C and Description, for pretty much the same
+           # reason as above. This shouldn't trigger this tag.
+           if ($lang ne 'c' and $languages{$lang}{choices} and not 
$languages{$lang}{description}) {
                tag "partially-translated-question", "$template->{template} 
$lang";
            }
        }

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog      2006-09-10 19:01:10 UTC (rev 742)
+++ trunk/debian/changelog      2006-09-11 17:37:33 UTC (rev 743)
@@ -1,5 +1,8 @@
 lintian (1.23.25) UNRELEASED; urgency=low
 
+  * checks/debconf:
+    + [CW] Don't trigger partially-translated-question when Choices-C exists
+      but not Description-C.
   * checks/scripts:
     + [RA] Add /usr/bin/gosh from the gauche package to the list of valid
       interpreters.  Thanks, Tatsuya Kinoshita.  (Closes: #386798)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to