webpack/components/PreupgradeReports/PreupgradeReports.js in foreman_leapp-0.1.13 vs webpack/components/PreupgradeReports/PreupgradeReports.js in foreman_leapp-0.1.14

- old
+ new

@@ -1,9 +1,10 @@ import React, { useState } from 'react'; import MessageBox from 'foremanReact/components/common/MessageBox'; import { LoadingState, Row } from 'patternfly-react'; import PropTypes from 'prop-types'; +import { sprintf, translate as __ } from 'foremanReact/common/I18n'; import PreupgradeReportsList from '../PreupgradeReportsList'; import UpgradeAllButton from './components/UpgradeAllButton'; import EntriesFilter from './components/EntriesFilter'; import FixSelectedButton from './components/FixSelectedButton'; @@ -116,10 +117,13 @@ if (!isEmpty(error)) { return ( <MessageBox key="preupgrade-reports-error" icontype="error-circle-o" - msg={`Could not retrieve data: ${error.statusText} - ${error.errorMsg}`} + msg={sprintf(__('Could not retrieve data: %(status) - %(msg)'), { + status: error.statusText, + msg: error.errorMsg, + })} /> ); } return (