Jiang qinghua 6 years ago
parent
commit
6a13077eb0
3 changed files with 40 additions and 6 deletions
  1. 4 4
      README.md
  2. 1 1
      composer.json
  3. 35 1
      resources/lang/en/admin.php

+ 4 - 4
README.md

@@ -1,12 +1,12 @@
 <p align="center">
-<a href="">
+<h2>
     Dcat Admin
-</a>
+</h2>
 
 <p align="center"><code>Dcat Admin</code>是一个基于<a href="https://www.laravel-admin.org/" target="_blank">laravel-admin</a>二次开发而成的后台构建工具,只需使用很少的代码即可快速构建出一个功能完善的漂亮的管理后台。</p>
 
 <p align="center">
-<a href="">文档</a> |
+<a href="https://jqhph.gitee.io/dcatadmin/">文档</a> |
 <a href="">Demo</a> |
 <a href="">Demo源码</a> |
 <a href="#extensions">扩展</a>
@@ -55,7 +55,7 @@ php artisan admin:install
 <a name="extensions"></a>
 ## 扩展
 
-| 扩展                                        | 描述                              | dcat-admin version                             |
+| 扩展                                        | 描述                              | dcat-admin 版本                             |
 | ------------------------------------------------ | ---------------------------------------- |---------------------------------------- |
 | [dcat-page](https://github.com/jqhph/dcat-page)             | 一个简洁的静态站点构建工具 | * |
 | [ueditor](https://github.com/dcat-admin-extensions/ueditor) | 百度在线编辑器          | * |

+ 1 - 1
composer.json

@@ -1,5 +1,5 @@
 {
-    "name": "dcat/admin",
+    "name": "dcat/laravel-admin",
     "description": "dcat admin",
     "type": "library",
     "keywords": ["dcat", "laravel", "admin", "grid", "form"],

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

@@ -1,6 +1,41 @@
 <?php
 
 return [
+    'scaffold' => [
+        'header'            => 'Scaffold',
+        'choose'            => 'choose',
+        'table'             => 'Table',
+        'model'             => 'Model',
+        'controller'        => 'Controller',
+        'add_field'         => 'Add field',
+        'pk'                => 'Primary key',
+        'soft_delete'       => 'Soft delete',
+        'create_migration'  => 'Create migration',
+        'create_model'      => 'Create model',
+        'create_repository' => 'Create repository',
+        'create_controller' => 'Create controller',
+        'run_migrate'       => 'Run migrate',
+        'create_lang'       => 'Create lang',
+        'field'             => 'field',
+        'translation'       => 'translation',
+        'comment'           => 'comment',
+        'default'           => 'default',
+        'field_name'        => 'field name',
+        'type'              => 'type',
+        'nullable'          => 'nullable',
+        'key'               => 'key',
+    ],
+    'client' => [
+        'delete_confirm'    => 'Are you sure to delete this item ?',
+        'confirm'           => 'Confirm',
+        'cancel'            => 'cancel',
+        'refresh_succeeded' => 'Refresh succeeded !',
+
+        '500' => 'Internal server error !',
+        '403' => 'Permission deny !',
+        '401' => 'Unauthorized !',
+        '419' => 'Page expired !',
+    ],
     'online'                => 'Online',
     'login'                 => 'Login',
     'logout'                => 'Logout',
@@ -105,6 +140,5 @@ return [
         'display_all'           => ' <i class="glyphicon glyphicon-th icon-th"></i> ',
         'focus'                 => 'Focus',
     ],
-
     'menu_titles' => [],
 ];