mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-09 05:38:39 +00:00
Merge branch 'develop' of https://github.com/Orange-Management/phpOMS into develop
This commit is contained in:
commit
5dd679698b
|
|
@ -168,10 +168,15 @@ final class Request extends RequestAbstract
|
||||||
return 'EN';
|
return 'EN';
|
||||||
}
|
}
|
||||||
|
|
||||||
$lang = \explode(';', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
$components = \explode(';', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
||||||
$lang = \explode('-', $lang[0]);
|
|
||||||
|
|
||||||
return $lang[0];
|
if (\stripos($components[0], ',') !== false) {
|
||||||
|
$locals = \explode(',', $components[0]);
|
||||||
|
}
|
||||||
|
|
||||||
|
$firstLocalComponents = \explode('-', $locals[0]);
|
||||||
|
|
||||||
|
return $firstLocalComponents[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user