[Kbabel] Full Gettext support in KBabel

Nicolas Goutte nicolasg at snafu.de
Sat Oct 22 19:58:38 CEST 2005


On Saturday 22 October 2005 10:37, Stanislav Visnovsky wrote:
> Dňa Pi 21. Október 2005 19:05 Nicolas Goutte napísal:
> > On Thursday 20 October 2005 22:30, Nicolas Goutte wrote:
> > > On Thursday 20 October 2005 22:10, Chusslove Illich wrote:
> > > > >> [: Chusslove Illich :]
> > > > >> To keep 3.5 KBabel in the game, we could have a script which
> > > > >> converts standard Gettext POT to KDE's current custom POT for
> > > > >> mergings and translations, and then the translated custom PO back
> > > > >> to standard PO for installation.
> > > > >
> > > > > [: Nicolas Goutte :]
> > > > > You have still a problem.
> > > > >
> > > > > A third party application made for KDE 4.0 which you try to compile
> > > > > on KDE 4.1. How would you handle the PO files?
> > > >
> > > > I don't quite understand. From the point of view of KDE 4.0,
> > > > everything should be standard Gettext, PO and .mo files included. It
> > > > is just a makeshift for the translators using 3.5 KBabel, this script
> > > > stuff.
> > >
> > > Okay, to avoid further misunderstanding: you mean that in KDE4's l10n
> > > module all will be in today's Gettext format (with Gettext context and
> > > Gettext plural).
> > >
> > > But then you are breaking KBabel's catalog manager, as you could not
> > > update and commit directly anymore.
> >
> > Worse: the catalog manager will consider all fies as corrupt, as the old
> > msgfmt will not work with such files.
> >
> > (In the meanwhile I think that it is the biggest priority. That
> > particular msgfmt call should go. Now I would like to understand why it
> > is here at first.(Still assuming that I have read correctly the code.))
>
> IIRC the call there is to get the syntax errors identified quickly, because
> the parser used by catalog manager is not fault-tolerant.
>

> A way to go is to use libgettext there.

We cannot do it in KDE 3.5 however (or at least not so easily):
- Qt exception to the GPL license (that Gettext does not have).
- for KDE 3.5(.0) it would be a pretty big change.

>
> Stano
>
> > > (Any way, such a script form KDE 3.5 to KDE4 is needed, at least once
> > > for converting the l10n module.)
> > >
> > > (...)
> > >
> > > Have  a nice day!
> > >
> > > _______________________________________________
> > > kbabel mailing list
> > > kbabel at kde.org
> > > https://mail.kde.org/mailman/listinfo/kbabel
> >
> > _______________________________________________
> > kbabel mailing list
> > kbabel at kde.org
> > https://mail.kde.org/mailman/listinfo/kbabel



More information about the kbabel mailing list