mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
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
This commit is contained in:
parent
14b24ff57d
commit
2715e8ed2b
@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
namespace Icinga\Util;
|
namespace Icinga\Util;
|
||||||
|
|
||||||
use Locale;
|
|
||||||
use Icinga\Exception\IcingaException;
|
use Icinga\Exception\IcingaException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -174,9 +173,7 @@ class Translator
|
|||||||
$localeName
|
$localeName
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Locale::setDefault(static::DEFAULT_LOCALE);
|
|
||||||
} else {
|
} else {
|
||||||
Locale::setDefault($localeName);
|
|
||||||
$locale = setlocale(LC_ALL, 0);
|
$locale = setlocale(LC_ALL, 0);
|
||||||
putenv('LC_ALL=' . $locale); // Failsafe, Win and Unix
|
putenv('LC_ALL=' . $locale); // Failsafe, Win and Unix
|
||||||
putenv('LANG=' . $locale); // Windows fix, untested
|
putenv('LANG=' . $locale); // Windows fix, untested
|
||||||
|
Loading…
x
Reference in New Issue
Block a user