the catalog is called "plasma_applet_"+pluginname

This commit is contained in:
Marco Martin 2011-11-02 14:48:41 +01:00
parent 147df3a274
commit 67ab75c0fd
2 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ bool DeclarativeAppletScript::init()
{
m_declarativeWidget = new Plasma::DeclarativeWidget(applet());
m_declarativeWidget->setInitializationDelayed(true);
KGlobal::locale()->insertCatalog(description().pluginName());
KGlobal::locale()->insertCatalog("plasma_applet_" % description().pluginName());
//make possible to import extensions from the package
//FIXME: probably to be removed, would make possible to use native code from within the package :/

View File

@ -314,7 +314,7 @@ bool SimpleJavaScriptApplet::init()
this, SLOT(extenderItemRestored(Plasma::ExtenderItem*)));
connect(applet(), SIGNAL(activate()),
this, SLOT(activate()));
KGlobal::locale()->insertCatalog(description().pluginName());
KGlobal::locale()->insertCatalog("plasma_applet_" % description().pluginName());
setupObjects();
AppletAuthorization auth(this);