'发生错误', 'Home' => '返回主页', 'Previous Page' => '返回上一页', 'The page you are looking for is temporarily unavailable' => '你所浏览的页面暂时无法访问', 'You can return to the previous page and try again' => '你可以返回上一页重试' ]; $langSet = ''; if (isset($_GET['lang'])) { $langSet = strtolower($_GET['lang']); } elseif (isset($_COOKIE['think_var'])) { $langSet = strtolower($_COOKIE['think_var']); } elseif (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) { preg_match('/^([a-z\d\-]+)/i', $_SERVER['HTTP_ACCEPT_LANGUAGE'], $matches); $langSet = strtolower($matches[1]); } $langSet = $langSet && in_array($langSet, ['zh-cn', 'en']) ? $langSet : 'zh-cn'; $langSet == 'en' && $lang = array_combine(array_keys($lang), array_keys($lang)); ?>
=$lang['You can return to the previous page and try again']?>