Skip to content
Snippets Groups Projects
Commit 540b38af authored by esikkala's avatar esikkala
Browse files

Translate result table buttons

parent 3a44a7a8
No related branches found
No related tags found
No related merge requests found
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}
......
......@@ -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';
......
......@@ -11,6 +11,10 @@ export default {
'migrations': 'migrations',
'export': 'export'
},
'table': {
'rowsPerPage': 'Rows per page',
'of': 'of'
},
'perspectives': {
'manuscripts': {
'label': 'Manuscripts',
......
......@@ -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'
},
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment