diff --git a/install.php b/install.php index 99a0d4e..fd6552b 100644 --- a/install.php +++ b/install.php @@ -303,7 +303,7 @@ function install_run($input) { 'errors' => array(t('install.error_delete_privilege')), 'steps' => $steps); } - $steps[] = array('success', t('install.step_privileges')); + $steps[] = array('success', t('install.step_privileges_ok')); $administrator = install_create_administrator( $connection, $input['admin_username'], $input['admin_password']); @@ -344,7 +344,7 @@ form { padding:1.35rem;border:1px solid var(--line);border-radius:.9rem;backgrou -

PHP Git 服务器安装

+

__INSTALL_HEADING__

HTML; echo i18n_language_switcher(install_page_url())."\n"; } @@ -352,23 +352,19 @@ HTML; function install_send_form($input, $errors) { $token = install_csrf_token(); if ($token === FALSE) { - echo '

当前无法初始化安全会话,无法继续安装。

' ."\n"; + echo '

'.install_escape(t('install.session_unavailable')).'

' ."\n"; return; } - echo '

检测到项目根目录没有 config.php。请先准备好一个空数据库' - .'和对应账号,填写以下信息即可导入表结构、创建首个管理员账号并生成配置文件。

' ."\n"; + echo '

'.t('install.lead').'

' ."\n"; if (!install_request_is_https()) { - echo '

当前不是 HTTPS 连接。密码将以明文传输,' - .'建议改用 HTTPS 或仅从本机访问安装页面。

' ."\n"; + echo '

'.t('install.warning_http').'

' ."\n"; } if (!extension_loaded('pdo_mysql')) { - echo '

PHP 未启用 pdo_mysql 扩展,' - .'安装无法继续。请先安装该扩展并重启 PHP。

' ."\n"; + echo '

'.t('install.error_no_pdo_mysql').'

' ."\n"; } if (!is_writable(__DIR__)) { - echo '

项目目录不可写,无法生成 config.php。' - .'请调整目录权限后刷新。

' ."\n"; + echo '

'.t('install.error_not_writable').'

' ."\n"; } if (!empty($errors)) { echo '