aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/system
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/system
parent14fde3c0c46e717ac44a0b482f21f82149e2e837 (diff)
downloadsonarqube-f4c7830570b522ad83ec9168cf12755e58192d26.tar.gz
sonarqube-f4c7830570b522ad83ec9168cf12755e58192d26.zip
rewrite translation module
Diffstat (limited to 'server/sonar-web/src/main/js/apps/system')
-rw-r--r--server/sonar-web/src/main/js/apps/system/item-log-level.js3
-rw-r--r--server/sonar-web/src/main/js/apps/system/main.js3
2 files changed, 4 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/system/item-log-level.js b/server/sonar-web/src/main/js/apps/system/item-log-level.js
index e832bd086eb..e6977c40d5b 100644
--- a/server/sonar-web/src/main/js/apps/system/item-log-level.js
+++ b/server/sonar-web/src/main/js/apps/system/item-log-level.js
@@ -19,6 +19,7 @@
*/
import React from 'react';
import { setLogLevel } from '../../api/system';
+import { translate } from '../../helpers/l10n';
const LOG_LEVELS = ['INFO', 'DEBUG', 'TRACE'];
@@ -40,7 +41,7 @@ export default React.createClass({
});
let warning = this.state.level !== 'INFO' ? (
<div className="alert alert-danger spacer-top" style={{ wordBreak: 'normal' }}>
- {window.t('system.log_level.warning')}
+ {translate('system.log_level.warning')}
</div>
) : null;
return <div>
diff --git a/server/sonar-web/src/main/js/apps/system/main.js b/server/sonar-web/src/main/js/apps/system/main.js
index ef37a6600f0..17615da1265 100644
--- a/server/sonar-web/src/main/js/apps/system/main.js
+++ b/server/sonar-web/src/main/js/apps/system/main.js
@@ -21,6 +21,7 @@ import _ from 'underscore';
import React from 'react';
import { getSystemInfo } from '../../api/system';
import Section from './section';
+import { translate } from '../../helpers/l10n';
const SECTIONS_ORDER = ['SonarQube', 'Database', 'Plugins', 'System', 'ElasticSearch', 'JvmProperties',
'ComputeEngine'];
@@ -62,7 +63,7 @@ export default React.createClass({
return <div className="page">
<header className="page-header">
- <h1 className="page-title">{window.t('system_info.page')}</h1>
+ <h1 className="page-title">{translate('system_info.page')}</h1>
<div className="page-actions">
<a className="spacer-right" href={window.baseUrl + '/api/system/logs'} id="logs-link">Logs</a>
<a href={window.baseUrl + '/api/system/info'} id="download-link">Download</a>