diff --git a/LeftPanel.qml b/LeftPanel.qml
index e23d353c..6e067d03 100644
--- a/LeftPanel.qml
+++ b/LeftPanel.qml
@@ -100,7 +100,7 @@ Rectangle {
spacing: 6
Label {
- text: qsTr("Balance")
+ text: qsTr("Balance") + translationManager.emptyString
anchors.left: parent.left
anchors.leftMargin: 50
tipText: qsTr("Test tip 1
line 2")
diff --git a/main.qml b/main.qml
index b55ace8c..7316fc56 100644
--- a/main.qml
+++ b/main.qml
@@ -125,8 +125,16 @@ ApplicationWindow {
function initialize() {
console.log("initializing..")
+
+ // setup language
+ var locale = persistentSettings.locale
+ if (locale !== "") {
+ translationManager.setLanguage(locale.split("_")[0]);
+ }
+
middlePanel.paymentClicked.connect(handlePayment);
+
if (typeof wizard.settings['wallet'] !== 'undefined') {
wallet = wizard.settings['wallet'];
} else {
@@ -262,6 +270,7 @@ ApplicationWindow {
Settings {
id: persistentSettings
property string language
+ property string locale
property string account_name
property string wallet_path
property bool auto_donations_enabled : true
diff --git a/translations/monero-core_de.ts b/translations/monero-core_de.ts
index 53c8bef3..f2c59688 100644
--- a/translations/monero-core_de.ts
+++ b/translations/monero-core_de.ts
@@ -582,7 +582,7 @@
-
+
@@ -666,13 +666,12 @@
WizardWelcome
-
-
+
-
+
@@ -680,75 +679,75 @@
main
-
-
-
+
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
diff --git a/translations/monero-core_en.ts b/translations/monero-core_en.ts
index 957bfdd0..f8f7b3ea 100644
--- a/translations/monero-core_en.ts
+++ b/translations/monero-core_en.ts
@@ -582,7 +582,7 @@
-
+
@@ -666,13 +666,12 @@
WizardWelcome
-
-
+
-
+
@@ -680,75 +679,75 @@
main
-
-
-
+
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
diff --git a/translations/monero-core_it.ts b/translations/monero-core_it.ts
index a24a0501..3b4e2760 100644
--- a/translations/monero-core_it.ts
+++ b/translations/monero-core_it.ts
@@ -582,7 +582,7 @@
-
+
@@ -666,13 +666,12 @@
WizardWelcome
-
-
+
-
+
@@ -680,75 +679,75 @@
main
-
-
-
+
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
diff --git a/translations/monero-core_pl.ts b/translations/monero-core_pl.ts
index 67e8a0aa..6c15a0b0 100644
--- a/translations/monero-core_pl.ts
+++ b/translations/monero-core_pl.ts
@@ -582,7 +582,7 @@
-
+
@@ -666,13 +666,12 @@
WizardWelcome
-
-
+
-
+
@@ -680,75 +679,75 @@
main
-
-
-
+
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
diff --git a/translations/monero-core_ru.ts b/translations/monero-core_ru.ts
index ab0d509c..7921567d 100644
--- a/translations/monero-core_ru.ts
+++ b/translations/monero-core_ru.ts
@@ -138,7 +138,7 @@
-
+ Баланс
@@ -240,7 +240,7 @@
-
+ Баланс
@@ -253,7 +253,7 @@
-
+ Баланс
@@ -582,7 +582,7 @@
-
+
@@ -666,13 +666,12 @@
WizardWelcome
-
-
+
Добро пожаловать
-
+
Пожалуйста выберите язык и региональный формат.
@@ -680,75 +679,75 @@
main
-
-
-
+
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
diff --git a/translations/monero-core_zh.ts b/translations/monero-core_zh.ts
index d47f1c24..0a2faf01 100644
--- a/translations/monero-core_zh.ts
+++ b/translations/monero-core_zh.ts
@@ -582,7 +582,7 @@
-
+
@@ -666,13 +666,12 @@
WizardWelcome
-
-
+
-
+
@@ -680,75 +679,75 @@
main
-
-
-
+
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
diff --git a/wizard/WizardMain.qml b/wizard/WizardMain.qml
index 3c4103ce..987ac897 100644
--- a/wizard/WizardMain.qml
+++ b/wizard/WizardMain.qml
@@ -147,6 +147,7 @@ Rectangle {
// persist settings
appWindow.persistentSettings.language = settings.language
+ appWindow.persistentSettings.locale = settings.locale
appWindow.persistentSettings.account_name = settings.account_name
appWindow.persistentSettings.wallet_path = settings.wallet_path
appWindow.persistentSettings.allow_background_mining = settings.allow_background_mining
diff --git a/wizard/WizardWelcome.qml b/wizard/WizardWelcome.qml
index 72bf27cc..bc4c5a1b 100644
--- a/wizard/WizardWelcome.qml
+++ b/wizard/WizardWelcome.qml
@@ -45,19 +45,6 @@ Item {
}
-// function retranslateUi() {
-// welcomeText.text = qsTr("Welcome")
-// }
-
-
-// Connections {
-// target: translationManager
-// onEmptyStringChanged: {
-// console.log("languageChanged")
-// retranslateUi()
-// }
-// }
-
Column {
id: headerColumn
anchors.left: parent.left
@@ -132,9 +119,6 @@ Item {
width: gridView.cellWidth
height: gridView.cellHeight
-
-
-
Rectangle {
id: flagRect
width: 60; height: 60