[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-i18n-doc
Subject:    Re: .po file tidy up tools
From:       Nicolas Goutte <nicolasg () snafu ! de>
Date:       2005-07-20 20:20:17
Message-ID: 200507202220.17202.nicolasg () snafu ! de
[Download RAW message or body]

On Monday 18 July 2005 10:50, Sharuzzaman Ahmat Raslan wrote:
> Hello Nicolas,
>
> Thank you for your suggestion. I successfully used the script together with
> Stephan Kulow suggestion to use msgmerge.

You only need to run msgplit, you do not need to run additionaly msgmerge 
before.

>
> The result is excellent, and I manage to reduce the difference between the
> version.
>
(...)
>
> Thanks again.
>
> -----Original Message-----
> From: Nicolas Goutte <nicolasg@snafu.de>
> To: sharuzzaman@myrealbox.com, KDE i18n-doc <kde-i18n-doc@kde.org>
> Date: Sat, 16 Jul 2005 15:12:32 +0200
> Subject: Re: .po file tidy up tools
>
> On Thursday 14 July 2005 07:40, Sharuzzaman Ahmat Raslan wrote:
> > Hello,
> >
> > I'm translating KDE using poEdit. I noticed that the resulting output of
> > PO file generated by poEdit is not following the "standard" KDE format.
> > This cause the diff between my commit and scripty cleanup commit to be
> > very big. You can see the diff here:
> > http://websvn.kde.org/trunk/l10n/ms/messages/kdebase/desktop_kdebase.po?r
> >ev =434239&r1=434152&r2=434239
> >
> > Actually, I don't have to bother about the space usage in KDE SVN server,
> > but the way it works now is really beats the purpose of versioning system
> > at the first place.
>
> I have not looked at the diff, but mostly the problem is that the wrapping
> column is different (or that no wrapping is used).
>
> > Is there any tool that I can use to clean up the PO file generated by
> > poEdit, to make sure that it only contain the real changes before I
> > commit the changes back to SVN? maybe scripty itself?
>
> You can use l10n/scripts/msgsplit
>
> It is a Python tool and the parameter is the file to be split (The file is
> overwritten.)
>
> python l10n/scripts/msgsplit yourfile.po
>
> This is the script with which Script wraps the PO files. (The difference
> compared to the output of a Gettext tool, is that it tries not to split XML
> tags, to be more user-readable.)
>
> > Input on this matter is greatly appreciated.
>
> Have a nice day!
>
> > Thanks.
> >
> >
> > ------------------------
> > Sharuzzaman Ahmat Raslan
>
> ------------------------
> Sharuzzaman Ahmat Raslan

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic