From 091714abf3c0a89251aba9e6854a506c73a233a1 Mon Sep 17 00:00:00 2001 From: Luke <17616949+nice42q@users.noreply.github.com> Date: Sat, 15 Jun 2024 10:38:20 +0200 Subject: [PATCH] pt-BR fix --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 2a774aa..40d4a52 100644 --- a/index.php +++ b/index.php @@ -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";