## 支持中文(繁体)
![](https://img.kancloud.cn/ca/16/ca164316ebca84476119b459a26aedd5_1595x673.png)
![](https://img.kancloud.cn/be/14/be144a39189417ba7df920fa3fc8384e_1386x897.png)
![](https://img.kancloud.cn/d5/2e/d52ed1c0012533dbaad5d8ebf704d80d_1474x980.png)
bitrix/php_interface/dbconn.php
```
<?php
define("BX\_USE\_MYSQLI", true);
$DBDebug \= false;
$DBDebugToFile \= false;
define("CACHED\_b\_file", 3600);
define("CACHED\_b\_file\_bucket\_size", 10);
define("CACHED\_b\_lang", 3600);
define("CACHED\_b\_option", 3600);
define("CACHED\_b\_lang\_domain", 3600);
define("CACHED\_b\_site\_template", 3600);
define("CACHED\_b\_event", 3600);
define("CACHED\_b\_agent", 3660);
define("CACHED\_menu", 3600);
define("BX\_FILE\_PERMISSIONS", 0644);
define("BX\_DIR\_PERMISSIONS", 0755);
@umask(~(BX\_FILE\_PERMISSIONS | BX\_DIR\_PERMISSIONS) & 0777);
@ini\_set("memory\_limit", "1024M");
define("BX\_DISABLE\_INDEX\_PAGE", true);
define("BX\_UTF", true);
mb\_internal\_encoding("UTF-8");
?>
<?
$arLang \= array("en", "pl", "la","cn");
if (isset($\_GET\["user\_lang"\]) && in\_array($\_GET\["user\_lang"\], $arLang))
{
setcookie("USER\_LANG", $\_GET\["user\_lang"\], time()+9999999, "/");
define("LANGUAGE\_ID", $\_GET\["user\_lang"\]);
}
elseif(isset($\_COOKIE\["USER\_LANG"\]) && in\_array($\_COOKIE\["USER\_LANG"\], $arLang))
{
define("LANGUAGE\_ID", $\_COOKIE\["USER\_LANG"\]);
}
?>
```
bitrix/templates/bitrix24/header.php
```
function replaceQueryParam(param, newval, search)
{
var regex = new RegExp("(\[?;&\])" \+ param + "\[^&;\]\*\[;&\]?");
var query = search.replace(regex, "$1").replace(/&$/, '');
return (query.length \> 2 ? query + "&" : "?") + (newval ? param + "=" \+ newval : '');
}
function action\_lang()
{
window.location \= replaceQueryParam('user\_lang', document.getElementsByName('Lang')\[0\].value, window.location.search);
}
```
![](https://img.kancloud.cn/de/65/de652971d289c1bf2c1649ccf6d7c947_1629x696.png)
bitrix/templates/bitrix24/footer.php
```
<?echo CLanguage::SelectBox('Lang', LANGUAGE_ID,'','action_lang()');?>
```
![](https://img.kancloud.cn/fc/32/fc3279e1e7c7a32d381529ab201688ce_1592x619.png)