From 2715e8ed2b49e0eea914d6964ed76c4a0d56ed79 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Tue, 19 May 2015 16:21:36 +0200 Subject: [PATCH] Revert "Set default locale for the intl extension upon locale detection" This reverts commit 06830e035e7227e1fe48eaac66ce2d3f2d86913d. We don't use the intl extension at the moment. refs #6778 --- library/Icinga/Util/Translator.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/library/Icinga/Util/Translator.php b/library/Icinga/Util/Translator.php index 60f136cc0..67825b63b 100644 --- a/library/Icinga/Util/Translator.php +++ b/library/Icinga/Util/Translator.php @@ -3,7 +3,6 @@ namespace Icinga\Util; -use Locale; use Icinga\Exception\IcingaException; /** @@ -174,9 +173,7 @@ class Translator $localeName ); } - Locale::setDefault(static::DEFAULT_LOCALE); } else { - Locale::setDefault($localeName); $locale = setlocale(LC_ALL, 0); putenv('LC_ALL=' . $locale); // Failsafe, Win and Unix putenv('LANG=' . $locale); // Windows fix, untested