forked from qt-creator/qt-creator
qmlpuppet: call engine()->setUiLanguage
so qml components can react on it Change-Id: I31dc46fabeef0936accd23ed22cbebfe2cd8663c Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
committed by
Thomas Hartmann
parent
e106fd0090
commit
59488d9606
@@ -1343,6 +1343,8 @@ void NodeInstanceServer::loadDummyContextObjectFile(const QFileInfo& qmlFileInfo
|
|||||||
|
|
||||||
void NodeInstanceServer::setTranslationLanguage(const QString &language)
|
void NodeInstanceServer::setTranslationLanguage(const QString &language)
|
||||||
{
|
{
|
||||||
|
// if there exists an /i18n directory it sets default translators
|
||||||
|
engine()->setUiLanguage(language);
|
||||||
static QPointer<MultiLanguage::Translator> multilanguageTranslator;
|
static QPointer<MultiLanguage::Translator> multilanguageTranslator;
|
||||||
if (!MultiLanguage::databaseFilePath().isEmpty()) {
|
if (!MultiLanguage::databaseFilePath().isEmpty()) {
|
||||||
if (!multilanguageLink) {
|
if (!multilanguageLink) {
|
||||||
|
Reference in New Issue
Block a user