mirror of
https://github.com/rottenwheel/moner.ooo.git
synced 2024-11-10 05:03:44 +01:00
pt-BR fix
This commit is contained in:
parent
1f6bbb915b
commit
091714abf3
@ -124,11 +124,11 @@ if(array_key_exists('HTTP_ACCEPT_LANGUAGE', $_SERVER)){
|
||||
$lang = "en";
|
||||
}
|
||||
|
||||
if($lang == 'zh'){
|
||||
if($lang == 'zh' || $lang == 'pt' ){
|
||||
$lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 5);
|
||||
}
|
||||
|
||||
$acceptLang = ['de','es','it','zh-CN','nl','pl','el','pt','ru'];
|
||||
$acceptLang = ['de','es','it','zh-CN','nl','pl','el','pt-BR','ru'];
|
||||
$lang = in_array($lang, $acceptLang) ? $lang : 'en';
|
||||
$lang = strtolower($lang);
|
||||
require_once "lang/{$lang}.php";
|
||||
|
Loading…
Reference in New Issue
Block a user