fixed languages

This commit is contained in:
Edward Yang 2022-08-04 11:06:24 +08:00
parent 5890db5e08
commit c63af2b89b
29 changed files with 228 additions and 25 deletions

View File

@ -102,10 +102,8 @@ class PermissionRepo
*/
private function getSettingPermissions(): array
{
$items = [
['code' => 'settings_index', 'name' => trans('setting.settings_index'), 'selected' => $this->hasPermission('settings_index')],
['code' => 'design_index', 'name' => trans('setting.design_index'), 'selected' => $this->hasPermission('design_index')],
];
$routes = ['settings_index', 'design_index'];
$items = $this->getPermissionList('setting', $routes);
return hook_filter('role.setting_permissions', $items);
}
@ -199,7 +197,7 @@ class PermissionRepo
{
$items = [];
foreach ($routes as $route) {
$items[] = ['code' => $route, 'name' => trans("{$module}.{$route}"), 'selected' => $this->hasPermission($route)];
$items[] = ['code' => $route, 'name' => trans("admin/{$module}.{$route}"), 'selected' => $this->hasPermission($route)];
}
return $items;
}

View File

@ -192,4 +192,4 @@
}
});
</script>
@endpush
@endpush

View File

@ -0,0 +1,18 @@
<?php
/**
* header.php
*
* @copyright 2022 opencart.cn - All Rights Reserved
* @link http://www.guangdawangluo.com
* @author Edward Yang <yangjin@opencart.cn>
* @created 2022-08-02 19:03:19
* @modified 2022-08-02 19:03:19
*/
return [
'admin_users_index' => 'Index',
'admin_users_create' => 'Create',
'admin_users_edit' => 'Detail',
'admin_users_update' => 'Edit',
'admin_users_delete' => 'Delete'
];

View File

@ -0,0 +1,15 @@
<?php
/**
* account.php
*
* @copyright 2022 opencart.cn - All Rights Reserved
* @link http://www.guangdawangluo.com
* @author Edward Yang <yangjin@opencart.cn>
* @created 2022-08-04 10:59:15
* @modified 2022-08-04 10:59:15
*/
return [
'login' => 'Login',
'new_account' => 'New Account',
];

View File

@ -11,5 +11,4 @@
return [
'decimal_point' => '.',
'thousand_point' => ',',
];

View File

@ -10,6 +10,6 @@
*/
return [
'select_all' => '选中所有',
'unselect_all' => '取消选中',
'select_all' => 'Select All',
'unselect_all' => 'Unselect All',
];

View File

@ -10,5 +10,5 @@
*/
return [
'edit' => '编辑',
'edit' => 'Edit',
];

View File

@ -0,0 +1,19 @@
<?php
/**
* currency.php
*
* @copyright 2022 opencart.cn - All Rights Reserved
* @link http://www.guangdawangluo.com
* @author TL <mengwb@opencart.cn>
* @created 2022-07-28 17:21:38
* @modified 2022-07-28 17:21:38
*/
return [
'decimal_point' => '.',
'thousand_point' => ',',
'currencies_index' => 'Index',
'currencies_create' => 'Create',
'currencies_edit' => 'Detail',
'currencies_update' => 'Edit',
'currencies_delete' => 'Delete'
];

View File

@ -0,0 +1,18 @@
<?php
/**
* order.php
*
* @copyright 2022 opencart.cn - All Rights Reserved
* @link http://www.guangdawangluo.com
* @author Edward Yang <yangjin@opencart.cn>
* @created 2022-08-02 14:22:41
* @modified 2022-08-02 14:22:41
*/
return [
'customers_index' => 'Index',
'customers_create' => 'Create',
'customers_edit' => 'Detail',
'customers_update' => 'Edit',
'customers_delete' => 'Delete'
];

View File

@ -10,9 +10,9 @@
*/
return [
'home' => '管理首页',
'order' => '订单管理',
'product' => '商品管理',
'customer' => '会员管理',
'setting' => '系统设置',
'home' => 'Home',
'order' => 'Orders',
'product' => 'Products',
'customer' => 'Customers',
'setting' => 'Settings',
];

View File

@ -10,9 +10,9 @@
*/
return [
'orders_index' => '订单列表',
'orders_create' => '创建订单',
'orders_edit' => '订单详情',
'orders_update' => '更新订单',
'orders_delete' => '删除订单',
'orders_index' => 'Index',
'orders_create' => 'Create',
'orders_edit' => 'Detail',
'orders_update' => 'Update',
'orders_delete' => 'Delete',
];

View File

@ -0,0 +1,20 @@
<?php
/**
* order.php
*
* @copyright 2022 opencart.cn - All Rights Reserved
* @link http://www.guangdawangluo.com
* @author Edward Yang <yangjin@opencart.cn>
* @created 2022-08-02 14:22:41
* @modified 2022-08-02 14:22:41
*/
return [
'plugins_index' => 'Index',
'plugins_import' => 'Import',
'plugins_edit' => 'Detail',
'plugins_update' => 'Update',
'plugins_update_status' => 'Delete',
'plugins_install' => 'Install',
'plugins_uninstall' => 'Uninstall',
];

View File

@ -10,9 +10,9 @@
*/
return [
'products_index' => '产品列表',
'products_create' => '创建产品',
'products_edit' => '产品详情',
'products_update' => '更新产品',
'products_delete' => '删除产品',
'products_index' => 'Index',
'products_create' => 'Create',
'products_edit' => 'Detail',
'products_update' => 'Edit',
'products_delete' => 'Delete'
];

View File

@ -0,0 +1,18 @@
<?php
/**
* order.php
*
* @copyright 2022 opencart.cn - All Rights Reserved
* @link http://www.guangdawangluo.com
* @author Edward Yang <yangjin@opencart.cn>
* @created 2022-08-02 14:22:41
* @modified 2022-08-02 14:22:41
*/
return [
'regions_index' => 'Index',
'regions_create' => 'Create',
'regions_edit' => 'Detail',
'regions_update' => 'Edit',
'regions_delete' => 'Delete'
];

View File

@ -0,0 +1,15 @@
<?php
/**
* order.php
*
* @copyright 2022 opencart.cn - All Rights Reserved
* @link http://www.guangdawangluo.com
* @author Edward Yang <yangjin@opencart.cn>
* @created 2022-08-02 14:22:41
* @modified 2022-08-02 14:22:41
*/
return [
'settings_index' => 'Setting',
'design_index' => 'Design Builder',
];

View File

@ -0,0 +1,18 @@
<?php
/**
* order.php
*
* @copyright 2022 opencart.cn - All Rights Reserved
* @link http://www.guangdawangluo.com
* @author Edward Yang <yangjin@opencart.cn>
* @created 2022-08-02 14:22:41
* @modified 2022-08-02 14:22:41
*/
return [
'tax_classes_index' => 'Index',
'tax_classes_create' => 'Create',
'tax_classes_edit' => 'Detail',
'tax_classes_update' => 'Edit',
'tax_classes_delete' => 'Delete'
];

View File

@ -0,0 +1,18 @@
<?php
/**
* order.php
*
* @copyright 2022 opencart.cn - All Rights Reserved
* @link http://www.guangdawangluo.com
* @author Edward Yang <yangjin@opencart.cn>
* @created 2022-08-02 14:22:41
* @modified 2022-08-02 14:22:41
*/
return [
'tax_rates_index' => 'Index',
'tax_rates_create' => 'Create',
'tax_rates_edit' => 'Detail',
'tax_rates_update' => 'Edit',
'tax_rates_delete' => 'Delete'
];

View File

@ -0,0 +1,18 @@
<?php
/**
* header.php
*
* @copyright 2022 opencart.cn - All Rights Reserved
* @link http://www.guangdawangluo.com
* @author Edward Yang <yangjin@opencart.cn>
* @created 2022-08-02 19:03:19
* @modified 2022-08-02 19:03:19
*/
return [
'admin_users_index' => 'Index',
'admin_users_create' => 'Create',
'admin_users_edit' => 'Detail',
'admin_users_update' => 'Edit',
'admin_users_delete' => 'Delete'
];

View File

@ -0,0 +1,15 @@
<?php
/**
* account.php
*
* @copyright 2022 opencart.cn - All Rights Reserved
* @link http://www.guangdawangluo.com
* @author Edward Yang <yangjin@opencart.cn>
* @created 2022-08-04 10:59:15
* @modified 2022-08-04 10:59:15
*/
return [
'login' => 'Login',
'new_account' => 'New Account',
];

View File

@ -0,0 +1,14 @@
<?php
/**
* currency.php
*
* @copyright 2022 opencart.cn - All Rights Reserved
* @link http://www.guangdawangluo.com
* @author TL <mengwb@opencart.cn>
* @created 2022-07-28 17:21:38
* @modified 2022-07-28 17:21:38
*/
return [
'decimal_point' => '.',
'thousand_point' => ',',
];