From 138ddbb2d3fcbcda680a1e24d82c74d5406f7852 Mon Sep 17 00:00:00 2001 From: Karson <karsonzhang@163.com> Date: Thu, 27 Apr 2017 12:12:21 +0800 Subject: [PATCH] 新增一处后台语言 --- application/admin/controller/Index.php | 4 ++-- application/admin/lang/zh-cn.php | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/application/admin/controller/Index.php b/application/admin/controller/Index.php index f70d507..6f222d0 100644 --- a/application/admin/controller/Index.php +++ b/application/admin/controller/Index.php @@ -76,12 +76,12 @@ class Index extends Backend $result = $this->auth->login($username, $password, $keeplogin ? 86400 : 0); if ($result === true) { - $this->success(__('Login success'), $url); + $this->success(__('Login successful'), $url); return; } else { - $this->success(__('Username or password is incorrect'), $url); + $this->error(__('Username or password is incorrect'), $url); } return; } diff --git a/application/admin/lang/zh-cn.php b/application/admin/lang/zh-cn.php index af8992e..61d6583 100644 --- a/application/admin/lang/zh-cn.php +++ b/application/admin/lang/zh-cn.php @@ -107,6 +107,7 @@ return [ 'Username or password is incorrect' => '用户名或密码不正确', 'Username is incorrect' => '用户名不正确', 'Password is incorrect' => '密码不正确', + 'Login successful' => '登录成功!', 'Verification code is incorrect' => '验证码不正确', 'An unexpected error occurred' => '发生了一个意外错误,程序猿正在紧急处理中', 'This page will be re-directed in %s seconds' => '页面将在 %s 秒后自动跳转', -- libgit2 0.24.0