Merge pull request #454 from yuya-oc/wording-dock-icon

Use "Dock" instead of "taskbar" on macOS
This commit is contained in:
Yuya Ochiai 2017-02-24 23:58:59 +09:00 committed by GitHub
commit 8444768004

View file

@ -287,6 +287,7 @@ const SettingsPage = React.createClass({
</Checkbox>); </Checkbox>);
if (process.platform === 'darwin' || process.platform === 'win32') { if (process.platform === 'darwin' || process.platform === 'win32') {
const TASKBAR = process.platform === 'win32' ? 'taskbar' : 'Dock';
options.push( options.push(
<Checkbox <Checkbox
key='inputShowUnreadBadge' key='inputShowUnreadBadge'
@ -294,9 +295,9 @@ const SettingsPage = React.createClass({
ref='showUnreadBadge' ref='showUnreadBadge'
checked={this.state.showUnreadBadge} checked={this.state.showUnreadBadge}
onChange={this.handleShowUnreadBadge} onChange={this.handleShowUnreadBadge}
>{'Show red badge on taskbar icon to indicate unread messages'} >{`Show red badge on ${TASKBAR} icon to indicate unread messages`}
<HelpBlock> <HelpBlock>
{'Regardless of this setting, mentions are always indicated with a red badge and item count on the taskbar icon.'} {`Regardless of this setting, mentions are always indicated with a red badge and item count on the ${TASKBAR} icon.`}
</HelpBlock> </HelpBlock>
</Checkbox>); </Checkbox>);
} }