Browse Source

Add occitan to available languages

main
Miraty 4 months ago
parent
commit
c51215a2d9
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      inc.php

+ 1
- 1
inc.php View File

@ -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…
Cancel
Save