diff --git a/src/client/components/facet_results/ResultTable.js b/src/client/components/facet_results/ResultTable.js index 60c10aca711581d84584d9838f188d3c248a756e..701659d53f84921ea377929956a682ed6998edeb 100644 --- a/src/client/components/facet_results/ResultTable.js +++ b/src/client/components/facet_results/ResultTable.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 clsx from 'clsx'; import Table from '@material-ui/core/Table'; @@ -251,6 +252,7 @@ class ResultTable extends React.Component { }} count={resultCount} rowsPerPage={pagesize} + labelRowsPerPage={intl.get('table.rowsPerPage')} rowsPerPageOptions={[5, 10, 15, 25, 30, 50, 100]} page={page == -1 || resultCount == 0 ? 0 : page} onChangePage={this.handleChangePage} diff --git a/src/client/components/main_layout/TopBar.js b/src/client/components/main_layout/TopBar.js index a7128aa4a32756148a6a48133dfe3080b7054674..d87b976173a120fa2142d760c9ff5006e34098a3 100644 --- a/src/client/components/main_layout/TopBar.js +++ b/src/client/components/main_layout/TopBar.js @@ -13,7 +13,7 @@ import Button from '@material-ui/core/Button'; import { Link, NavLink } from 'react-router-dom'; import TopBarSearchField from './TopBarSearchField'; import TopBarInfoButton from './TopBarInfoButton'; -import TopBarLanguageButton from './TopBarLanguageButton'; +// import TopBarLanguageButton from './TopBarLanguageButton'; import Divider from '@material-ui/core/Divider'; import { has } from 'lodash'; diff --git a/src/client/translations/localeEN.js b/src/client/translations/localeEN.js index 85bafb878c112f055cd9f682026679ae477021ce..b69d3b8f8905991678c5bcf6ef88920d4fbd9eee 100644 --- a/src/client/translations/localeEN.js +++ b/src/client/translations/localeEN.js @@ -11,6 +11,10 @@ export default { 'migrations': 'migrations', 'export': 'export' }, + 'table': { + 'rowsPerPage': 'Rows per page', + 'of': 'of' + }, 'perspectives': { 'manuscripts': { 'label': 'Manuscripts', diff --git a/src/client/translations/localeFI.js b/src/client/translations/localeFI.js index e7c13f3128e7049e04ef0921bd8bb88eca1005e2..e31e1d7243814b1e859638629ecaf00c58fa44ce 100644 --- a/src/client/translations/localeFI.js +++ b/src/client/translations/localeFI.js @@ -4,4 +4,15 @@ export default { 'results': 'Tuloksia', 'narrowDownBy': 'Rajaa' }, + 'tabs': { + 'table': 'taulukko', + 'map': 'kartta', + 'production_places': 'tuotantopaikat', + 'migrations': 'migraatio', + 'export': 'lataa' + }, + 'table': { + 'rowsPerPage': 'Rows per page', + 'of': 'of' + }, };