restore translations for settings window

BUG: 406114
pull/5/head
Michail Vourlakos 6 years ago
parent 4048edc7f9
commit 86a7eddba5

@ -81,6 +81,8 @@ void InfoView::init()
KDeclarative::KDeclarative kdeclarative;
kdeclarative.setDeclarativeEngine(engine());
kdeclarative.setTranslationDomain(QStringLiteral("latte-dock"));
kdeclarative.setupContext();
kdeclarative.setupEngine(engine());
// kdeclarative.setupBindings();
auto source = QUrl::fromLocalFile(m_corona->kPackage().filePath("infoviewui"));
setSource(source);

@ -152,6 +152,8 @@ void PrimaryConfigView::init()
KDeclarative::KDeclarative kdeclarative;
kdeclarative.setDeclarativeEngine(engine());
kdeclarative.setTranslationDomain(QStringLiteral("latte-dock"));
kdeclarative.setupContext();
kdeclarative.setupEngine(engine());
//kdeclarative.setupBindings();
QByteArray tempFilePath = "lattedockconfigurationui";

@ -121,6 +121,8 @@ void SecondaryConfigView::init()
KDeclarative::KDeclarative kdeclarative;
kdeclarative.setDeclarativeEngine(engine());
kdeclarative.setTranslationDomain(QStringLiteral("latte-dock"));
kdeclarative.setupContext();
kdeclarative.setupEngine(engine());
//kdeclarative.setupBindings();
QByteArray tempFilePath = "lattedocksecondaryconfigurationui";

Loading…
Cancel
Save