From 40b5472866ea2bc692384d041917d8e906e7f431 Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 7 Mar 2018 08:37:55 +0100 Subject: [PATCH] Adjustments for Travis CI --- browser/main/Detail/SnippetNoteDetail.js | 10 +++++----- browser/main/Detail/index.js | 6 +++--- locales/de.json | 3 ++- locales/en.json | 3 ++- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/browser/main/Detail/SnippetNoteDetail.js b/browser/main/Detail/SnippetNoteDetail.js index 9b5c7456..048dccad 100644 --- a/browser/main/Detail/SnippetNoteDetail.js +++ b/browser/main/Detail/SnippetNoteDetail.js @@ -265,9 +265,9 @@ class SnippetNoteDetail extends React.Component { if (this.state.note.snippets[index].content.trim().length > 0) { const dialogIndex = dialog.showMessageBox(remote.getCurrentWindow(), { type: 'warning', - message: i18n.__('Delete a snippet'), - detail: i18n.__('This work cannot be undone.'), - buttons: [ i18n.__('Confirm'), i18n.__('Cancel')] + message: i18n.__('Delete a snippet'), + detail: i18n.__('This work cannot be undone.'), + buttons: [i18n.__('Confirm'), i18n.__('Cancel')] }) if (dialogIndex === 0) { this.deleteSnippetByIndex(index) @@ -508,8 +508,8 @@ class SnippetNoteDetail extends React.Component { showWarning () { dialog.showMessageBox(remote.getCurrentWindow(), { type: 'warning', - message: i18n.__('Sorry!'), - detail: i18n.__('md/text import is available only a markdown note.'), + message: i18n.__('Sorry!'), + detail: i18n.__('md/text import is available only a markdown note.'), buttons: ['OK'] }) } diff --git a/browser/main/Detail/index.js b/browser/main/Detail/index.js index 70084cf9..d07df204 100644 --- a/browser/main/Detail/index.js +++ b/browser/main/Detail/index.js @@ -41,9 +41,9 @@ class Detail extends React.Component { const alertConfig = { type: 'warning', - message: i18n.__('Confirm note deletion'), - detail: i18n.__('This will permanently remove this note.'), - buttons: [ i18n.__('Confirm'), i18n.__('Cancel')] + message: i18n.__('Confirm note deletion'), + detail: i18n.__('This will permanently remove this note.'), + buttons: [i18n.__('Confirm'), i18n.__('Cancel')] } const dialogueButtonIndex = dialog.showMessageBox(remote.getCurrentWindow(), alertConfig) diff --git a/locales/de.json b/locales/de.json index 3e7138a5..a3d0d92e 100644 --- a/locales/de.json +++ b/locales/de.json @@ -127,5 +127,6 @@ "Restore": "Restore", "Permanent Delete": "Dauerhaft Löschen", "Confirm note deletion": "Löschen bestätigen", - "This will permanently remove this note.": "Notiz wird dauerhaft gelöscht" + "This will permanently remove this note.": "Notiz wird dauerhaft gelöscht", + "You have to save!": "You have to save!" } \ No newline at end of file diff --git a/locales/en.json b/locales/en.json index aba9be61..a43c6de9 100644 --- a/locales/en.json +++ b/locales/en.json @@ -127,5 +127,6 @@ "Restore": "Restore", "Permanent Delete": "Permanent Delete", "Confirm note deletion": "Confirm note deletion", - "This will permanently remove this note.": "This will permanently remove this note." + "This will permanently remove this note.": "This will permanently remove this note.", + "Successfully applied!": "Successfully applied!" } \ No newline at end of file