import { FormattedMessage } from 'react-intl';
import WarningIcon from 'sonar-ui-common/components/icons/WarningIcon';
import { lazyLoad } from 'sonar-ui-common/components/lazyLoad';
-import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
+import { translate } from 'sonar-ui-common/helpers/l10n';
const AnalysisWarningsModal = lazyLoad(() =>
import('../../../../components/common/AnalysisWarningsModal')
<div className="badge badge-focus badge-medium display-inline-flex-center js-component-analysis-warnings flex-1">
<WarningIcon className="spacer-right" />
<FormattedMessage
- defaultMessage={translate('component_navigation.last_analsys_had_warnings')}
- id="component_navigation.last_analsys_had_warnings"
+ defaultMessage={translate('component_navigation.last_analysis_had_warnings')}
+ id="component_navigation.last_analysis_had_warnings"
values={{
warnings: (
<a href="#" onClick={this.handleClick}>
- {translateWithParameters(
- 'component_navigation.x_warnings',
- String(this.props.warnings.length)
- )}
+ <FormattedMessage
+ defaultMessage={translate('component_navigation.x_warnings')}
+ id="component_navigation.x_warnings"
+ values={{
+ warningsCount: this.props.warnings.length
+ }}
+ />
</a>
)
}}
className="spacer-right"
/>
<FormattedMessage
- defaultMessage="component_navigation.last_analsys_had_warnings"
- id="component_navigation.last_analsys_had_warnings"
+ defaultMessage="component_navigation.last_analysis_had_warnings"
+ id="component_navigation.last_analysis_had_warnings"
values={
Object {
"warnings": <a
href="#"
onClick={[Function]}
>
- component_navigation.x_warnings.1
+ <FormattedMessage
+ defaultMessage="component_navigation.x_warnings"
+ id="component_navigation.x_warnings"
+ values={
+ Object {
+ "warningsCount": 1,
+ }
+ }
+ />
</a>,
}
}
component_navigation.status.in_progress.admin=The analysis is in progress. More details available on the {url} page.
component_navigation.status.last_blocked_due_to_bad_license=Last analysis blocked due to an invalid license, which has since been corrected. Please reanalyze this project.
-component_navigation.last_analsys_had_warnings=Last analysis had {warnings}
-component_navigation.x_warnings={0} warnings
+component_navigation.last_analysis_had_warnings=Last analysis had {warnings}
+component_navigation.x_warnings={warningsCount} {warningsCount, plural, one {warning} other {warnings}}
+
background_task.status.ALL=All
background_task.status.PENDING=Pending