Add occitan to available languages
This commit is contained in:
parent
740e04a47c
commit
c51215a2d9
2
inc.php
2
inc.php
@ -9,7 +9,7 @@ if ($forceLocale == false) {
|
|||||||
$clientLocales = $_SERVER['HTTP_ACCEPT_LANGUAGE'];
|
$clientLocales = $_SERVER['HTTP_ACCEPT_LANGUAGE'];
|
||||||
$clientLocales = preg_replace("#[A-Z0-9]|q=|;|-|\.#", "", $clientLocales);
|
$clientLocales = preg_replace("#[A-Z0-9]|q=|;|-|\.#", "", $clientLocales);
|
||||||
$clientLocales = explode(',', $clientLocales);
|
$clientLocales = explode(',', $clientLocales);
|
||||||
$availableLocales = array('fr', 'en', 'template');
|
$availableLocales = array('en', 'fr', 'oc', 'template');
|
||||||
foreach ($clientLocales as $clientLocale) {
|
foreach ($clientLocales as $clientLocale) {
|
||||||
if (in_array($clientLocale, $availableLocales)) {
|
if (in_array($clientLocale, $availableLocales)) {
|
||||||
$locale = $clientLocale;
|
$locale = $clientLocale;
|
||||||
|
Loading…
Reference in New Issue
Block a user