Update browserlang.php

- added french language file
This commit is contained in:
Fraenkiman 2023-10-15 23:35:51 +02:00
parent 7743c2d54a
commit b5e4e47957

View File

@ -2,7 +2,7 @@
/** /**
* Get the language code from the browser * Get the language code from the browser
* *
* @param array Allowed Languages "array('cs-cz','de-de','en-us','es-es','it-it','ja-jp','nl-nl','pt-br','sl-si')" * @param array Allowed Languages "array('cs-cz','de-de','en-us','es-es',fr-fr','it-it','ja-jp','nl-nl','pt-br','sl-si')"
* @param string Default language * @param string Default language
* @param string Language string from HTTP-Header * @param string Language string from HTTP-Header
* @param bool Strict-Mode * @param bool Strict-Mode
@ -60,6 +60,6 @@ function getBrowserLanguage($arrAllowedLanguages, $strDefaultLanguage, $strLangV
// Only enter another language abbreviation here, if the language files are available for FlatPress, the plugins, the admin area and for the setup! // Only enter another language abbreviation here, if the language files are available for FlatPress, the plugins, the admin area and for the setup!
// accept the following languages, otherwise fall back to "en-us" // accept the following languages, otherwise fall back to "en-us"
$browserLang = getBrowserLanguage(array('cs-cz', 'de-de', 'en-us', 'es-es', 'it-it', 'ja-jp', 'nl-nl', 'pt-br', 'sl-si'), 'en-us'); $browserLang = getBrowserLanguage(array('cs-cz', 'de-de', 'en-us', 'es-es', 'fr-fr', 'it-it', 'ja-jp', 'nl-nl', 'pt-br', 'sl-si'), 'en-us');
?> ?>