aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/quality-gates/gate-projects-view.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/quality-gates/gate-projects-view.js')
-rw-r--r--server/sonar-web/src/main/js/apps/quality-gates/gate-projects-view.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-gates/gate-projects-view.js b/server/sonar-web/src/main/js/apps/quality-gates/gate-projects-view.js
index 7c1d884b4a7..3a655d32778 100644
--- a/server/sonar-web/src/main/js/apps/quality-gates/gate-projects-view.js
+++ b/server/sonar-web/src/main/js/apps/quality-gates/gate-projects-view.js
@@ -21,6 +21,7 @@ import _ from 'underscore';
import Marionette from 'backbone.marionette';
import Template from './templates/quality-gate-detail-projects.hbs';
import '../../components/common/select-list';
+import { translate } from '../../helpers/l10n';
export default Marionette.ItemView.extend({
template: Template,
@@ -44,14 +45,14 @@ export default Marionette.ItemView.extend({
selectParameter: 'projectId',
selectParameterValue: 'id',
labels: {
- selected: window.t('quality_gates.projects.with'),
- deselected: window.t('quality_gates.projects.without'),
- all: window.t('quality_gates.projects.all'),
- noResults: window.t('quality_gates.projects.noResults')
+ selected: translate('quality_gates.projects.with'),
+ deselected: translate('quality_gates.projects.without'),
+ all: translate('quality_gates.projects.all'),
+ noResults: translate('quality_gates.projects.noResults')
},
tooltips: {
- select: window.t('quality_gates.projects.select_hint'),
- deselect: window.t('quality_gates.projects.deselect_hint')
+ select: translate('quality_gates.projects.select_hint'),
+ deselect: translate('quality_gates.projects.deselect_hint')
}
});
}