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

List:       kde-panel-devel
Subject:    Re: Translating scripted applets
From:       "Aaron J. Seigo" <aseigo () kde ! org>
Date:       2009-05-29 16:18:21
Message-ID: 200905291018.22102.aseigo () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Thursday 28 May 2009, Petri Damstén wrote:
> Hi,
>
> Continuing testing python applets and trying to get translations working. I
> tried contents/locale/fi/LC_MESSAGES/pluginname.mo but it didn't work
> before I added following code. Is this correct fix or should I use
> something else for po file names?

crap, no, you are correct. if we add the locale dir, we also need to tell it 
about the catalog name. my bad. (i'm still learning this whole i18n business 
:)

>          KGlobal::dirs()->addResourceDir("locale", translationsPath);
> +       
> KGlobal::locale()->insertCatalog(package->metadata().pluginName()); }
>
>      QString xmlPath = package->filePath("mainconfigxml");


-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Software


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

_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


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

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