Update Kirby to 3.7.4
This commit is contained in:
9
kirby/src/Toolkit/Locale.php
Executable file → Normal file
9
kirby/src/Toolkit/Locale.php
Executable file → Normal file
@@ -135,9 +135,18 @@ class Locale
|
||||
{
|
||||
$locale = static::normalize($locale);
|
||||
|
||||
// locale for core string functions
|
||||
foreach ($locale as $key => $value) {
|
||||
setlocale($key, $value);
|
||||
}
|
||||
|
||||
// locale for the intl extension
|
||||
if (
|
||||
function_exists('locale_set_default') === true &&
|
||||
$timeLocale = $locale[LC_TIME] ?? $locale[LC_ALL] ?? null
|
||||
) {
|
||||
locale_set_default($timeLocale);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user