insert a catalog named as the plugin name

This commit is contained in:
Marco Martin 2011-07-11 21:23:32 +02:00
parent b30f688938
commit 1d5ec8c2e0
2 changed files with 3 additions and 0 deletions

View File

@ -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);
} }

View File

@ -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);