litespeed及openlitespeed后台管理面板默认是英文,对于大中华区的用户来说有点不便。修改方法如下:
修改文件/usr/local/lsws/admin/html.open/lib/DMsg.php
1)将const DEFAULT_LANG = ‘english’; 替换成 const DEFAULT_LANG = ‘chinese’;
2)将以下代码
$msgfile = SERVER_ROOT . self::LANG_DIR . 'en-US_msg.php'; if (file_exists($msgfile)) { maybe called from command line for converter tool include $msgfile; if ($lang != DMsg::DEFAULT_LANG) { include SERVER_ROOT . self::LANG_DIR . $filecode . '_msg.php'; } }
替换成
$msgfile = SERVER_ROOT . self::LANG_DIR . 'en-US_msg.php'; if (file_exists($msgfile)) { include $msgfile; if ($filecode != 'en-US') { include SERVER_ROOT . self::LANG_DIR . $filecode . '_msg.php'; } }