Revert "Set default locale for the intl extension upon locale detection"

This reverts commit 06830e035e.

We don't use the intl extension at the moment.

refs #6778
This commit is contained in:
Eric Lippmann 2015-05-19 16:21:36 +02:00
parent 14b24ff57d
commit 2715e8ed2b
1 changed files with 0 additions and 3 deletions

View File

@ -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