insert a catalog named as the plugin name
This commit is contained in:
parent
b30f688938
commit
1d5ec8c2e0
@ -70,6 +70,7 @@ DeclarativeAppletScript::DeclarativeAppletScript(QObject *parent, const QVariant
|
|||||||
m_env(0),
|
m_env(0),
|
||||||
m_auth(this)
|
m_auth(this)
|
||||||
{
|
{
|
||||||
|
KGlobal::locale()->insertCatalog(description().pluginName());
|
||||||
Q_UNUSED(args);
|
Q_UNUSED(args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -105,6 +105,8 @@ SimpleJavaScriptApplet::SimpleJavaScriptApplet(QObject *parent, const QVariantLi
|
|||||||
Q_UNUSED(args);
|
Q_UNUSED(args);
|
||||||
// kDebug() << "Script applet launched, args" << applet()->startupArguments();
|
// kDebug() << "Script applet launched, args" << applet()->startupArguments();
|
||||||
|
|
||||||
|
KGlobal::locale()->insertCatalog(description().pluginName());
|
||||||
|
|
||||||
// TODO this will be set to the engine we get from QML
|
// TODO this will be set to the engine we get from QML
|
||||||
m_engine = new QScriptEngine(this);
|
m_engine = new QScriptEngine(this);
|
||||||
m_env = new ScriptEnv(this, m_engine);
|
m_env = new ScriptEnv(this, m_engine);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user