use correct translation domain names

This commit is contained in:
Marco Martin 2014-06-06 14:41:21 +02:00
parent 8ab91f219d
commit 9c642fd700
3 changed files with 3 additions and 3 deletions

View File

@ -404,7 +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->setTranslationDomain("plasma_applet_" + 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

View File

@ -88,7 +88,7 @@ void ConfigViewPrivate::init()
KDeclarative::KDeclarative kdeclarative; KDeclarative::KDeclarative kdeclarative;
kdeclarative.setDeclarativeEngine(q->engine()); kdeclarative.setDeclarativeEngine(q->engine());
kdeclarative.setTranslationDomain(applet.data()->pluginInfo().pluginName()); kdeclarative.setTranslationDomain("plasma_applet_" + applet.data()->pluginInfo().pluginName());
kdeclarative.setupBindings(); kdeclarative.setupBindings();
qmlRegisterType<ConfigModel>("org.kde.plasma.configuration", 2, 0, "ConfigModel"); qmlRegisterType<ConfigModel>("org.kde.plasma.configuration", 2, 0, "ConfigModel");
qmlRegisterType<ConfigCategory>("org.kde.plasma.configuration", 2, 0, "ConfigCategory"); qmlRegisterType<ConfigCategory>("org.kde.plasma.configuration", 2, 0, "ConfigCategory");

View File

@ -174,7 +174,7 @@ View::View(Plasma::Corona *corona, QWindow *parent)
KDeclarative::KDeclarative kdeclarative; KDeclarative::KDeclarative kdeclarative;
kdeclarative.setDeclarativeEngine(engine()); kdeclarative.setDeclarativeEngine(engine());
//binds things like kconfig and icons //binds things like kconfig and icons
kdeclarative.setTranslationDomain(corona->package().metadata().pluginName()); kdeclarative.setTranslationDomain("plasma_shell_" + corona->package().metadata().pluginName());
kdeclarative.setupBindings(); kdeclarative.setupBindings();
} else { } else {
qWarning() << "Invalid home screen package"; qWarning() << "Invalid home screen package";