aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/overview/components/domain-timeline.js
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-01-06 16:14:25 +0100
committerStas Vilchik <vilchiks@gmail.com>2016-01-06 16:25:12 +0100
commitf4c7830570b522ad83ec9168cf12755e58192d26 (patch)
tree60cb773e73bd4cd17b5d83191897d439ea0bbad5 /server/sonar-web/src/main/js/apps/overview/components/domain-timeline.js
parent14fde3c0c46e717ac44a0b482f21f82149e2e837 (diff)
downloadsonarqube-f4c7830570b522ad83ec9168cf12755e58192d26.tar.gz
sonarqube-f4c7830570b522ad83ec9168cf12755e58192d26.zip
rewrite translation module
Diffstat (limited to 'server/sonar-web/src/main/js/apps/overview/components/domain-timeline.js')
-rw-r--r--server/sonar-web/src/main/js/apps/overview/components/domain-timeline.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/overview/components/domain-timeline.js b/server/sonar-web/src/main/js/apps/overview/components/domain-timeline.js
index ad3898d5e17..40e50720eba 100644
--- a/server/sonar-web/src/main/js/apps/overview/components/domain-timeline.js
+++ b/server/sonar-web/src/main/js/apps/overview/components/domain-timeline.js
@@ -27,6 +27,7 @@ import { getEvents } from '../../../api/events';
import { formatMeasure, groupByDomain } from '../../../helpers/measures';
import { getShortType } from '../helpers/metrics';
import { Timeline } from './timeline-chart';
+import { translate } from '../../../helpers/l10n';
const HEIGHT = 280;
@@ -244,7 +245,7 @@ export const DomainTimeline = React.createClass({
return <div className="overview-domain-chart">
<div className="overview-card-header">
<div>
- <h2 className="overview-title">{window.t('overview.chart.history')}</h2>
+ <h2 className="overview-title">{translate('overview.chart.history')}</h2>
{this.renderTimelineMetricSelect()}
</div>
{this.renderComparisonMetricSelect()}