diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 11:30:22 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 11:30:22 +0000 |
commit | 9919ea7a76a4bf1eaffe5e288ab82dcafeb775ce (patch) | |
tree | b00a07aca10f581c2be69d612a0a397a415eeb6b /vendor/ipl/i18n/src | |
parent | Releasing progress-linux version 0.13.1-1~progress7.99u1. (diff) | |
download | icinga-php-library-9919ea7a76a4bf1eaffe5e288ab82dcafeb775ce.tar.xz icinga-php-library-9919ea7a76a4bf1eaffe5e288ab82dcafeb775ce.zip |
Merging upstream version 0.13.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/ipl/i18n/src')
-rw-r--r-- | vendor/ipl/i18n/src/GettextTranslator.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vendor/ipl/i18n/src/GettextTranslator.php b/vendor/ipl/i18n/src/GettextTranslator.php index 288a489..ee0cee4 100644 --- a/vendor/ipl/i18n/src/GettextTranslator.php +++ b/vendor/ipl/i18n/src/GettextTranslator.php @@ -2,6 +2,7 @@ namespace ipl\I18n; +use Locale; use FilesystemIterator; use ipl\Stdlib\Contract\Translator; use SplFileInfo; @@ -195,6 +196,7 @@ class GettextTranslator implements Translator { putenv("LANGUAGE=$locale.UTF-8"); setlocale(LC_ALL, $locale . '.UTF-8'); + Locale::setDefault($locale . '.UTF-8'); $this->loadTranslations(); |