Apply translation for "normal" mode

This commit is contained in:
Ilya Kitaev
2016-07-19 23:45:12 +03:00
parent a9339838ac
commit 39b88daf32
10 changed files with 122 additions and 134 deletions

View File

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