From 77e3a7d43a589ece65345730538c1d3212b3f4ce Mon Sep 17 00:00:00 2001 From: bimlas Date: Sat, 26 May 2018 11:01:32 +0200 Subject: [PATCH 1/2] i18n: Apply translations on hardcoded strings --- browser/main/modals/PreferencesModal/StoragesTab.js | 2 +- browser/main/modals/PreferencesModal/UiTab.js | 6 +++--- locales/en.json | 4 ++++ 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/browser/main/modals/PreferencesModal/StoragesTab.js b/browser/main/modals/PreferencesModal/StoragesTab.js index d85ed8e3..ad7472d2 100644 --- a/browser/main/modals/PreferencesModal/StoragesTab.js +++ b/browser/main/modals/PreferencesModal/StoragesTab.js @@ -182,7 +182,7 @@ class StoragesTab extends React.Component {
this.handleAddStorageChange(e)} /> diff --git a/browser/main/modals/PreferencesModal/UiTab.js b/browser/main/modals/PreferencesModal/UiTab.js index d2a2f178..e059d72d 100644 --- a/browser/main/modals/PreferencesModal/UiTab.js +++ b/browser/main/modals/PreferencesModal/UiTab.js @@ -234,7 +234,7 @@ class UiTab extends React.Component { disabled={OSX} type='checkbox' />  - Disable Direct Write(It will be applied after restarting) + {i18n.__('Disable Direct Write (It will be applied after restarting)')}
: null @@ -474,7 +474,7 @@ class UiTab extends React.Component { ref='previewSmartQuotes' type='checkbox' />  - Enable smart quotes + {i18n.__('Enable smart quotes')}
@@ -484,7 +484,7 @@ class UiTab extends React.Component { ref='previewBreaks' type='checkbox' />  - Render newlines in Markdown paragraphs as <br> + {i18n.__('Render newlines in Markdown paragraphs as
')}
diff --git a/locales/en.json b/locales/en.json index 912ecf2f..e23a34e8 100644 --- a/locales/en.json +++ b/locales/en.json @@ -23,6 +23,7 @@ "Storages": "Storages", "Add Storage Location": "Add Storage Location", "Add Folder": "Add Folder", + "Select Folder": "Select Folder", "Open Storage folder": "Open Storage folder", "Unlink": "Unlink", "Edit": "Edit", @@ -34,6 +35,7 @@ "Solarized Dark": "Solarized Dark", "Dark": "Dark", "Show a confirmation dialog when deleting notes": "Show a confirmation dialog when deleting notes", + "Disable Direct Write (It will be applied after restarting)": "Disable Direct Write (It will be applied after restarting)", "Editor Theme": "Editor Theme", "Editor Font Size": "Editor Font Size", "Editor Font Family": "Editor Font Family", @@ -50,6 +52,7 @@ "emacs": "emacs", "⚠️ Please restart boostnote after you change the keymap": "⚠️ Please restart boostnote after you change the keymap", "Show line numbers in the editor": "Show line numbers in the editor", + "Enable smart quotes": "Enable smart quotes", "Allow editor to scroll past the last line": "Allow editor to scroll past the last line", "Bring in web page title when pasting URL on editor": "Bring in web page title when pasting URL on editor", "Preview": "Preview", @@ -152,6 +155,7 @@ "Disable": "Disable", "Sanitization": "Sanitization", "Only allow secure html tags (recommended)": "Only allow secure html tags (recommended)", + "Render newlines in Markdown paragraphs as
": "Render newlines in Markdown paragraphs as
", "Allow styles": "Allow styles", "Allow dangerous html tags": "Allow dangerous html tags" } From cfe8235a36b08b750b025cd61a7f7518570b05ae Mon Sep 17 00:00:00 2001 From: bimlas Date: Sat, 26 May 2018 11:51:51 +0200 Subject: [PATCH 2/2] i18n: Add missing translations to English --- locales/en.json | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/locales/en.json b/locales/en.json index e23a34e8..e40035ae 100644 --- a/locales/en.json +++ b/locales/en.json @@ -4,9 +4,10 @@ "Preferences": "Preferences", "Make a note": "Make a note", "Ctrl": "Ctrl", - "Ctrl(^)": "Ctrl", + "Ctrl(^)": "Ctrl(^)", "to create a new note": "to create a new note", "Toggle Mode": "Toggle Mode", + "Add tag...": "Add tag...", "Trash": "Trash", "MODIFICATION DATE": "MODIFICATION DATE", "Words": "Words", @@ -20,6 +21,8 @@ ".html": ".html", "Print": "Print", "Your preferences for Boostnote": "Your preferences for Boostnote", + "Help": "Help", + "Hide Help": "Hide Help", "Storages": "Storages", "Add Storage Location": "Add Storage Location", "Add Folder": "Add Folder", @@ -36,6 +39,7 @@ "Dark": "Dark", "Show a confirmation dialog when deleting notes": "Show a confirmation dialog when deleting notes", "Disable Direct Write (It will be applied after restarting)": "Disable Direct Write (It will be applied after restarting)", + "Show only related tags": "Show only related tags", "Editor Theme": "Editor Theme", "Editor Font Size": "Editor Font Size", "Editor Font Family": "Editor Font Family", @@ -52,8 +56,8 @@ "emacs": "emacs", "⚠️ Please restart boostnote after you change the keymap": "⚠️ Please restart boostnote after you change the keymap", "Show line numbers in the editor": "Show line numbers in the editor", - "Enable smart quotes": "Enable smart quotes", "Allow editor to scroll past the last line": "Allow editor to scroll past the last line", + "Enable smart quotes": "Enable smart quotes", "Bring in web page title when pasting URL on editor": "Bring in web page title when pasting URL on editor", "Preview": "Preview", "Preview Font Size": "Preview Font Size", @@ -130,6 +134,7 @@ "Storage": "Storage", "Hotkeys": "Hotkeys", "Show/Hide Boostnote": "Show/Hide Boostnote", + "Toggle editor mode": "Toggle editor mode", "Restore": "Restore", "Permanent Delete": "Permanent Delete", "Confirm note deletion": "Confirm note deletion", @@ -149,7 +154,19 @@ "UserName": "UserName", "Password": "Password", "Russian": "Russian", + "Hungarian": "Hungarian", "Command(⌘)": "Command(⌘)", + "Add Storage": "Add Storage", + "Name": "Name", + "Type": "Type", + "File System": "File System", + "Setting up 3rd-party cloud storage integration:": "Setting up 3rd-party cloud storage integration:", + "Cloud-Syncing-and-Backup": "Cloud-Syncing-and-Backup", + "Location": "Location", + "Add": "Add", + "Select Folder": "Select Folder", + "Unlink Storage": "Unlink Storage", + "Unlinking removes this linked storage from Boostnote. No data is removed, please manually delete the folder from your hard drive if needed.": "Unlinking removes this linked storage from Boostnote. No data is removed, please manually delete the folder from your hard drive if needed.", "Editor Rulers": "Editor Rulers", "Enable": "Enable", "Disable": "Disable",