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

List:       kde-i18n-doc
Subject:    Re: How to create folder in trunk/l10n-kde4
From:       Thomas Reitelbach <tr () erdfunkstelle ! de>
Date:       2007-08-04 22:48:58
Message-ID: 200708050049.02645.tr () erdfunkstelle ! de
[Download RAW message or body]


On Samstag, 4. August 2007, Rinse de Vries wrote:
> Op maandag 07 mei 2007, schreef Stephan Kulow:
> > Am Samstag, 5. Mai 2007 20:38 schrieb Chusslove Illich:
> > > > [: Eduard Werner :]
> > > > I want to move the translations for Upper Sorbian to trunk/l10n-kde4.
> > > > There is no folder hsb there, however. How do I proceed?
> > >
> > > You want to put there translations from branches/stable/l10n? In that
> > > case, you can just copy them from stable branch and erase svn
> > > internals:
> > >
> > > cd $KDESVN
> > > cp -r branches/stable/l10n/hsb trunk/l10n-kde4/
> > > find trunk/l10n-kde4/hsb -iname '.svn' | xargs rm -rf
> > >
> > > then convert to KDE4 format:
> > >
> > > svn up trunk/l10n-kde4/scripts
> > > cd trunk/l10n-kde4/hsb/messages
> > > ../../scripts/conversion/kdepo2std.pl kdelibs/kdelibs.po
> > >
> > > and finally add everything to the repository:
> > >
> > > cd ../..
> > > svn add hsb
> > > svn commit hsb -m "Converted from KDE3."
> > >
> > > I did all these steps on my machine but the final svn commit, so I can
> > > commit if you want.
> > >
> > > Also, I'm a bit puzzled about the plural setting. That message in your
> > > kdelibs.po which determines plural (used in KDE3) is set to Slovenian,
> > > but the plural header itself (which is used in KDE4) is not matching
> > > the Slovenian one. Which one is correct?
> >
> > In case someone else reads this in the archive: there is
> > scripts/conversion/convert_language that takes the path to your stable
> > checkout and the language code
>
> I tried this script on the fy tree, but it fails (complains that it can't
> create the directory 'messages'.
>
> So i tried to use this script: kdepo2std.pl, and that worked for all files,
> except the desktop-files. To convert those, i tried the script
> kde3_desktop_convert.pl like this:
>
> kde3_desktop_convert.pl desktop_kdelibs.po > desktop_kdelibs4.po
>
> This resulted into 3 errors in the file:
>
> 1 - all special characters got corrupted, even if i set utf-8 in konsole
> 2 - msgctxt and  msgid  are placed on the same line, resulting in kbabel
> unable to parse the file 3 - not all strings are converted.
>
> Can someone explain how i can convert the desktop files succesfully?

This is what Stephan Kulow wrote some days ago on the german list how to do it 
manually:
msgcat --no-wrap in.po | perl kde3_convert_desktop.pl | msgcat - -o out.po

of course this can be combined with a "find" and a "for foo do" loop.

Cheers,
Thomas

["signature.asc" (application/pgp-signature)]

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

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