1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-27 06:03:51 +03:00

restore translations for settings window

BUG: 406114
This commit is contained in:
Michail Vourlakos 2019-04-10 02:09:25 +03:00
parent 4048edc7f9
commit 86a7eddba5
3 changed files with 6 additions and 0 deletions

View File

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

View File

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

View File

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