summaryrefslogtreecommitdiffstats
path: root/web/react/components/user_settings
diff options
context:
space:
mode:
authorElias Nahum <nahumhbl@gmail.com>2016-02-04 17:31:11 -0300
committerElias Nahum <nahumhbl@gmail.com>2016-02-04 17:31:11 -0300
commit88118515d0d23385dc856dd87f304ea4b19b4196 (patch)
tree1c290ee33832d9622ee0916d1a8f15c28f70df72 /web/react/components/user_settings
parent44c19ee443831e0e94b5738ecb21a64ce7643247 (diff)
downloadchat-88118515d0d23385dc856dd87f304ea4b19b4196.tar.gz
chat-88118515d0d23385dc856dd87f304ea4b19b4196.tar.bz2
chat-88118515d0d23385dc856dd87f304ea4b19b4196.zip
PLT-7: Fix and Add new loc strings
Diffstat (limited to 'web/react/components/user_settings')
-rw-r--r--web/react/components/user_settings/manage_command_hooks.jsx29
-rw-r--r--web/react/components/user_settings/user_settings_notifications.jsx4
2 files changed, 27 insertions, 6 deletions
diff --git a/web/react/components/user_settings/manage_command_hooks.jsx b/web/react/components/user_settings/manage_command_hooks.jsx
index bcf0a6c82..b2fc0a4e1 100644
--- a/web/react/components/user_settings/manage_command_hooks.jsx
+++ b/web/react/components/user_settings/manage_command_hooks.jsx
@@ -39,6 +39,14 @@ const holders = defineMessages({
adUrlPlaceholder: {
id: 'user.settings.cmds.url.placeholder',
defaultMessage: 'Must start with http:// or https://'
+ },
+ autocompleteYes: {
+ id: 'user.settings.cmds.auto_complete.yes',
+ defaultMessage: 'yes'
+ },
+ autocompleteNo: {
+ id: 'user.settings.cmds.auto_complete.no',
+ defaultMessage: 'no'
}
});
@@ -295,7 +303,7 @@ export default class ManageCommandCmds extends React.Component {
id='user.settings.cmds.auto_complete'
defaultMessage='Auto Complete: '
/>
- </strong><span className='word-break--all'>{cmd.auto_complete ? 'yes' : 'no'}</span>
+ </strong><span className='word-break--all'>{cmd.auto_complete ? this.props.intl.formatMessage(holders.autocompleteYes) : this.props.intl.formatMessage(holders.autocompleteNo)}</span>
</div>
<div className='padding-top x2'>
<strong>
@@ -414,7 +422,12 @@ export default class ManageCommandCmds extends React.Component {
id='user.settings.cmds.add_desc'
defaultMessage='Create commands to send message events to an external integration. Please see <a href="http://mattermost.org/commands">http://mattermost.org/commands</a> to learn more.'
/>
- <div><label className='control-label padding-top x2'>{'Add a new command'}</label></div>
+ <div><label className='control-label padding-top x2'>
+ <FormattedMessage
+ id='user.settings.cmds.add_new'
+ defaultMessage='Add a new command'
+ />
+ </label></div>
<div className='padding-top divider-light'></div>
<div className='padding-top'>
<div className='padding-top x2'>
@@ -433,7 +446,12 @@ export default class ManageCommandCmds extends React.Component {
placeholder={this.props.intl.formatMessage(holders.addDisplayNamePlaceholder)}
/>
</div>
- <div className='padding-top'>{'Command display name.'}</div>
+ <div className='padding-top'>
+ <FormattedMessage
+ id='user.settings.cmds.cmd_display_name'
+ defaultMessage='Command display name.'
+ />
+ </div>
</div>
<div className='padding-top x2'>
<label className='control-label'>
@@ -638,7 +656,10 @@ export default class ManageCommandCmds extends React.Component {
disabled={disableButton}
onClick={this.addNewCmd}
>
- {'Add'}
+ <FormattedMessage
+ id='user.settings.cmds.add'
+ defaultMessage='Add'
+ />
</a>
</div>
</div>
diff --git a/web/react/components/user_settings/user_settings_notifications.jsx b/web/react/components/user_settings/user_settings_notifications.jsx
index 91a03eb70..0361aa8de 100644
--- a/web/react/components/user_settings/user_settings_notifications.jsx
+++ b/web/react/components/user_settings/user_settings_notifications.jsx
@@ -294,7 +294,7 @@ class NotificationsTab extends React.Component {
<span>
<FormattedMessage
id='user.settings.notifications.info'
- defaultMessage='Desktop notification sounds are available on Firefox, Safari, Chrome, Internet Explorer, and Edge.'
+ defaultMessage='Desktop notification are available on Firefox, Safari, Chrome, Internet Explorer, and Edge.'
/>
</span>
);
@@ -395,7 +395,7 @@ class NotificationsTab extends React.Component {
const extraInfo = (
<span>
<FormattedMessage
- id='user.settings.notifications.info'
+ id='user.settings.notifications.sounds_info'
defaultMessage='Desktop notification sounds are available on Firefox, Safari, Chrome, Internet Explorer, and Edge.'
/>
</span>