parent
0cc68b7665
commit
050d69ea27
1 changed files with 3 additions and 1 deletions
|
@ -116,12 +116,14 @@ class LanguageManager
|
|||
*/
|
||||
public function setPhpDateTimeLocale(string $language): void
|
||||
{
|
||||
$isoLang = $this->localeMap[$language]['iso'] ?? false;
|
||||
$isoLang = $this->localeMap[$language]['iso'] ?? '';
|
||||
$isoLangPrefix = explode('_', $isoLang)[0];
|
||||
|
||||
$locales = array_filter([
|
||||
$isoLang ? $isoLang . '.utf8' : false,
|
||||
$isoLang ?: false,
|
||||
$isoLang ? str_replace('_', '-', $isoLang) : false,
|
||||
$isoLang ? $isoLangPrefix . '.UTF-8' : false,
|
||||
$this->localeMap[$language]['windows'] ?? false,
|
||||
$language,
|
||||
]);
|
||||
|
|
Loading…
Reference in a new issue