Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core/Intl
diff options
context:
space:
mode:
authorPeter Boehlke <project-management@media-proweb.de>2017-03-31 14:01:02 +0300
committerStefan Giehl <stefan@piwik.org>2017-03-31 14:01:02 +0300
commiteb121d6a338858738bf5d4cc3d6e907f72208f40 (patch)
tree05bfff57e4ee93c658fde7825b13334b3fb0efd9 /core/Intl
parentea6491028c4f90948d70ca51167f996fa6c3136a (diff)
NumberFormatter usw fallback if locale en_US not installed (#11571)
Fixes "Error in the display of localized numbers" #10594
Diffstat (limited to 'core/Intl')
-rw-r--r--core/Intl/Locale.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Intl/Locale.php b/core/Intl/Locale.php
index 05cf51a8e3..684861237e 100644
--- a/core/Intl/Locale.php
+++ b/core/Intl/Locale.php
@@ -32,7 +32,7 @@ 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'));
+ setlocale(LC_NUMERIC, array('en_US.UTF-8', 'en-US', 'C.UTF-8', 'C'));
}
public static function setDefaultLocale()