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

@ -2271,6 +2271,7 @@ void AppletPrivate::setupScriptSupport()
//FIXME: we should _probably_ use a KComponentData to segregate the applets //FIXME: we should _probably_ use a KComponentData to segregate the applets
// from each other; but I want to get the basics working first :) // from each other; but I want to get the basics working first :)
KGlobal::dirs()->addResourceDir("locale", translationsPath); KGlobal::dirs()->addResourceDir("locale", translationsPath);
KGlobal::locale()->insertCatalog(package->metadata().pluginName());
} }
QString xmlPath = package->filePath("mainconfigxml"); QString xmlPath = package->filePath("mainconfigxml");