From 88118515d0d23385dc856dd87f304ea4b19b4196 Mon Sep 17 00:00:00 2001 From: Elias Nahum Date: Thu, 4 Feb 2016 17:31:11 -0300 Subject: PLT-7: Fix and Add new loc strings --- .../user_settings/manage_command_hooks.jsx | 29 +++++++++++++++++++--- .../user_settings/user_settings_notifications.jsx | 4 +-- 2 files changed, 27 insertions(+), 6 deletions(-) (limited to 'web/react/components') 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: ' /> - {cmd.auto_complete ? 'yes' : 'no'} + {cmd.auto_complete ? this.props.intl.formatMessage(holders.autocompleteYes) : this.props.intl.formatMessage(holders.autocompleteNo)}
@@ -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 http://mattermost.org/commands to learn more.' /> -
+
@@ -433,7 +446,12 @@ export default class ManageCommandCmds extends React.Component { placeholder={this.props.intl.formatMessage(holders.addDisplayNamePlaceholder)} />
-
{'Command display name.'}
+
+ +
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 { ); @@ -395,7 +395,7 @@ class NotificationsTab extends React.Component { const extraInfo = ( -- cgit v1.2.3-1-g7c22 From e1bea101f54e3cbbf240febc149689d389c21b44 Mon Sep 17 00:00:00 2001 From: Elias Nahum Date: Thu, 4 Feb 2016 19:25:34 -0300 Subject: fix typos --- web/react/components/user_settings/user_settings_notifications.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web/react/components') diff --git a/web/react/components/user_settings/user_settings_notifications.jsx b/web/react/components/user_settings/user_settings_notifications.jsx index 0361aa8de..786e53f10 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 { ); @@ -396,7 +396,7 @@ class NotificationsTab extends React.Component { ); -- cgit v1.2.3-1-g7c22