the catalog is called "plasma_applet_"+pluginname
This commit is contained in:
parent
147df3a274
commit
67ab75c0fd
@ -82,7 +82,7 @@ bool DeclarativeAppletScript::init()
|
|||||||
{
|
{
|
||||||
m_declarativeWidget = new Plasma::DeclarativeWidget(applet());
|
m_declarativeWidget = new Plasma::DeclarativeWidget(applet());
|
||||||
m_declarativeWidget->setInitializationDelayed(true);
|
m_declarativeWidget->setInitializationDelayed(true);
|
||||||
KGlobal::locale()->insertCatalog(description().pluginName());
|
KGlobal::locale()->insertCatalog("plasma_applet_" % description().pluginName());
|
||||||
|
|
||||||
//make possible to import extensions from the package
|
//make possible to import extensions from the package
|
||||||
//FIXME: probably to be removed, would make possible to use native code from within the package :/
|
//FIXME: probably to be removed, would make possible to use native code from within the package :/
|
||||||
|
@ -314,7 +314,7 @@ bool SimpleJavaScriptApplet::init()
|
|||||||
this, SLOT(extenderItemRestored(Plasma::ExtenderItem*)));
|
this, SLOT(extenderItemRestored(Plasma::ExtenderItem*)));
|
||||||
connect(applet(), SIGNAL(activate()),
|
connect(applet(), SIGNAL(activate()),
|
||||||
this, SLOT(activate()));
|
this, SLOT(activate()));
|
||||||
KGlobal::locale()->insertCatalog(description().pluginName());
|
KGlobal::locale()->insertCatalog("plasma_applet_" % description().pluginName());
|
||||||
setupObjects();
|
setupObjects();
|
||||||
|
|
||||||
AppletAuthorization auth(this);
|
AppletAuthorization auth(this);
|
||||||
|
Loading…
Reference in New Issue
Block a user