mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 09:22:33 +00:00
UTF8 locale support for Windows
This commit is contained in:
@@ -615,6 +615,11 @@ class Steam
|
|||||||
return $this->getLanguage();
|
return $this->getLanguage();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check for Windows to replace the locale correctly.
|
||||||
|
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
|
||||||
|
$locale = str_replace('_', '-', $locale);
|
||||||
|
}
|
||||||
|
|
||||||
return $locale;
|
return $locale;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -627,7 +632,6 @@ class Steam
|
|||||||
return [
|
return [
|
||||||
sprintf('%s.utf8', $locale),
|
sprintf('%s.utf8', $locale),
|
||||||
sprintf('%s.UTF-8', $locale),
|
sprintf('%s.UTF-8', $locale),
|
||||||
str_replace('_', '-', $locale), // for Windows.
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user