完善多语言, 修复后台文章列表页标题截取问题
This commit is contained in:
parent
cd0136c892
commit
0307831081
|
|
@ -23,7 +23,7 @@ class PageCategoryResource extends JsonResource
|
|||
'id' => $this->id,
|
||||
'active' => $this->active,
|
||||
'title' => $description->title,
|
||||
'title_format' => sub_string($description->title),
|
||||
'title_format' => sub_string($description->title, 64),
|
||||
'summary' => $description->summary,
|
||||
'summary_format' => sub_string($description->summary, 128),
|
||||
'meta_title' => $description->meta_title,
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ class PageCategoryDetail extends JsonResource
|
|||
'id' => $this->id,
|
||||
'active' => $this->active,
|
||||
'title' => $description->title,
|
||||
'title_format' => sub_string($description->title),
|
||||
'title_format' => sub_string($description->title, 64),
|
||||
'summary' => $description->summary,
|
||||
'summary_format' => sub_string($description->summary, 128),
|
||||
'meta_title' => $description->meta_title,
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ class PageDetail extends JsonResource
|
|||
'author' => $this->author,
|
||||
'views' => $this->views,
|
||||
'title' => $description->title,
|
||||
'title_format' => sub_string($description->title),
|
||||
'title_format' => sub_string($description->title, 64),
|
||||
'content' => $description->content,
|
||||
'summary' => $description->summary,
|
||||
'summary_format' => sub_string($description->summary, 100),
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
{{-- <x-admin-form-select title="上级分类" name="parent_id" :value="old('parent_id', $category->parent_id ?? 0)" :options="$categories->toArray()" key="id" label="name" /> --}}
|
||||
|
||||
<x-admin::form.row title="{{ __('admin/category.upper_category') }}">
|
||||
<x-admin::form.row title="{{ __('admin/category.parent_category') }}">
|
||||
@php
|
||||
$_parent_id = old('parent_id', $category->parent_id ?? 0);
|
||||
@endphp
|
||||
|
|
@ -69,4 +69,4 @@
|
|||
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@endsection
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="tab-pane fade" id="tab-set">
|
||||
<x-admin::form.row title="{{ __('admin/category.upper_category') }}">
|
||||
<x-admin::form.row title="{{ __('admin/category.parent_category') }}">
|
||||
<div class="wp-400">
|
||||
<input type="text" value="{{ $page_category->parent->description->title ?? '' }}" id="categories-autocomplete" class="form-control wp-400 " />
|
||||
<input type="hidden" name="parent_id" value="{{ old('categories_id', $page_category->parent->id ?? '') }}" />
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
* @modified 2022-08-02 14:22:41
|
||||
*/
|
||||
|
||||
return [
|
||||
return [
|
||||
'index' => 'Attribute',
|
||||
'attribute_info' => 'Attribute information',
|
||||
'create_at' => 'Create attribute',
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
* @modified 2022-08-02 14:22:41
|
||||
*/
|
||||
|
||||
return [
|
||||
return [
|
||||
'index' => 'Attribute group',
|
||||
'create_at_groups' => 'Create attribute group',
|
||||
'error_cannot_delete_attribute_used' => 'Attribute Group used by attribute (ID: :attributes), can not be deleted!',
|
||||
|
|
@ -19,4 +19,4 @@
|
|||
'attribute_groups_show' => 'attribute group details',
|
||||
'attribute_groups_update' => 'update attribute group',
|
||||
'attribute_groups_delete' => 'delete attribute group',
|
||||
];
|
||||
];
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
return [
|
||||
'index' => 'Kategorie',
|
||||
'edit_category' => 'Kategorie bearbeiten',
|
||||
'upper_category' => 'höhere Kategorie',
|
||||
'parent_category' => 'höhere Kategorie',
|
||||
|
||||
'categories_index' => 'Kategorieliste',
|
||||
'categories_create' => 'Kategorien erstellen',
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
return [
|
||||
'index' => 'Category',
|
||||
'edit_category' => 'Edit Category',
|
||||
'upper_category' => 'Upper Category',
|
||||
'parent_category' => 'Parent Category',
|
||||
|
||||
'categories_index' => 'Index',
|
||||
'categories_create' => 'Create',
|
||||
|
|
|
|||
|
|
@ -10,9 +10,9 @@
|
|||
*/
|
||||
|
||||
return [
|
||||
'index' => 'article classification',
|
||||
'info_title' => 'information title',
|
||||
'info_content' => 'content',
|
||||
'index' => 'Catalogs',
|
||||
'info_title' => 'Title',
|
||||
'info_content' => 'Content',
|
||||
|
||||
'pages_index' => 'category list',
|
||||
'pages_index' => 'Catalogs',
|
||||
];
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
* @modified 2022-08-02 14:22:41
|
||||
*/
|
||||
|
||||
return [
|
||||
return [
|
||||
'index' => 'Attribute',
|
||||
'attribute_info' => 'Attribute information',
|
||||
'create_at' => 'Create attribute',
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
* @modified 2022-08-02 14:22:41
|
||||
*/
|
||||
|
||||
return [
|
||||
return [
|
||||
'index' => 'Attribute group',
|
||||
'create_at_groups' => 'Create attribute group',
|
||||
'error_cannot_delete_attribute_used' => 'Attribute Group used by attribute (ID: :attributes), can not be deleted!',
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
return [
|
||||
'index' => 'Clasificación',
|
||||
'edit_category' => 'Editar categoria',
|
||||
'upper_category' => 'subtítulos',
|
||||
'parent_category' => 'subtítulos',
|
||||
|
||||
'categories_index' => 'Lista de categoría',
|
||||
'categories_create' => 'Crear una taxonomía',
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
* @modified 2022-08-02 14:22:41
|
||||
*/
|
||||
|
||||
return [
|
||||
return [
|
||||
'index' => 'Attribute',
|
||||
'attribute_info' => 'Attribute information',
|
||||
'create_at' => 'Create attribute',
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
* @modified 2022-08-02 14:22:41
|
||||
*/
|
||||
|
||||
return [
|
||||
return [
|
||||
'index' => 'Attribute group',
|
||||
'create_at_groups' => 'Create attribute group',
|
||||
'error_cannot_delete_attribute_used' => 'Attribute Group used by attribute (ID: :attributes), can not be deleted!',
|
||||
|
|
|
|||
|
|
@ -10,13 +10,13 @@
|
|||
*/
|
||||
|
||||
return [
|
||||
'index' => 'Classification',
|
||||
'edit_category' => 'Modifier la catégorie',
|
||||
'upper_category' => 'catégorie supérieure',
|
||||
'index' => 'Classification',
|
||||
'edit_category' => 'Modifier la catégorie',
|
||||
'parent_category' => 'catégorie supérieure',
|
||||
|
||||
'categories_index' => 'liste des catégories',
|
||||
'categories_create' => 'Créer des catégories',
|
||||
'categories_show' => 'détails de la catégorie',
|
||||
'categories_update' => 'Mettre à jour les catégories',
|
||||
'categories_delete' => 'Supprimer la catégorie',
|
||||
'categories_index' => 'liste des catégories',
|
||||
'categories_create' => 'Créer des catégories',
|
||||
'categories_show' => 'détails de la catégorie',
|
||||
'categories_update' => 'Mettre à jour les catégories',
|
||||
'categories_delete' => 'Supprimer la catégorie',
|
||||
];
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
* @modified 2022-08-02 14:22:41
|
||||
*/
|
||||
|
||||
return [
|
||||
return [
|
||||
'index' => 'Attribute',
|
||||
'attribute_info' => 'Attribute information',
|
||||
'create_at' => 'Create attribute',
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
* @modified 2022-08-02 14:22:41
|
||||
*/
|
||||
|
||||
return [
|
||||
return [
|
||||
'index' => 'Attribute group',
|
||||
'create_at_groups' => 'Create attribute group',
|
||||
'error_cannot_delete_attribute_used' => 'Attribute Group used by attribute (ID: :attributes), can not be deleted!',
|
||||
|
|
|
|||
|
|
@ -10,13 +10,13 @@
|
|||
*/
|
||||
|
||||
return [
|
||||
'index' => 'Classificazione',
|
||||
'edit_category' => 'Modifica categoria',
|
||||
'upper_category' => 'Sottotitoli',
|
||||
'index' => 'Classificazione',
|
||||
'edit_category' => 'Modifica categoria',
|
||||
'parent_category' => 'Sottotitoli',
|
||||
|
||||
'categories_index' => 'Elenco delle categorie',
|
||||
'categories_create' => 'Crea una tassonomia',
|
||||
'categories_show' => 'Dettagli della categoria',
|
||||
'categories_update' => 'Aggiorna la classificazione',
|
||||
'categories_delete' => 'elimina categoria',
|
||||
'categories_index' => 'Elenco delle categorie',
|
||||
'categories_create' => 'Crea una tassonomia',
|
||||
'categories_show' => 'Dettagli della categoria',
|
||||
'categories_update' => 'Aggiorna la classificazione',
|
||||
'categories_delete' => 'elimina categoria',
|
||||
];
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
* @modified 2022-08-02 14:22:41
|
||||
*/
|
||||
|
||||
return [
|
||||
return [
|
||||
'index' => 'Attribute',
|
||||
'attribute_info' => 'Attribute information',
|
||||
'create_at' => 'Create attribute',
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
* @modified 2022-08-02 14:22:41
|
||||
*/
|
||||
|
||||
return [
|
||||
return [
|
||||
'index' => 'Attribute group',
|
||||
'create_at_groups' => 'Create attribute group',
|
||||
'error_cannot_delete_attribute_used' => 'Attribute Group used by attribute (ID: :attributes), can not be deleted!',
|
||||
|
|
|
|||
|
|
@ -10,13 +10,13 @@
|
|||
*/
|
||||
|
||||
return [
|
||||
'index' => 'カテゴリ',
|
||||
'edit_category' => 'カテゴリを編集',
|
||||
'upper_category' => '上位カテゴリ',
|
||||
'index' => 'カテゴリ',
|
||||
'edit_category' => 'カテゴリを編集',
|
||||
'parent_category' => '上位カテゴリ',
|
||||
|
||||
'categories_index' => 'カテゴリーリスト',
|
||||
'categories_create' => 'カテゴリを作成',
|
||||
'categories_show' => 'カテゴリーの詳細',
|
||||
'categories_update' => 'カテゴリを更新',
|
||||
'categories_delete' => 'カテゴリを削除',
|
||||
'categories_index' => 'カテゴリーリスト',
|
||||
'categories_create' => 'カテゴリを作成',
|
||||
'categories_show' => 'カテゴリーの詳細',
|
||||
'categories_update' => 'カテゴリを更新',
|
||||
'categories_delete' => 'カテゴリを削除',
|
||||
];
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
* @modified 2022-08-02 14:22:41
|
||||
*/
|
||||
|
||||
return [
|
||||
return [
|
||||
'index' => 'Attribute',
|
||||
'attribute_info' => 'Attribute information',
|
||||
'create_at' => 'Create attribute',
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
* @modified 2022-08-02 14:22:41
|
||||
*/
|
||||
|
||||
return [
|
||||
return [
|
||||
'index' => 'Attribute group',
|
||||
'create_at_groups' => 'Create attribute group',
|
||||
'error_cannot_delete_attribute_used' => 'Attribute Group used by attribute (ID: :attributes), can not be deleted!',
|
||||
|
|
|
|||
|
|
@ -10,13 +10,13 @@
|
|||
*/
|
||||
|
||||
return [
|
||||
'index' => 'категория',
|
||||
'edit_category' => 'Изменить категорию',
|
||||
'upper_category' => 'категория',
|
||||
'index' => 'категория',
|
||||
'edit_category' => 'Изменить категорию',
|
||||
'parent_category' => 'категория',
|
||||
|
||||
'categories_index' => 'список категорий',
|
||||
'categories_create' => 'Создать категории',
|
||||
'categories_show' => 'детали категории',
|
||||
'categories_update' => 'Обновить категории',
|
||||
'categories_delete' => 'Удалить категорию',
|
||||
'categories_index' => 'список категорий',
|
||||
'categories_create' => 'Создать категории',
|
||||
'categories_show' => 'детали категории',
|
||||
'categories_update' => 'Обновить категории',
|
||||
'categories_delete' => 'Удалить категорию',
|
||||
];
|
||||
|
|
|
|||
|
|
@ -10,13 +10,13 @@
|
|||
*/
|
||||
|
||||
return [
|
||||
'index' => '分类',
|
||||
'edit_category' => '编辑分类',
|
||||
'upper_category' => '上级分类',
|
||||
'index' => '分类',
|
||||
'edit_category' => '编辑分类',
|
||||
'parent_category' => '上级分类',
|
||||
|
||||
'categories_index' => '分类列表',
|
||||
'categories_create' => '创建分类',
|
||||
'categories_show' => '分类详情',
|
||||
'categories_update' => '更新分类',
|
||||
'categories_delete' => '删除分类',
|
||||
'categories_index' => '分类列表',
|
||||
'categories_create' => '创建分类',
|
||||
'categories_show' => '分类详情',
|
||||
'categories_update' => '更新分类',
|
||||
'categories_delete' => '删除分类',
|
||||
];
|
||||
|
|
|
|||
|
|
@ -10,13 +10,13 @@
|
|||
*/
|
||||
|
||||
return [
|
||||
'index' => '分類',
|
||||
'edit_category' => '編輯分類',
|
||||
'upper_category' => '上級分類',
|
||||
'index' => '分類',
|
||||
'edit_category' => '編輯分類',
|
||||
'parent_category' => '上級分類',
|
||||
|
||||
'categories_index' => '分類列表',
|
||||
'categories_create' => '創建分類',
|
||||
'categories_show' => '分類詳情',
|
||||
'categories_update' => '更新分類',
|
||||
'categories_delete' => '刪除分類',
|
||||
'categories_index' => '分類列表',
|
||||
'categories_create' => '創建分類',
|
||||
'categories_show' => '分類詳情',
|
||||
'categories_update' => '更新分類',
|
||||
'categories_delete' => '刪除分類',
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in New Issue