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

Commit c453c9f

Browse files
authored
Merge pull request #1819 from OpenBazaar/tryingToFixMerge
Trying to fix merge
2 parents c9b1c6d + 6de4fbe commit c453c9f

File tree

7 files changed

+35
-8
lines changed

7 files changed

+35
-8
lines changed

.editorconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# editorconfig.org
4+
5+
root = true
6+
7+
8+
[*]
9+
10+
# We recommend you to keep these unchanged
11+
indent_style = space
12+
indent_size = 2
13+
end_of_line = lf
14+
charset = utf-8
15+
trim_trailing_whitespace = true
16+
insert_final_newline = true
17+
18+
[*.md]
19+
trim_trailing_whitespace = false

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/router.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,6 @@ module.exports = Backbone.Router.extend({
454454
bodyID: 'userPage'
455455
});
456456

457-
app.appBar.setTitle(window.polyglot.t('Settings'));
457+
app.appBar.setTitle(window.polyglot.t('nav.settings'));
458458
}
459459
});

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)