set translation domain for applets

their default translation domain has the same name as the plugin name
(as the catalog in plasma1)
This commit is contained in:
Marco Martin 2014-06-05 13:32:16 +02:00
parent 73bb587ee9
commit d984a60a2d

View File

@ -404,6 +404,7 @@ AppletQuickItem::AppletQuickItem(Plasma::Applet *applet, QQuickItem *parent)
}); });
d->qmlObject = new KDeclarative::QmlObject(this); d->qmlObject = new KDeclarative::QmlObject(this);
d->qmlObject->setTranslationDomain(applet->pluginInfo().pluginName());
d->qmlObject->setInitializationDelayed(true); d->qmlObject->setInitializationDelayed(true);
// set the graphicObject dynamic property on applet // set the graphicObject dynamic property on applet