Explorar el Código

登录账号密码错误翻译

jqh hace 4 años
padre
commit
8edabcfaea

+ 1 - 0
resources/lang/en/admin.php

@@ -216,6 +216,7 @@ return [
     'install_succeeded'         => 'Install succeeded !',
     'invalid_extension_package' => 'Invalid extension package !',
     'copied'                    => 'Copied',
+    'auth_failed'               => 'These credentials do not match our records.',
     'validation'               => [
         'match'     => 'The :attribute and :other must match.',
         'minlength' => 'The :attribute must be at least :min characters.',

+ 1 - 0
resources/lang/zh_CN/admin.php

@@ -217,6 +217,7 @@ return [
     'install_succeeded'         => '安装成功',
     'invalid_extension_package' => '安装包异常',
     'copied'                    => '已复制',
+    'auth_failed'               => '账号或密码错误',
     'validation'               => [
         'match'     => '与 :attribute 不匹配。',
         'minlength' => ':attribute 字符长度不能少于 :min。',

+ 1 - 0
resources/lang/zh_TW/admin.php

@@ -217,6 +217,7 @@ return [
     'install_succeeded'         => '本地安裝',
     'invalid_extension_package' => '安裝包異常',
     'copied'                    => '已複製',
+    'auth_failed'               => '帳號或密碼錯誤',
     'validation'               => [
         'match'     => '與 :attribute 不匹配。',
         'minlength' => ':attribute 長度不能少於 :min。',

+ 2 - 2
src/Http/Controllers/AuthController.php

@@ -215,8 +215,8 @@ class AuthController extends Controller
      */
     protected function getFailedLoginMessage()
     {
-        return Lang::has('auth.failed')
-            ? trans('auth.failed')
+        return Lang::has('admin.auth_failed')
+            ? trans('admin.auth_failed')
             : 'These credentials do not match our records.';
     }