代码拉取完成,页面将自动刷新
当你使用英文版时,应该会出现js错误,提示是var lang undefined.
原因:
lang.php在获取\Application\Common\Lang\en-us.php时,此文档使用了get_all_module_lang函数,但是由于lang.php没有引用全局函数,所以导致出错。
解决方法:
1.到最后一行,
把 return get_all_module_lang($common_lang);
return function_exists('get_all_module_lang') ? get_all_module_lang($common_lang) : $common_lang;
ps:如果有其它翻译的文档,也要这样做,不然一样出错