KConfig not reading translated entries
Albert Astals Cid
aacid at kde.org
Thu Sep 27 21:06:14 BST 2007
A Dijous 27 Setembre 2007, Mauricio Piacentini va escriure:
> >Just to complement, while the example that Albert posted uses
> >setLocale() explicitally, the bug can also be reproduced without it.
>
> In >other words, unstranslated strings would be returned as well when
>
> >KDE_LANG is set for example. Not sure if the patch attached covers
>
> this >case as well.
>
> After a whole morning of debugging and the patch committed earliear
> today, the case where the client application calls
>
> configobj->setLocale("x-test")
>
> works. However, if I do
>
> KDE_LANG=xtest testapp
>
> Then en_US is assumed to be the locale, and no translated test returns.
> I could not find a way to make .desktop files return translated entries
> that respect KDE_LANG.
Reason one, it should be KDE_LANG=x-test testapp
Reason two, there is no test.mo in $KDEDIR/share/locale/x-test/LC_MESSAGES/
Doing that makes it work here :-)
Albert
>
> Regards,
> Mauricio Piacentini
More information about the kde-core-devel
mailing list