aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/widgets/old/treemap.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/widgets/old/treemap.js
parent14fde3c0c46e717ac44a0b482f21f82149e2e837 (diff)
downloadsonarqube-f4c7830570b522ad83ec9168cf12755e58192d26.tar.gz
sonarqube-f4c7830570b522ad83ec9168cf12755e58192d26.zip
rewrite translation module
Diffstat (limited to 'server/sonar-web/src/main/js/widgets/old/treemap.js')
-rw-r--r--server/sonar-web/src/main/js/widgets/old/treemap.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/widgets/old/treemap.js b/server/sonar-web/src/main/js/widgets/old/treemap.js
index ffc4faf67b5..4d8801d804b 100644
--- a/server/sonar-web/src/main/js/widgets/old/treemap.js
+++ b/server/sonar-web/src/main/js/widgets/old/treemap.js
@@ -19,6 +19,7 @@
*/
import $ from 'jquery';
import _ from 'underscore';
+import { translate } from '../../helpers/l10n';
(function () {
@@ -56,7 +57,7 @@ import _ from 'underscore';
this.filterComponents();
if (!this.components().length) {
this.maxResultsReachedLabel
- .text(window.t('treemap.all_measures_undefined'))
+ .text(translate('treemap.all_measures_undefined'))
.style('display', 'block');
return;
}