Package: po-debconf Version: 0.9.2 Severity: minor Tags: patch Hi,
Please find attached a patch to add support for Title templates. You may want to test it on existing packages. The one that makes me find this problem is "dibbler". Cheers, -- Thomas Huriaux
--- podebconf-display-po.orig 2006-02-27 13:47:03.000000000 +0100 +++ podebconf-display-po 2006-02-27 14:59:53.000000000 +0100 @@ -139,8 +139,11 @@ push (@tempfiles, $template); $SIG{INT} = sub { unlink (@tempfiles); exit(1); }; +my $titles = {}; + for my $file (keys %$fields) { for (sort { $a <=> $b } keys %{$fields->{$file}}) { + $titles->{$count} = 1 if ($fields->{$file}->{$_}->{type} =~ m/title/); print $fh "Template: foo/bar$count\n" if $new; if ($fields->{$file}->{$_}->{field} eq 'Description') { print $fh "Type: ". @@ -217,6 +220,12 @@ while (1) { $_="RESET foo/bar$cnt\n"; my $ret=$dc_confmodule->process_command($_); + if ($titles->{$cnt}) { + $_="SETTITLE foo/bar$cnt\n"; + $ret=$dc_confmodule->process_command($_); + $cnt++; + next; + } $_="SUBST foo/bar$cnt dollarsign \$\n"; $ret=$dc_confmodule->process_command($_); $_="INPUT high foo/bar$cnt\n";
signature.asc
Description: Digital signature