Set catalog name for scripted plasmoids

svn path=/trunk/KDE/kdelibs/; revision=974548
This commit is contained in:
Petri Damstén 2009-05-29 16:41:06 +00:00
parent 0b2053400f
commit 9511f6f429

View File

@ -1890,7 +1890,7 @@ Applet *Applet::load(const QString &appletName, uint appletId, const QVariantLis
/* if (offers.count() > 1) {
kDebug() << "hey! we got more than one! let's blindly take the first one";
} */
if (offers.isEmpty()) {
kDebug() << "offers is empty for " << appletName;
return 0;
@ -2271,6 +2271,7 @@ void AppletPrivate::setupScriptSupport()
//FIXME: we should _probably_ use a KComponentData to segregate the applets
// from each other; but I want to get the basics working first :)
KGlobal::dirs()->addResourceDir("locale", translationsPath);
KGlobal::locale()->insertCatalog(package->metadata().pluginName());
}
QString xmlPath = package->filePath("mainconfigxml");