Merging po files

Jonathan Aquilina eagles051387 at gmail.com
Sat Oct 30 11:09:55 UTC 2010


Redmar

if im not mistaken all translations are usually done upstream. that way you
are helping the particular project as a whole, and not just down stream in
ubuntu.

David feel free to correct me if im wrong on this.

On Sat, Oct 30, 2010 at 1:02 PM, Ask Hjorth Larsen <asklarsen at gmail.com>wrote:

> Hi Redmar
>
> On Sat, Oct 30, 2010 at 12:20 PM, Redmar <redmar at ubuntu-nl.org> wrote:
> > Hello Translators,
> >
> > I have recently translated xscreensaver to Dutch in Launchpad and would
> > like to submit my translations upstream. The upstream version of
> > xscreensaver contains more strings than the one in Launchpad, and is
> > partly translated.
> > What I would like to do is the following: Merge the Launchpad (shorter)
> > po file into the upstream po file, such that translations form the
> > Launchpad po file ALWAYS replace translations done in the upstream po
> > file.
> >
> > I found on the web that 'msgcat' should be able to do this, but after
> > reading the man and experimenting I have not been able to make this
> > happen.
> >
> > msgcat from_LaunchPad.po upstream.po -o output.po --use-first
> >
> > does use the translations from LP over those upstream, but the
> > resulting .po file has ~1000 extra strings compared to the bigger input
> > file.
> >
> >
> > If someone could tell me how I can combine these two po files I would be
> > very happy.
> >
> > Greetings,
> > Redmar
> >
> > --
> > Ubuntu Dutch Translators
>
> Try:
>
>  msgmerge from_LaunchPad.po upstream.po -o output.po
>
> msgmerge takes translations from one file and combines them with the
> english messages in the other.  I have sometimes seen that also this
> produces files with too many messages in them (which I don't
> understand), but after msgmerging a second time into the newly created
> one, it had only those strings it was supposed to (now that I mention
> it, if anyone knows why that happens, please do chime in).
>
> Regards
> Ask
>
> --
> ubuntu-translators mailing list
> ubuntu-translators at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-translators
>



-- 
Jonathan Aquilina
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-translators/attachments/20101030/9926e007/attachment.html>


More information about the ubuntu-translators mailing list