diff options
author | sgiehl <stefan@piwik.org> | 2015-09-25 22:38:10 +0300 |
---|---|---|
committer | sgiehl <stefan@piwik.org> | 2015-10-11 12:08:58 +0300 |
commit | a9b59fd73afd46c5fc03e0ced28dd7df42385b2d (patch) | |
tree | 2f8b4464e74890b567d47eafd6d92824900f760e /plugins/Morpheus | |
parent | 7558648190511ff01ed72392888aa3bcf7f09e76 (diff) |
added number formatter for jqplot and use it for numbers in yaxis
Diffstat (limited to 'plugins/Morpheus')
-rw-r--r-- | plugins/Morpheus/templates/_jsGlobalVariables.twig | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/Morpheus/templates/_jsGlobalVariables.twig b/plugins/Morpheus/templates/_jsGlobalVariables.twig index 35643089ea..ed38f98e67 100644 --- a/plugins/Morpheus/templates/_jsGlobalVariables.twig +++ b/plugins/Morpheus/templates/_jsGlobalVariables.twig @@ -3,6 +3,18 @@ piwik.token_auth = "{{ token_auth }}"; piwik.piwik_url = "{{ piwikUrl }}"; piwik.cacheBuster = "{{ cacheBuster }}"; + + piwik.numbers = { + patternPositive: "{{ 'Intl_NumberFormat'|translate }}", + patternNegative: "{{ 'Intl_NumberFormatNegative'|translate }}", + patternPercent: "{{ 'Intl_NumberFormatPercent'|translate }}", + symbolPlus: "{{ 'Intl_NumberSymbolPlus'|translate }}", + symbolMinus: "{{ 'Intl_NumberSymbolMinus'|translate }}", + symbolPercent: "{{ 'Intl_NumberSymbolPercent'|translate }}", + symbolGroup: "{{ 'Intl_NumberSymbolGroup'|translate }}", + symbolDecimal: "{{ 'Intl_NumberSymbolDecimal'|translate }}" + }; + {% if userLogin %}piwik.userLogin = "{{ userLogin|e('js')}}";{% endif %} {% if idSite is defined %}piwik.idSite = "{{ idSite }}";{% endif %} |