Carlos Perelló Marín
carlos.perello at canonical.com
Tue Nov 29 01:56:51 CST 2005
On Sun, 2005-11-13 at 22:43 +0100, Claude Paroz wrote:
> Le samedi 12 novembre 2005 à 16:05 -0600, David Farning a écrit :
> > One of the remaining problem areas in using rosetta to translate firefox
> > is the fact the moz2po creates an individual .po for each .dtd
> > or .properties file in the mozilla tree. This, as I understand it, is a
> > problem because launchpad uses one .po file per application.
> >
> > I have been looking at the source code of the translation tools (moz2po
> > and po2moz) for the feasibility of creating a single large .po directly
> > form moz2po.
> >
> > Currently moz2po chugs recursively through the mozilla tree looking
> > for .dtd or properties files. When one is found a new file of the same
> > name with with .po appended is created in the po tree.
> >
> > It looks pretty straight forward modify the source to append a chunk to
> > an existing .big.po instead of creating a new file in the output(po)
> > tree.
> >
> > I have not worked very much with rosetta yet. I am wondering if anyone
> > see any obvious short comings to this approach.
> >
> > For example:
> >
> > Will rosetta blow up if a .po file has two matching msgids?
>
> If you use xgettext to merge .po files instead of just appending files,
> you shouldn't obtain two matching msgids.
>
> But I never try to split again the files after translation, it may be a
> problem...
Well, the theory says that if you have the splitted .pot files, it
should not be a problem. You get the big .po file and merge it with
every single .po file and discard the obsolete entries, then you should
be able to get every single .po file.
That's the theory, in the practise, something is lost that po2moz needs
because we are not able to regenerate a .xpi. We need to investigate it
a bit more...
cheers.
>
> Claude
>
--
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/20051129/f41db0a0/attachment.pgp
More information about the rosetta-users
mailing list