summaryrefslogtreecommitdiffstats
path: root/web/react
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2016-02-04 08:29:15 -0500
committerJoramWilander <jwawilander@gmail.com>2016-02-04 13:32:33 -0500
commitb3b71c292db2dcbdcfe03db1c24fa3f57f45794e (patch)
tree55db0edb71a958f4469e63fccf1acd2495a5651c /web/react
parent44c19ee443831e0e94b5738ecb21a64ce7643247 (diff)
downloadchat-b3b71c292db2dcbdcfe03db1c24fa3f57f45794e.tar.gz
chat-b3b71c292db2dcbdcfe03db1c24fa3f57f45794e.tar.bz2
chat-b3b71c292db2dcbdcfe03db1c24fa3f57f45794e.zip
Fix license info localization
Diffstat (limited to 'web/react')
-rw-r--r--web/react/components/admin_console/license_settings.jsx14
1 files changed, 12 insertions, 2 deletions
diff --git a/web/react/components/admin_console/license_settings.jsx b/web/react/components/admin_console/license_settings.jsx
index 539acd869..1ea176ed0 100644
--- a/web/react/components/admin_console/license_settings.jsx
+++ b/web/react/components/admin_console/license_settings.jsx
@@ -109,7 +109,17 @@ class LicenseSettings extends React.Component {
);
licenseType = (
<FormattedHTMLMessage
- id='admin.license.entrepriseType'
+ id='admin.license.enterpriseType'
+ values={{
+ terms: global.window.mm_config.TermsOfServiceLink,
+ name: global.window.mm_license.Name,
+ company: global.window.mm_license.Company,
+ users: global.window.mm_license.Users,
+ issued: Utils.displayDate(parseInt(global.window.mm_license.IssuedAt, 10)) + ' ' + Utils.displayTime(parseInt(global.window.mm_license.IssuedAt, 10), true),
+ start: Utils.displayDate(parseInt(global.window.mm_license.StartsAt, 10)),
+ expires: Utils.displayDate(parseInt(global.window.mm_license.ExpiresAt, 10)),
+ ldap: global.window.mm_license.LDAP
+ }}
defaultMessage='<div><p>This compiled release of Mattermost platform is provided under a <a href="http://mattermost.com" target="_blank">commercial license</a>
from Mattermost, Inc. based on your subscription level and is subject to the <a href="{terms}" target="_blank">Terms of Service.</a></p>
<p>Your subscription details are as follows:</p>
@@ -259,4 +269,4 @@ LicenseSettings.propTypes = {
intl: intlShape.isRequired
};
-export default injectIntl(LicenseSettings); \ No newline at end of file
+export default injectIntl(LicenseSettings);