diff --git a/src/client/components/main_layout/Main.js b/src/client/components/main_layout/Main.js index 6d2107333b488e1eb49aefa415f3dee105746b37..0c1e3411a6ccd4e012095606fa1b0a1aba4dd4e7 100644 --- a/src/client/components/main_layout/Main.js +++ b/src/client/components/main_layout/Main.js @@ -61,12 +61,10 @@ let Main = props => { <div className={classes.layout}> <div className={classes.heroContent}> <Typography component="h1" variant="h3" align="center" color="textPrimary" gutterBottom> - Mapping Manuscript Migrations + {intl.get('appTitle.long')} </Typography> <Typography variant="h6" align="center" color="textSecondary" paragraph> - MMM is a semantic portal for finding and studying pre-modern manuscripts and their movements, - based on linked collections of Schoenberg Institute, Bodleian Library, and IRHT. - Select an application view below. + {intl.get('appDescription')} </Typography> </div> </div> diff --git a/src/client/components/main_layout/TopBar.js b/src/client/components/main_layout/TopBar.js index ecc2590a1b5d199c0c82b98d4ecd6c3293728318..42d2447d8ee6779983265c23e92ca94f76035212 100644 --- a/src/client/components/main_layout/TopBar.js +++ b/src/client/components/main_layout/TopBar.js @@ -196,7 +196,7 @@ class TopBar extends React.Component { to='/' > <Typography className={classes.title} variant="h6" color="inherit"> - {intl.get('topBar.appTitle')} + {intl.get('appTitle.short')} </Typography> </Button> <TopBarSearchField diff --git a/src/client/components/main_layout/TopBarInfoButton.js b/src/client/components/main_layout/TopBarInfoButton.js index 2c801f689fe820e63b29696451e4e97aab675458..9200cb3e3fff679b502ed18bb2d96601fbcd965a 100644 --- a/src/client/components/main_layout/TopBarInfoButton.js +++ b/src/client/components/main_layout/TopBarInfoButton.js @@ -43,7 +43,7 @@ class TopBarInfoButton extends React.Component { onClick={this.handleInfoMenuOpen} endIcon={<ExpandMoreIcon />} > - Info + {intl.get('topBar.info.info')} </Button> <Menu anchorEl={this.state.anchorEl} @@ -66,7 +66,7 @@ class TopBarInfoButton extends React.Component { to={`/about`} onClick={this.handleInfoMenuClose} > - About the project + {intl.get('topBar.info.aboutTheProject')} </MenuItem> <a className={classes.link} key={1} diff --git a/src/client/components/main_layout/TopBarSearchField.js b/src/client/components/main_layout/TopBarSearchField.js index b21981b85bb632898d71897c640617cb7187d3e8..f662e4bfa4fa186f9f8396e443b9ccda14fa5f5d 100644 --- a/src/client/components/main_layout/TopBarSearchField.js +++ b/src/client/components/main_layout/TopBarSearchField.js @@ -1,5 +1,6 @@ import React from 'react'; import PropTypes from 'prop-types'; +import intl from 'react-intl-universal'; import { withStyles } from '@material-ui/core/styles'; import { fade } from '@material-ui/core/styles/colorManipulator'; import SearchIcon from '@material-ui/icons/Search'; @@ -97,7 +98,7 @@ class TopBarSearchField extends React.Component { <SearchIcon /> </div> <InputBase - placeholder="Search all MMM content" + placeholder={intl.get('topBar.searchBarPlaceHolder')} classes={{ root: classes.inputRoot, input: classes.inputInput, diff --git a/src/client/translations/mmm/localeEN.js b/src/client/translations/mmm/localeEN.js index 248648e3dc0f9c976e556859a55110e6720d3b6b..c55eb5e5602f036c0b8172a17a607643ac3c7c87 100644 --- a/src/client/translations/mmm/localeEN.js +++ b/src/client/translations/mmm/localeEN.js @@ -1,12 +1,22 @@ export default { 'languageLabel': 'English', + 'appTitle': { + 'short': 'mmm', + 'long': 'Mapping Manuscript Migrations' + }, + 'appDescription': ` + MMM is a semantic portal for finding and studying pre-modern manuscripts and + their movements, based on linked collections of Schoenberg Institute, Bodleian Library, + and IRHT. Select an application view below. + `, 'topBar': { - 'appTitle': 'MMM', 'feedback': 'feedback', 'info': { + 'info': 'Info', 'blog': 'Blog', 'aboutTheProject': 'About the project' }, + 'searchBarPlaceHolder': 'Search all MMM content', 'instructions': 'instructions' }, 'facetBar': {