use correct translation domain names
This commit is contained in:
parent
8ab91f219d
commit
9c642fd700
@ -404,7 +404,7 @@ AppletQuickItem::AppletQuickItem(Plasma::Applet *applet, QQuickItem *parent)
|
||||
});
|
||||
|
||||
d->qmlObject = new KDeclarative::QmlObject(this);
|
||||
d->qmlObject->setTranslationDomain(applet->pluginInfo().pluginName());
|
||||
d->qmlObject->setTranslationDomain("plasma_applet_" + applet->pluginInfo().pluginName());
|
||||
d->qmlObject->setInitializationDelayed(true);
|
||||
|
||||
// set the graphicObject dynamic property on applet
|
||||
|
@ -88,7 +88,7 @@ void ConfigViewPrivate::init()
|
||||
|
||||
KDeclarative::KDeclarative kdeclarative;
|
||||
kdeclarative.setDeclarativeEngine(q->engine());
|
||||
kdeclarative.setTranslationDomain(applet.data()->pluginInfo().pluginName());
|
||||
kdeclarative.setTranslationDomain("plasma_applet_" + applet.data()->pluginInfo().pluginName());
|
||||
kdeclarative.setupBindings();
|
||||
qmlRegisterType<ConfigModel>("org.kde.plasma.configuration", 2, 0, "ConfigModel");
|
||||
qmlRegisterType<ConfigCategory>("org.kde.plasma.configuration", 2, 0, "ConfigCategory");
|
||||
|
@ -174,7 +174,7 @@ View::View(Plasma::Corona *corona, QWindow *parent)
|
||||
KDeclarative::KDeclarative kdeclarative;
|
||||
kdeclarative.setDeclarativeEngine(engine());
|
||||
//binds things like kconfig and icons
|
||||
kdeclarative.setTranslationDomain(corona->package().metadata().pluginName());
|
||||
kdeclarative.setTranslationDomain("plasma_shell_" + corona->package().metadata().pluginName());
|
||||
kdeclarative.setupBindings();
|
||||
} else {
|
||||
qWarning() << "Invalid home screen package";
|
||||
|
Loading…
Reference in New Issue
Block a user