David Fraser davidf at sjsoft.com
Tue Nov 29 02:27:54 CST 2005


Carlos Perelló Marín wrote:

>On Sat, 2005-11-12 at 16:05 -0600, David Farning wrote:
>  
>
>>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?
>>    
>>
>
>Yes, that's an invalid .po file, a single .po file must not have the
>same msgid more than once.
>
>That's why in our tests we used msgmerge to handle those duplicates.
>  
>
translate toolkit can support using KDE msgid comments (_: in the msgid) 
to differentiate duplicates if required. Does rosetta support this?

I would recommend using the original files rather than trying to merge 
them into one big PO file, is there a way to do this on Rosetta?

David



More information about the rosetta-users mailing list