kscd i18n bug, outdated documentation

Aurélien Gâteau agateau at kde.org
Thu Jun 18 09:21:31 BST 2009

Burkhard Lück wrote:
> Am Montag 16 März 2009 12:20:53 schrieb Burkhard Lück:
>> Hello list,
>> with the new version of kscd written by Mohamed-Amine Bouchikhi,
>> there is a i18n bug in kscd, please have a look at
>> https://bugs.kde.org/show_bug.cgi?id=186867.
>> Any idea how to fix this and make the button tooltips translatable?
> attached patch fixes the untranslatable tooltips.
> Improvements?
> Objections to commit?

I have not tried the patch, but I have a question: are the buttons
sometimes instantiated with different labels? In this case, are those
labels already using i18n? That is, do you have this somewhere:

  new CloseButton(parent, i18n("Foo"));

or this:

  new CloseButton(parent, "Foo");

If you have the first one, then your patch is wrong because you will
call i18n() on the translated text.

If you have the second one, your patch is ok, but this looks fragile
since class users have to remember *not to* call i18n().

If the code never changes the text, I suggest to get rid of the
parameter and hard-code the text inside the constructor.

>> The kscd documentation is outdated and does not apply to the current kscd
>> GUI.
>> As far I can see it is also no longer possible to open the cdbd database
>> edit dialog from the recent kscd?
>> So I suggest to remove the useless documentation and move the part about
>> CDDB Retrieval to kde-multimedia/doc/kcontrol and use it as help for the
>> kontrol module libkcddb.
>> What do you think?

Haven't read the doc, but it's better to have no doc than outdated doc.


More information about the kde-multimedia mailing list