i18n bug?

David Faure faure at kde.org
Mon Jul 11 19:57:13 BST 2005

On Monday 11 July 2005 20:07, Nicolas Goutte wrote:
> On Monday 11 July 2005 16:03, David Faure wrote:
> > So I can't fix this: we need gettext and the i18n code to use the exact
> > same hash function, so as long as gettext-0.10.35-kde is the official KDE
> > gettext, libintl.cpp shouldn't change, and you shouldn't use another
> > version of gettext (even when no plural forms are involved).
> I suppose that the gettext's runtime has the same problem and somehow handles it

I haven't tested the old gettext runtime with the new .mo file, but I'm quite sure
that it would have the same bug as KDE's runtime.

> Probably it knows that the hashes of the minor version 0 must be 
> discarded. So perhaps for KDE 3.5, we could use it the other way round: check 
> if it is not minor version 0 and skip the hashes.

AFAICS there is no version number difference between the two versions.
(The minor version 1 is used for something else; in my case I got revision==0
from both gettext tools).

One should really remember that this isn't the only difference between the two gettexts:
we also have a kde-specific patch for plural handling, so even if "fixing" this hash string 
thingie was possible, it wouldn't really allow using gettext-0.14.1 with kde at the moment.
So in fact I wonder why I bothered debugging this ;)

On Monday 11 July 2005 19:52, Nicolas Goutte wrote:
> Somewhen 0.10.x will not be distributed anymore and you cannot ask translators 
> to download and compile something or you would get even less volunteers than 
> today.

Well, KDE translators don't need gettext-0.10-kde, except for real-time testing of translations.

Albert: apart from that, it really doesn't matter that most distributions don't ship gettext-kde.
KDE release tarballs of kde-l10n ship already-compiled .gmo files, so that it doesn't matter
which version of gettext users or distributors have.

So for KDE3 we stay where we are, but for KDE4 we might want to look into using
the new gettext plural handling, if it matches KDE's needs (IIRC coolo said it didn't,
but IIRC he also plans to talk to the gettext guys ;)

David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).

More information about the kde-core-devel mailing list