diff --git a/src/components/monitor/list-monitor-scroller.jsx b/src/components/monitor/list-monitor-scroller.jsx index a62c0c0e2ae7aa2279a00205071af853a222d34b..cfcd6a248b86fb41df48d3f6097e8511546191a7 100644 --- a/src/components/monitor/list-monitor-scroller.jsx +++ b/src/components/monitor/list-monitor-scroller.jsx @@ -2,6 +2,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import bindAll from 'lodash.bindall'; +import {FormattedMessage} from 'react-intl'; import styles from './monitor.css'; import {List} from 'react-virtualized'; @@ -21,7 +22,11 @@ class ListMonitorScroller extends React.Component { noRowsRenderer () { return ( <div className={classNames(styles.listRow, styles.listEmpty)}> - {'(empty)' /* TODO waiting for design before translation */} + <FormattedMessage + defaultMessage="(empty)" + description="Text shown on a list monitor when a list is empty" + id="gui.monitor.listMonitor.empty" + /> </div> ); } diff --git a/src/components/monitor/list-monitor.jsx b/src/components/monitor/list-monitor.jsx index daa9f33eb47f83ca56e6af080582d9c0f3234221..e3422e5b31deccb88b59eb3d54b1eebbb3d323c9 100644 --- a/src/components/monitor/list-monitor.jsx +++ b/src/components/monitor/list-monitor.jsx @@ -1,6 +1,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; +import {FormattedMessage} from 'react-intl'; import styles from './monitor.css'; import ListMonitorScroller from './list-monitor-scroller.jsx'; @@ -32,7 +33,14 @@ const ListMonitor = ({draggable, label, width, height, value, onResizeMouseDown, {'+' /* TODO waiting on asset */} </div> <div className={styles.footerLength}> - {`length ${value.length}`} + <FormattedMessage + defaultMessage="length {length}" + description="Length label on list monitors. DO NOT translate {length} (with brackets)." + id="gui.monitor.listMonitor.listLength" + values={{ + length: value.length + }} + /> </div> <div className={classNames(draggable ? styles.resizeHandle : null, 'no-drag')}