bugs in po's created with xml2po

Carlos Perelló Marín carlos.perello at canonical.com
Mon Dec 19 13:13:19 GMT 2005


On Mon, 2005-12-12 at 10:03 +0100, Jordi Mallach wrote:
> Hey Matthew!
> 
> On Sun, Dec 11, 2005 at 08:39:05PM +0000, Matthew East wrote:
> > 1. Some problems caused by the presence of inverted commas in tags (e.g.
> > <ulink url="http://blah.com"> combined the the inverted commas used by
> > the po to separate each line of the msgstr. xml2po didn't like this and
> > spit it out. The following msgid is an example of a problem:
> > 
> > #: faqguide.xml:840(para)
> > msgid ""
> > "Currently there is no legal way to play DVDs on Linux using free
> > packages. "
> > "To enable DVD playback, read DVD-video at <ulink "
> > "url=\"https://wiki.ubuntu.com"
> > "/RestrictedFormats\">https://wiki.ubuntu.com/RestrictedFormats</ulink>"
> > msgstr ""
> > "Atualmente não existe meio legal para se tocar DVDs no Linux
> > utilizando"
> > "pacotes livres. Para habilitar o suporte a DVD, leia DVD-video em
> > <ulink "
> > "url=\""
> > "https://wiki.ubuntu.com/RestrictedFormats
> > \">https://wiki.ubuntu.com/Rest"
> > "rictedFormats</ulink>"
> > 
> > I had to amend these manually so that any instance of the double
> > inverted commas came at the beginning of the line instead of the end.
> 
> This looks like a rosetta bug to me. The content of that msgset is
> completely valid, I think, so it's probably Rosetta's parser.

I need to debug it a bit to be sure, please, could you file a bug
report?

> 
> > 2. Duplicate msgid's. xml2po gave fatal errors when it found duplicate
> > msgid's: many of the po's contained msgid's at the end which appeared to
> > be commented out like this:
> > #: faqguide.xml:5581(screen)
> > #, no-wrap
> > #~ msgid ""
> > #~ "wget -c http://frankandjacq.com/ubuntuguide/mozilla-thunderbird.xpm
> > \n"
> > #~ "chmod 644 mozilla-thunderbird.xpm\n"
> > 
> > etc.
> 
> Do these exist when exporting a file from Rosetta, or when xml2po
> generates the po? If the former, it's Rosetta's fault as it's generating
> invalid files. Likewise, if it's xml2po.

This bug is a know Rosetta bug:
https://launchpad.net/products/rosetta/+bug/2621

As a workaround, just remove the obsolete entries and you will get a
valid .po file.

> 
> > Let me know if I need to file these, or if they are filed already, or if
> > they are not rosetta bugs!!
> 
> Carlos will be able to give more accurate info, at least on #1.

Cheers.

> 
> Thanks for the notice!
> Jordi
> -- 
> rosetta-users mailing list
> rosetta-users at lists.ubuntu.com
> http://lists.ubuntu.com/mailman/listinfo/rosetta-users
> Learn more about Rosetta: https://wiki.ubuntu.com/Rosetta
-- 
Carlos Perelló Marín
Ubuntu => http://www.ubuntu.com
mailto:carlos.perello at canonical.com
http://carlos.pemas.net
Valencia - Spain
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.ubuntu.com/archives/rosetta-users/attachments/20051219/aca64cee/attachment.pgp


More information about the rosetta-users mailing list