1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-15 10:46:32 +00:00

i18n: Apply translations on hardcoded strings

This commit is contained in:
bimlas
2018-05-26 11:01:32 +02:00
parent 0d296c3b25
commit 77e3a7d43a
3 changed files with 8 additions and 4 deletions

View File

@@ -182,7 +182,7 @@ class StoragesTab extends React.Component {
<div styleName='addStorage-body-section-path'> <div styleName='addStorage-body-section-path'>
<input styleName='addStorage-body-section-path-input' <input styleName='addStorage-body-section-path-input'
ref='addStoragePath' ref='addStoragePath'
placeholder='Select Folder' placeholder={i18n.__('Select Folder')}
value={this.state.newStorage.path} value={this.state.newStorage.path}
onChange={(e) => this.handleAddStorageChange(e)} onChange={(e) => this.handleAddStorageChange(e)}
/> />

View File

@@ -234,7 +234,7 @@ class UiTab extends React.Component {
disabled={OSX} disabled={OSX}
type='checkbox' type='checkbox'
/>&nbsp; />&nbsp;
Disable Direct Write(It will be applied after restarting) {i18n.__('Disable Direct Write (It will be applied after restarting)')}
</label> </label>
</div> </div>
: null : null
@@ -474,7 +474,7 @@ class UiTab extends React.Component {
ref='previewSmartQuotes' ref='previewSmartQuotes'
type='checkbox' type='checkbox'
/>&nbsp; />&nbsp;
Enable smart quotes {i18n.__('Enable smart quotes')}
</label> </label>
</div> </div>
<div styleName='group-checkBoxSection'> <div styleName='group-checkBoxSection'>
@@ -484,7 +484,7 @@ class UiTab extends React.Component {
ref='previewBreaks' ref='previewBreaks'
type='checkbox' type='checkbox'
/>&nbsp; />&nbsp;
Render newlines in Markdown paragraphs as &lt;br&gt; {i18n.__('Render newlines in Markdown paragraphs as <br>')}
</label> </label>
</div> </div>

View File

@@ -23,6 +23,7 @@
"Storages": "Storages", "Storages": "Storages",
"Add Storage Location": "Add Storage Location", "Add Storage Location": "Add Storage Location",
"Add Folder": "Add Folder", "Add Folder": "Add Folder",
"Select Folder": "Select Folder",
"Open Storage folder": "Open Storage folder", "Open Storage folder": "Open Storage folder",
"Unlink": "Unlink", "Unlink": "Unlink",
"Edit": "Edit", "Edit": "Edit",
@@ -34,6 +35,7 @@
"Solarized Dark": "Solarized Dark", "Solarized Dark": "Solarized Dark",
"Dark": "Dark", "Dark": "Dark",
"Show a confirmation dialog when deleting notes": "Show a confirmation dialog when deleting notes", "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 Theme": "Editor Theme",
"Editor Font Size": "Editor Font Size", "Editor Font Size": "Editor Font Size",
"Editor Font Family": "Editor Font Family", "Editor Font Family": "Editor Font Family",
@@ -50,6 +52,7 @@
"emacs": "emacs", "emacs": "emacs",
"⚠️ Please restart boostnote after you change the keymap": "⚠️ Please restart boostnote after you change the keymap", "⚠️ 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", "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", "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", "Bring in web page title when pasting URL on editor": "Bring in web page title when pasting URL on editor",
"Preview": "Preview", "Preview": "Preview",
@@ -152,6 +155,7 @@
"Disable": "Disable", "Disable": "Disable",
"Sanitization": "Sanitization", "Sanitization": "Sanitization",
"Only allow secure html tags (recommended)": "Only allow secure html tags (recommended)", "Only allow secure html tags (recommended)": "Only allow secure html tags (recommended)",
"Render newlines in Markdown paragraphs as <br>": "Render newlines in Markdown paragraphs as <br>",
"Allow styles": "Allow styles", "Allow styles": "Allow styles",
"Allow dangerous html tags": "Allow dangerous html tags" "Allow dangerous html tags": "Allow dangerous html tags"
} }