Add Chinese translation for runtime checking

This commit is contained in:
printempw 2017-06-27 20:09:42 +08:00
parent 6aebb483a1
commit 27c7a77f04
2 changed files with 8 additions and 2 deletions

View File

@ -398,7 +398,10 @@ if (! function_exists('runtime_check')) {
{
foreach ($requirements['extensions'] as $extension) {
if (!extension_loaded($extension)) {
exit("[Error] You have not installed the $extension extension");
exit(
"[Error] You have not installed the $extension extension <br>".
"[错误] 你尚未安装 $extension 扩展!安装方法请自行搜索,蟹蟹。"
);
}
}
}

View File

@ -11,7 +11,10 @@
// check PHP version
if (version_compare(PHP_VERSION, '5.5.9', '<')) {
exit('[Error] Blessing Skin Server needs PHP version >= 5.5.9, you are now using '.PHP_VERSION);
exit(
'[Error] Blessing Skin Server needs PHP version >= 5.5.9, you are now using '.PHP_VERSION.'<br>'.
'[错误] 你的 PHP 版本过低('.PHP_VERSION.'Blessing Skin Server 要求至少为 5.5.9'
);
}
require __DIR__.'/bootstrap/autoload.php';