mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
implement localization
This commit is contained in:
parent
199b13ad75
commit
862da62226
|
|
@ -250,10 +250,10 @@ class Localization implements \JsonSerializable
|
|||
if ($countryCode !== '*'
|
||||
&& !\file_exists(__DIR__ . '/../Localization/Defaults/Definitions/' . $langCode . '_' . $countryCode . '.json')
|
||||
) {
|
||||
$countryCode = '*';
|
||||
$countryCode = '';
|
||||
}
|
||||
|
||||
$files = \glob(__DIR__ . '/../Localization/Defaults/Definitions/' . $langCode . '_' . $countryCode);
|
||||
$files = \glob(__DIR__ . '/../Localization/Defaults/Definitions/' . $langCode . '_' . $countryCode . '*');
|
||||
|
||||
if ($files === false) {
|
||||
$files = [];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user