diff options
author | sgiehl <stefan@piwik.org> | 2015-09-25 00:26:36 +0300 |
---|---|---|
committer | sgiehl <stefan@piwik.org> | 2015-10-11 12:08:57 +0300 |
commit | 3e02a250be06c5295ae821cfeeaa8619e27b6333 (patch) | |
tree | 852dd8648592b59e18ed0723663ea6a8502673b6 /core/Intl | |
parent | 0a92194e024b365bbe4778593ce4a2c9f68530fd (diff) |
added first version of numberformatter & use it for datatables
Diffstat (limited to 'core/Intl')
-rw-r--r-- | core/Intl/Locale.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/Intl/Locale.php b/core/Intl/Locale.php index 0c7676569a..05cf51a8e3 100644 --- a/core/Intl/Locale.php +++ b/core/Intl/Locale.php @@ -31,6 +31,8 @@ class Locale setlocale(LC_ALL, $newLocale); setlocale(LC_CTYPE, ''); + // Always use english for numbers. otherwise the decimal separator might get localized when casting a float to string + setlocale(LC_NUMERIC, array('en_US.UTF-8', 'en-US')); } public static function setDefaultLocale() |