[Kbabel] Full Gettext support in KBabel

Stanislav Visnovsky visnovsky at kde.org
Mon Oct 24 09:30:03 CEST 2005


Dňa Sobota 22 Október 2005 19:58 Nicolas Goutte napísal:
> 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.

Sure. But we can for KDE 4.0, because there we don't need the clause AFAICS.

Stano


More information about the kbabel mailing list