reassign 377354 intltool-debian
retitle 377354 Wrong numbering of template fields in po file with rfc822deb
tag 377354 patch
thanks

Thomas Huriaux <[EMAIL PROTECTED]> (08/07/2006):
> Florentin Duneau <[EMAIL PROTECTED]> (08/07/2006):
> > I have a problem with podebconf-display-po (1.0.3 and 1.0.5).
> > 
> > % LANG=C podebconf-display-po fr.po 
> > 
> > Template #1 in /tmp/dD0hQSaLJq has a duplicate field "description" with new
> > value "WARNING! If you are using hard disks which have RAID superblocks from
> > earlier installations in different RAID arrays, you MUST zero each 
> > superblock
> > *before* activating the autostart feature.". Probably two templates are not
> > properly separated by a lone newline.
> > 
> > The template files of versions 1.0.3 and 1.0.5 are the same.
> > 
> > I join the po and the template.
> 
> In your PO file, you have different references for the Description
> msgids, while they should be the same (for example, 1001 and 1002 belong
> to the same description, so they should both be 1001). If there is a
> bug, it concerns intltool-debian as these numbers are generated with
> this package.
> 
> However, I can't reproduce it. Every time I run debconf-updatepo, the
> numbers are corrected. But indeed, there is this problem with planet,
> muse, etc. i.e. different maintainers, so there should be a problem
> somewhere.

Ok, I had an old test package of intltool-debian which had not this bug,
which explains why I couldn't reproduce it.

Denis, please check the attached patch, it is the difference between an
unreleased version of intltool-debian (the one I've tested which was
still on my system) and the one in unstable. This seems to fix the bug
without introducing any new one.

Cheers,

-- 
Thomas Huriaux
--- /usr/share/intltool-debian/intltool-extract 2006-06-25 23:48:16.000000000 
+0200
+++ intltool-extract    2006-07-08 23:47:36.000000000 +0200
@@ -720,8 +720,8 @@
             $comments{$str} .= $tag . $pocomments[$cnt];
             $comments{$str} .= "\nxgettext:no-c-format" if $str =~ /%/;
             push (@{$loc{$str}}, $templateNr);
-            $templateNr++;
         }
+        $templateNr++;
     }
     # Note: this adjustment for $offsetlines is not mandatory within
     # type_rfc822deb but is kept here as an example for other types,

Attachment: signature.asc
Description: Digital signature

Reply via email to