Change order of options and add Spanish spellchecker
This commit is contained in:
parent
8ebee4bc32
commit
7be0254840
|
@ -11,7 +11,7 @@ from the final changelog of the release.
|
||||||
Release date: TBD
|
Release date: TBD
|
||||||
|
|
||||||
### Improvements
|
### Improvements
|
||||||
- Added spell checker for English, French, German, and Dutch.
|
- Added spell checker for English, French, German, Spanish, and Dutch.
|
||||||
- Removed "Display secure content only" option it's no longer necessary.
|
- Removed "Display secure content only" option it's no longer necessary.
|
||||||
|
|
||||||
#### Windows
|
#### Windows
|
||||||
|
|
|
@ -281,6 +281,34 @@ const SettingsPage = React.createClass({
|
||||||
</Checkbox>);
|
</Checkbox>);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
options.push(
|
||||||
|
<Checkbox
|
||||||
|
key='inputSpellChecker'
|
||||||
|
id='inputSpellChecker'
|
||||||
|
ref='useSpellChecker'
|
||||||
|
checked={this.state.useSpellChecker}
|
||||||
|
onChange={this.handleChangeUseSpellChecker}
|
||||||
|
>
|
||||||
|
{'Check spelling'}
|
||||||
|
<HelpBlock>
|
||||||
|
{'Highlight misspelled words in your messages.'}
|
||||||
|
{' Available for English, French, German, Spanish, and Dutch.'}
|
||||||
|
</HelpBlock>
|
||||||
|
<FormControl
|
||||||
|
id='selectSpellCheckerLocale'
|
||||||
|
componentClass='select'
|
||||||
|
value={this.state.spellCheckerLocale}
|
||||||
|
onChange={this.handleChangeSpellCheckerLocale}
|
||||||
|
disabled={!this.state.useSpellChecker}
|
||||||
|
>
|
||||||
|
<option value='en-US'>{'English'}</option>
|
||||||
|
<option value='fr-FR'>{'French'}</option>
|
||||||
|
<option value='de-DE'>{'German'}</option>
|
||||||
|
<option value='es-ES'>{'Spanish'}</option>
|
||||||
|
<option value='nl-NL'>{'Dutch'}</option>
|
||||||
|
</FormControl>
|
||||||
|
</Checkbox>);
|
||||||
|
|
||||||
if (process.platform === 'darwin' || process.platform === 'win32') {
|
if (process.platform === 'darwin' || process.platform === 'win32') {
|
||||||
const TASKBAR = process.platform === 'win32' ? 'taskbar' : 'Dock';
|
const TASKBAR = process.platform === 'win32' ? 'taskbar' : 'Dock';
|
||||||
options.push(
|
options.push(
|
||||||
|
@ -378,33 +406,6 @@ const SettingsPage = React.createClass({
|
||||||
</Checkbox>);
|
</Checkbox>);
|
||||||
}
|
}
|
||||||
|
|
||||||
options.push(
|
|
||||||
<Checkbox
|
|
||||||
key='inputSpellChecker'
|
|
||||||
id='inputSpellChecker'
|
|
||||||
ref='useSpellChecker'
|
|
||||||
checked={this.state.useSpellChecker}
|
|
||||||
onChange={this.handleChangeUseSpellChecker}
|
|
||||||
>
|
|
||||||
{'Check spelling'}
|
|
||||||
<HelpBlock>
|
|
||||||
{'Highlight misspelled words in your messages.'}
|
|
||||||
{' Available for English, French, German, and Dutch.'}
|
|
||||||
</HelpBlock>
|
|
||||||
<FormControl
|
|
||||||
id='selectSpellCheckerLocale'
|
|
||||||
componentClass='select'
|
|
||||||
value={this.state.spellCheckerLocale}
|
|
||||||
onChange={this.handleChangeSpellCheckerLocale}
|
|
||||||
disabled={!this.state.useSpellChecker}
|
|
||||||
>
|
|
||||||
<option value='en-US'>{'English'}</option>
|
|
||||||
<option value='fr-FR'>{'French'}</option>
|
|
||||||
<option value='de-DE'>{'German'}</option>
|
|
||||||
<option value='nl-NL'>{'Dutch'}</option>
|
|
||||||
</FormControl>
|
|
||||||
</Checkbox>);
|
|
||||||
|
|
||||||
const settingsPage = {
|
const settingsPage = {
|
||||||
navbar: {
|
navbar: {
|
||||||
backgroundColor: '#fff'
|
backgroundColor: '#fff'
|
||||||
|
|
Loading…
Reference in a new issue