[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: KConfig not reading translated entries
From:       Tobias Koenig <tokoe () kde ! org>
Date:       2007-09-26 23:24:36
Message-ID: 20070926232436.GA3820 () ghostdog ! localnet
[Download RAW message or body]

[Attachment #2 (multipart/mixed)]


On Thu, Sep 27, 2007 at 12:01:41AM +0200, Albert Astals Cid wrote:
> Hi,
Hi Albert,

> today in kdegames we realized that KConfig seems not to read localized 
> entries from .desktop files.
You are right, when using KConfig::setLocale(), the given locale is
never passed through to the KConfigBackend.

Attached is a patch which fixes it. Ok for commit?

Ciao,
Tobias
-- 
Separate politics from religion and economy!
The Council of the European Union is an undemocratic and illegal institution!

["kdecore_kconfig_locale.patch" (text/x-diff)]

Index: config/kconfig.cpp
===================================================================
--- config/kconfig.cpp	(Revision 716773)
+++ config/kconfig.cpp	(Arbeitskopie)
@@ -467,6 +467,10 @@
 {
     if (locale != d->locale) {
         d->locale = locale;
+
+        if (backEnd())
+            backEnd()->setLocaleString(locale.toLatin1());
+
         reparseConfiguration();
         return true;
     }

["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic