From kde-core-devel Thu Sep 27 00:28:38 2007 From: "Nhuh Put" Date: Thu, 27 Sep 2007 00:28:38 +0000 To: kde-core-devel Subject: AW: KConfig not reading translated entries Message-Id: <007a01c8009d$595fb890$3301a8c0 () spika> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=119085295125692 > Von: Mauricio Piacentini > Gesendet: Donnerstag, 27. September 2007 02:15 > An: kde-core-devel@kde.org > Betreff: Re: KConfig not reading translated entries > > >>today in kdegames we realized that KConfig seems not to readlocalized > >>entries from .desktop files. > >You are right, when using KConfig::setLocale(), the given locale is > >never passed through to the KConfigBackend. > > 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. KLocale uses KConfig::setLocale internally, so this patch would also fix this. > > Regards, > Mauricio Piacentini > >