Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit efbef10

Browse files
fix(settings): i18n of the restart buttons
1 parent 3c62ade commit efbef10

File tree

5 files changed

+15
-7
lines changed

5 files changed

+15
-7
lines changed

js/languages/en-US.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,8 @@
726726
},
727727
"langChangeRestartTitle": "Restart needed for language change",
728728
"langChangeRestartMessage": "In order for your language change to fully take effect, you must restart the app.",
729+
"restartNow": "Restart Now",
730+
"restartLater": "Restart Later",
729731
"countries": {
730732
"AFGHANISTAN": "Afghanistan",
731733
"ALAND_ISLANDS": "Aland Islands",

js/languages/fr-CA.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,8 @@
725725
},
726726
"langChangeRestartTitle": "Redémarrage requis pour le changement de langue",
727727
"langChangeRestartMessage": "Vous devez redémarrer l'application pour que le changement de langue soit pleinement effectif.",
728+
"restartNow": "Redémarrer maintenant",
729+
"restartLater": "Redémarrer plus tard",
728730
"countries": {
729731
"AFGHANISTAN": "Afghanistan",
730732
"ALAND_ISLANDS": "Aland Islands",
@@ -1138,4 +1140,4 @@
11381140
"ZMW": "Zambian Kwacha",
11391141
"ZWL": "Zimbabwe Dollar"
11401142
}
1141-
}
1143+
}

js/languages/fr.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,8 @@
725725
},
726726
"langChangeRestartTitle": "Redémarrage requis pour le changement de langue",
727727
"langChangeRestartMessage": "Vous devez redémarrer l'application pour que le changement de langue soit pleinement effectif.",
728+
"restartNow": "Redémarrer maintenant",
729+
"restartLater": "Redémarrer plus tard",
728730
"countries": {
729731
"AFGHANISTAN": "Afghanistan",
730732
"ALAND_ISLANDS": "Aland Islands",
@@ -1138,4 +1140,4 @@
11381140
"ZMW": "Zambian Kwacha",
11391141
"ZWL": "Zimbabwe Dollar"
11401142
}
1141-
}
1143+
}

js/languages/pt-BR.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,8 @@
725725
},
726726
"langChangeRestartTitle": "Reinicialização necessária para a mudança de idioma.",
727727
"langChangeRestartMessage": "Para mudar o seu idioma, você precisa reinicializar o aplicativo.",
728+
"restartNow": "Recomece agora",
729+
"restartLater": "Recomeçar depois",
728730
"countries": {
729731
"AFGHANISTAN": "Afeganistão",
730732
"ALAND_ISLANDS": "Ilhas da Åland",
@@ -1138,4 +1140,4 @@
11381140
"ZMW": "Kwacha zambiano",
11391141
"ZWL": "Dólar do Zimbábue"
11401142
}
1141-
}
1143+
}

js/start.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ var profileLoaded;
406406
var loadProfile = function(landingRoute, onboarded) {
407407
var externalRoute = remote.getGlobal('externalRoute');
408408

409-
landingRoute = landingRoute && landingRoute != undefined ? landingRoute : '#';
409+
landingRoute = landingRoute || '#';
410410

411411
profileLoaded = true;
412412

@@ -423,7 +423,7 @@ var loadProfile = function(landingRoute, onboarded) {
423423
var userLang = model.get('language');
424424
cCode = model.get('currency_code');
425425

426-
if (userLang != window.polyglot.currentLocale){
426+
if (userLang != window.polyglot.currentLocale) {
427427
//when switching nodes, the language saved in localStorage can be different than the language in the
428428
// user model, but the user model does not trigger a change because it hasn't changed
429429
updatePolyglot(userLang);
@@ -480,10 +480,10 @@ var loadProfile = function(landingRoute, onboarded) {
480480
title: window.polyglot.t('langChangeRestartTitle'),
481481
message: window.polyglot.t('langChangeRestartMessage'),
482482
buttons: [{
483-
text: 'Restart Later',
483+
text: window.polyglot.t('restartLater'),
484484
fragment: 'restart-later'
485485
}, {
486-
text: 'Restart Now',
486+
text: window.polyglot.t('restartNow'),
487487
fragment: 'restart-now'
488488
}]
489489
}).on('click-restart-later', () => {

0 commit comments

Comments
 (0)