From 85d4ed21c73cf51f112ff944080e8bf54d53608a Mon Sep 17 00:00:00 2001
From: Elias Nahum <nahumhbl@gmail.com>
Date: Tue, 26 Jan 2016 22:19:51 -0300
Subject: PLT-7: Refactoring frontend (chunk 1) - System console sidebar -
 Sytem console email settings - Error Bar - Loading Screen - Select Team Modal
 - Add npm mm-intl package

---
 .../admin_console/admin_navbar_dropdown.jsx        | 25 ++++++++++++++++++----
 1 file changed, 21 insertions(+), 4 deletions(-)

(limited to 'web/react/components/admin_console/admin_navbar_dropdown.jsx')

diff --git a/web/react/components/admin_console/admin_navbar_dropdown.jsx b/web/react/components/admin_console/admin_navbar_dropdown.jsx
index 783d45de6..dc0b3c4cb 100644
--- a/web/react/components/admin_console/admin_navbar_dropdown.jsx
+++ b/web/react/components/admin_console/admin_navbar_dropdown.jsx
@@ -7,6 +7,8 @@ import TeamStore from '../../stores/team_store.jsx';
 
 import Constants from '../../utils/constants.jsx';
 
+import {FormattedMessage} from 'mm-intl';
+
 function getStateFromStores() {
     return {currentTeam: TeamStore.getCurrent()};
 }
@@ -66,7 +68,13 @@ export default class AdminNavbarDropdown extends React.Component {
                             <a
                                 href={Utils.getWindowLocationOrigin() + '/' + this.state.currentTeam.name}
                             >
-                                {'Switch to ' + this.state.currentTeam.display_name}
+                                <FormattedMessage
+                                    id='admin.nav.switch'
+                                    defaultMessage='Switch to {display_name}'
+                                    values={{
+                                        display_name: this.state.currentTeam.display_name
+                                    }}
+                                />
                             </a>
                         </li>
                         <li>
@@ -74,7 +82,10 @@ export default class AdminNavbarDropdown extends React.Component {
                                 href='#'
                                 onClick={this.handleLogoutClick}
                             >
-                                {'Logout'}
+                                <FormattedMessage
+                                    id='admin.nav.logout'
+                                    defaultMessage='Logout'
+                                />
                             </a>
                         </li>
                         <li className='divider'></li>
@@ -83,7 +94,10 @@ export default class AdminNavbarDropdown extends React.Component {
                                 target='_blank'
                                 href='/static/help/help.html'
                             >
-                                {'Help'}
+                                <FormattedMessage
+                                    id='admin.nav.help'
+                                    defaultMessage='Help'
+                                />
                             </a>
                         </li>
                         <li>
@@ -91,7 +105,10 @@ export default class AdminNavbarDropdown extends React.Component {
                                 target='_blank'
                                 href='/static/help/report_problem.html'
                             >
-                                {'Report a Problem'}
+                                <FormattedMessage
+                                    id='admin.nav.report'
+                                    defaultMessage='Report a Problem'
+                                />
                             </a>
                         </li>
                     </ul>
-- 
cgit v1.2.3-1-g7c22

