diff options
author | Corey Hulen <corey@hulen.com> | 2016-01-28 11:43:10 -0500 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2016-01-28 11:43:10 -0500 |
commit | db37897538f134b29784453797510c20e1e9303c (patch) | |
tree | fcd0f919912c9c0346db543caf789c63e0e124a7 /web/react/components/tutorial/tutorial_tip.jsx | |
parent | 211fa8e5cc2e1f559098cefead42e1503073624d (diff) | |
parent | a72ba140240266b03558dba716e6f4815392d491 (diff) | |
download | chat-db37897538f134b29784453797510c20e1e9303c.tar.gz chat-db37897538f134b29784453797510c20e1e9303c.tar.bz2 chat-db37897538f134b29784453797510c20e1e9303c.zip |
Merge pull request #2010 from ZBoxApp/PLT-7-tutorial
PLT-7: Refactoring frontend (chunk 3)
Diffstat (limited to 'web/react/components/tutorial/tutorial_tip.jsx')
-rw-r--r-- | web/react/components/tutorial/tutorial_tip.jsx | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/web/react/components/tutorial/tutorial_tip.jsx b/web/react/components/tutorial/tutorial_tip.jsx index 23daa4707..6bd7d89a4 100644 --- a/web/react/components/tutorial/tutorial_tip.jsx +++ b/web/react/components/tutorial/tutorial_tip.jsx @@ -6,6 +6,9 @@ import PreferenceStore from '../../stores/preference_store.jsx'; import * as AsyncClient from '../../utils/async_client.jsx'; import Constants from '../../utils/constants.jsx'; + +import {FormattedMessage} from 'mm-intl'; + const Preferences = Constants.Preferences; const Overlay = ReactBootstrap.Overlay; @@ -46,7 +49,17 @@ export default class TutorialTip extends React.Component { AsyncClient.savePreferences([preference]); } render() { - const buttonText = this.state.currentScreen === this.props.screens.length - 1 ? 'Okay' : 'Next'; + const buttonText = this.state.currentScreen === this.props.screens.length - 1 ? ( + <FormattedMessage + id='tutorial_tip.ok' + defaultMessage='Okay' + /> + ) : ( + <FormattedMessage + id='tutorial_tip.next' + defaultMessage='Next' + /> + ); const dots = []; if (this.props.screens.length > 1) { @@ -111,12 +124,18 @@ export default class TutorialTip extends React.Component { {buttonText} </button> <div className='tip-opt'> - {'Seen this before? '} + <FormattedMessage + id='tutorial_tip.seen' + defaultMessage='Seen this before? ' + /> <a href='#' onClick={this.skipTutorial} > - {'Opt out of these tips.'} + <FormattedMessage + id='tutorial_tip.out' + defaultMessage='Opt out of these tips.' + /> </a> </div> </div> |