Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Update locale
Browse files Browse the repository at this point in the history
  • Loading branch information
darkdh committed Jul 17, 2016
1 parent 897dddc commit 94d28c7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
3 changes: 3 additions & 0 deletions app/extensions/brave/locales/en-US/app.properties
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,6 @@ flashRightClick=Right-click to run Adobe Flash
flashSubtext=from {{source}} on {{site}}.
flashExpirationText=Approvals reset 7 days after last visit.
prefsRestart=Do you want to restart now ?
yes=Yes
no=No
neverForThisSite=Never for this site
8 changes: 6 additions & 2 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ app.on('ready', () => {
var message = locale.translation('prefsRestart')

appActions.showMessageBox({
buttons: ['Yes', 'No'],
buttons: [locale.translation('yes'), locale.translation('no')],
options: {
persist: false
},
Expand Down Expand Up @@ -619,7 +619,11 @@ app.on('ready', () => {
if (!(message in passwordCallbacks)) {
// Notification not shown already
appActions.showMessageBox({
buttons: ['Yes', 'No', 'Never for this site'],
buttons: [
locale.translation('yes'),
locale.translation('no'),
locale.translation('neverForThisSite')
],
options: {
persist: false,
advancedText: '[Password settings]',
Expand Down
5 changes: 4 additions & 1 deletion app/locale.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,10 @@ var rendererIdentifiers = function () {
'aboutPagesSuggestionTitle',
'searchSuggestionTitle',
'topSiteSuggestionTitle',
'prefsRestart'
'prefsRestart',
'yes',
'no',
'neverForThisSite'
]
}

Expand Down

0 comments on commit 94d28c7

Please sign in to comment.