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