后台控制器中语言提取到语言包

This commit is contained in:
TL 2022-08-16 18:46:36 +08:00
parent 00790c1d6c
commit 728871ef14
6 changed files with 43 additions and 5 deletions

View File

@ -34,7 +34,7 @@ class ForgottenController
public function sendVerifyCode(Request $request) public function sendVerifyCode(Request $request)
{ {
UserService::sendVerifyCodeForForgotten($request->get('email')); UserService::sendVerifyCodeForForgotten($request->get('email'));
return json_success('验证码已发送,请查看并输入验证码'); return json_success(trans('admin/forgotten.verify_code_sent'));
} }
/** /**

View File

@ -27,13 +27,13 @@ class SettingController extends Controller
public function index() public function index()
{ {
$themes = [ $themes = [
['value' => 'default', 'label' => '默认主题'], ['value' => 'default', 'label' => trans('admin/setting.theme_default')],
['value' => 'black', 'label' => '黑色主题'] ['value' => 'black', 'label' => trans('admin/setting.theme_black')]
]; ];
$tax_address = [ $tax_address = [
['value' => 'shipping', 'label' => '配送地址'], ['value' => 'shipping', 'label' => trans('admin/setting.shipping_address')],
['value' => 'payment', 'label' => '账单地址'] ['value' => 'payment', 'label' => trans('admin/setting.payment_address')]
]; ];
$data = [ $data = [

View File

@ -0,0 +1,14 @@
<?php
/**
* forgotten.php
*
* @copyright 2022 opencart.cn - All Rights Reserved
* @link http://www.guangdawangluo.com
* @author TL <mengwb@opencart.cn>
* @created 2022-08-16 17:22:41
* @modified 2022-08-16 17:22:41
*/
return [
'verify_code_sent' => 'Verify Code sent successfully',
];

View File

@ -15,4 +15,9 @@ return [
'design_index' => 'Design Builder', 'design_index' => 'Design Builder',
'design_footer_index' => 'Design Footer', 'design_footer_index' => 'Design Footer',
'design_menu_index' => 'Design Menu', 'design_menu_index' => 'Design Menu',
'theme_default' => 'Default Theme',
'theme_black' => 'Black Theme',
'shipping_address' => 'Shipping Address',
'payment_address' => 'Billing Address',
]; ];

View File

@ -0,0 +1,14 @@
<?php
/**
* forgotten.php
*
* @copyright 2022 opencart.cn - All Rights Reserved
* @link http://www.guangdawangluo.com
* @author TL <mengwb@opencart.cn>
* @created 2022-08-16 17:22:41
* @modified 2022-08-16 17:22:41
*/
return [
'verify_code_sent' => '验证码已发送,请查看并输入验证码',
];

View File

@ -15,4 +15,9 @@ return [
'design_index' => '首页编辑器', 'design_index' => '首页编辑器',
'design_footer_index' => '页尾编辑器', 'design_footer_index' => '页尾编辑器',
'design_menu_index' => '导航编辑器', 'design_menu_index' => '导航编辑器',
'theme_default' => '默认主题',
'theme_black' => '黑色主题',
'shipping_address' => '发货地址',
'payment_address' => '账单地址',
]; ];