Skip to content

Commit 3d8173d

Browse files
committed
update translations
1 parent 96128b8 commit 3d8173d

49 files changed

Lines changed: 347 additions & 227 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

resources/lang/en/inspirecms.php

Lines changed: 53 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,28 @@
11
<?php
22

33
return [
4-
'children' => 'Children',
5-
'content' => 'Content',
64
'created_at' => 'Created at',
75
'created_by' => 'Created by',
86
'current_xxx' => 'Current :name',
97
'dashboard' => 'Dashboard',
108
'default' => 'Default',
119
'deleted_at' => 'Deleted at',
12-
'document_type' => 'Document Type',
1310
'export' => 'Export',
1411
'exported_content_template_directory' => 'Exported Content Template Directory',
15-
'field' => 'Fields',
16-
'field_group' => 'Custom Fields',
1712
'id' => 'ID',
1813
'import' => 'Import',
19-
'is_default' => 'Default',
20-
'language' => 'Language',
14+
'is_default' => 'Is Default',
2115
'last_updated_at' => 'Last updated at',
2216
'layout' => 'Layout',
2317
'media' => 'Media',
2418
'n/a' => 'N/A',
25-
'navigation' => 'Navigation',
2619
'order' => 'Order',
2720
'others_xxx' => 'Others :name',
2821
'page' => 'Page',
2922
'publish_at_xxx' => 'Published at :time',
30-
'role' => 'Role',
3123
'root' => 'Root',
32-
'search' => [
33-
'label' => 'Search',
34-
'placeholder' => 'Search...',
35-
'message' => 'Searching...',
36-
'no_results' => 'No results found.',
37-
],
3824
'settings' => 'Settings',
39-
'sitemap' => 'Sitemap',
4025
'table' => 'Table',
41-
'template' => 'Template',
4226
'theme' => 'Theme',
4327
'total_xxx_have_used' => 'Total :name has been used',
4428
'total_xxx_selected' => 'Total :count selected',
@@ -48,11 +32,61 @@
4832
'url' => 'URL',
4933
'used_by_xxx' => 'Used by :name',
5034
'used_by' => 'Used by',
51-
'user' => 'User',
52-
'users' => 'Users',
5335
'uuid' => 'UUID',
5436
'unknown_user' => 'Unknown User',
5537
'version' => 'Version',
38+
39+
'search' => [
40+
'label' => 'Search',
41+
'placeholder' => 'Search...',
42+
'message' => 'Searching...',
43+
'no_results' => 'No results found.',
44+
],
45+
46+
'children' => [
47+
'singular' => 'Child',
48+
'plural' => 'Children',
49+
],
50+
'content' => [
51+
'singular' => 'Content',
52+
'plural' => 'Content',
53+
],
54+
'document_type' => [
55+
'singular' => 'Document Type',
56+
'plural' => 'Document Types',
57+
],
58+
'field' => [
59+
'singular' => 'Field',
60+
'plural' => 'Fields',
61+
],
62+
'field_group' => [
63+
'singular' => 'Field Group',
64+
'plural' => 'Field Groups',
65+
],
66+
'language' => [
67+
'singular' => 'Language',
68+
'plural' => 'Languages',
69+
],
70+
'navigation' => [
71+
'singular' => 'Navigation',
72+
'plural' => 'Navigation',
73+
],
74+
'role' => [
75+
'singular' => 'Role',
76+
'plural' => 'Roles',
77+
],
78+
'sitemap' => [
79+
'singular' => 'Sitemap',
80+
'plural' => 'Sitemap',
81+
],
82+
'template' => [
83+
'singular' => 'Template',
84+
'plural' => 'Templates',
85+
],
86+
'user' => [
87+
'singular' => 'User',
88+
'plural' => 'Users',
89+
],
5690

5791
'page_status' => [
5892
'draft' => [

resources/lang/en/resources/document-type.php

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
return [
44
'empty_state' => [
5-
'heading' => 'No document types',
6-
'description' => 'Create a document type to get started.',
5+
'heading' => 'No ' . lcfirst(__('inspirecms::inspirecms.document_type.plural')),
6+
'description' => 'Create a ' . lcfirst(__('inspirecms::inspirecms.document_type.singular')) . ' to get started.',
77
],
88
'title' => [
99
'label' => 'Title',
@@ -34,36 +34,36 @@
3434
],
3535

3636
'templates' => [
37-
'label' => 'Templates',
38-
'validation_attribute' => 'templates',
39-
'description' => 'The template to use when rendering this document type.',
40-
'hint' => 'Create a template to display this document type.',
37+
'label' => __('inspirecms::inspirecms.template.plural'),
38+
'validation_attribute' => lcfirst(__('inspirecms::inspirecms.template.plural')),
39+
'description' => str_replace([':dt', ':t'], [lcfirst(__('inspirecms::inspirecms.document_type.singular')), lcfirst(__('inspirecms::inspirecms.template.singular'))], 'The :t to use when rendering this :dt'),
40+
'hint' => str_replace([':dt', ':t'], [lcfirst(__('inspirecms::inspirecms.document_type.singular')), lcfirst(__('inspirecms::inspirecms.template.singular'))], 'Create a :t to display this :dt'),
4141
],
4242

4343
'field_groups' => [
44-
'label' => 'Fields',
45-
'singular' => 'Field',
46-
'plural' => 'Fields',
44+
'label' => __('inspirecms::inspirecms.field.plural'),
45+
'singular' => __('inspirecms::inspirecms.field.singular'),
46+
'plural' => __('inspirecms::inspirecms.field.plural'),
4747
'description' => '',
48-
'hint' => 'Create a field group to use with this document type.',
48+
'hint' => str_replace([':dt', ':fg'], [lcfirst(__('inspirecms::inspirecms.document_type.singular')), lcfirst(__('inspirecms::inspirecms.field_group.singular'))], 'Create a :fg to use with this :dt'),
4949
],
5050

5151
'inherited' => [
5252
'label' => 'Inherited from :name',
53-
'description' => 'The document types that this document type inherits from.',
53+
'description' => str_replace([':dts', ':dt'], [lcfirst(__('inspirecms::inspirecms.document_type.plural')), lcfirst(__('inspirecms::inspirecms.document_type.singular'))], 'The :dts that this :dt inherits from.'),
5454
],
5555
'inheriting' => [
5656
'label' => 'Inheriting to :name',
57-
'description' => 'The document types that inherit from this document type.',
57+
'description' => str_replace([':dts', ':dt'], [lcfirst(__('inspirecms::inspirecms.document_type.plural')), lcfirst(__('inspirecms::inspirecms.document_type.singular'))], 'The :dts that inherit from this :dt'),
5858
],
5959

6060
'allowed_document_types' => [
61-
'label' => 'Allowed document types',
62-
'description' => 'The document types that are allowed as child items.',
61+
'label' => 'Allowed ' . lcfirst(__('inspirecms::inspirecms.document_type.plural')),
62+
'description' => str_replace([':dts'], [lcfirst(__('inspirecms::inspirecms.document_type.plural'))], 'The :dts that are allowed as child items.'),
6363
],
6464
'allowing_document_types' => [
65-
'label' => 'Allowing document types',
66-
'description' => 'The document types that allow this document type.',
65+
'label' => 'Allowing ' . lcfirst(__('inspirecms::inspirecms.document_type.plural')),
66+
'description' => str_replace([':dts', ':dt'], [lcfirst(__('inspirecms::inspirecms.document_type.plural')), lcfirst(__('inspirecms::inspirecms.document_type.singular'))], 'The :dts that allow this :dt'),
6767
],
6868

6969
'categories' => [
@@ -77,7 +77,7 @@
7777
],
7878
'inheritance' => [
7979
'label' => 'Inheritance',
80-
'description' => 'A document type layout that can be inherited.',
80+
'description' => 'A ' . lcfirst(__('inspirecms::inspirecms.document_type.singular')) . ' layout that can be inherited.',
8181
],
8282
],
8383

@@ -94,7 +94,7 @@
9494
],
9595
'display' => [
9696
'heading' => 'Display',
97-
'description' => 'Settings that determine how this document type is displayed when creating content.',
97+
'description' => 'Settings that determine how this ' . lcfirst(__('inspirecms::inspirecms.document_type.singular')) . ' is displayed when creating content.',
9898
],
9999
],
100100
];

resources/lang/en/resources/language.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
return [
44
'is_default' => [
5-
'label' => 'Default',
6-
'validation_attribute' => 'default',
5+
'label' => __('inspirecms::inspirecms.default'),
6+
'validation_attribute' => __('inspirecms::inspirecms.default'),
77
],
88
'code' => [
99
'label' => 'Code',

resources/lang/en/resources/template.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
return [
44
'is_default' => [
5-
'label' => 'Is Default',
6-
'validation_attribute' => 'is default',
5+
'label' => __('inspirecms::inspirecms.is_default'),
6+
'validation_attribute' => strtolower(__('inspirecms::inspirecms.default')),
77
],
88
'slug' => [
99
'label' => 'Slug',
@@ -18,13 +18,16 @@
1818
'property_type_instructions' => [
1919
'label' => 'Property instructions',
2020
'group' => 'Group',
21-
'field' => __('inspirecms::inspirecms.field'),
21+
'field' => __('inspirecms::inspirecms.field.singular'),
2222
],
2323
'page_component_instructions' => [
2424
'label' => 'Page component instructions',
2525
],
2626
'theme' => [
27-
'label' => 'Theme',
27+
'label' => __('inspirecms::inspirecms.theme'),
28+
],
29+
'source_theme' => [
30+
'label' => 'Source Theme',
2831
],
2932
'editor' => [
3033
'title' => 'Template Editor',

resources/lang/en/widgets.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
'description' => 'This is the default page for the website.',
1717
],
1818
'create_content' => [
19-
'title' => 'Create ' . str(__('inspirecms::inspirecms.content'))->title()->toString(),
19+
'title' => 'Create ' . __('inspirecms::inspirecms.content.singular'),
2020
'description' => 'Create a new content page.',
2121
'message' => 'Use this section to create new content for your content management system. This allows you to add fresh and relevant information to your site, keeping it up-to-date and engaging for your audience.',
2222
],
2323
'create_document_type' => [
24-
'title' => 'Create ' . str(__('inspirecms::inspirecms.document_type'))->title()->toString(),
25-
'description' => 'Create a new ' . str(__('inspirecms::inspirecms.document_type'))->lower()->toString(),
26-
'message' => 'Use this section to create new document types for your content management system. This allows you to categorize and organize your content, making it easier to manage and search for specific information.',
24+
'title' => 'Create ' . __('inspirecms::inspirecms.document_type.singular'),
25+
'description' => 'Create a new ' . lcfirst(__('inspirecms::inspirecms.document_type.singular')),
26+
'message' => 'Use this section to create new ' . lcfirst(__('inspirecms::inspirecms.document_type.plural')) .' for your content management system. This allows you to categorize and organize your content, making it easier to manage and search for specific information.',
2727
],
2828
],
2929

resources/lang/zh_CN/buttons.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -237,25 +237,25 @@
237237
],
238238

239239
'set_as_default' => [
240-
'label' => '设为默认',
240+
'label' => '设为预设',
241241
'messages' => [
242242
'success' => [
243-
'title' => '设为默认',
244-
'body' => '该项目已设为默认',
243+
'title' => '设为预设',
244+
'body' => '该项目已设为预设',
245245
],
246246
'failure' => [
247-
'title' => '设为默认失败',
248-
'body' => '该项目无法设为默认。请检查日志以获取更多信息。',
247+
'title' => '设为预设失败',
248+
'body' => '该项目无法设为预设。请检查日志以获取更多信息。',
249249
],
250250
],
251251
],
252252

253253
'set_default_content_page' => [
254-
'label' => '设为默认页面',
255-
'permission_display_name' => '设置默认页面',
254+
'label' => '设为预设页面',
255+
'permission_display_name' => '设置预设页面',
256256
'messages' => [
257257
'success' => [
258-
'title' => '默认页面已更新',
258+
'title' => '预设页面已更新',
259259
],
260260
],
261261
],

resources/lang/zh_CN/inspirecms.php

Lines changed: 55 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,28 @@
11
<?php
22

33
return [
4-
'children' => '子项目',
5-
'content' => '内容',
64
'created_at' => '创建于',
75
'created_by' => '创建者',
86
'current_xxx' => '当前 :name',
97
'dashboard' => '仪表板',
10-
'default' => '默认',
8+
'default' => '预设',
119
'deleted_at' => '删除于',
1210
'export' => '导出',
1311
'exported_content_template_directory' => '导出内容模板目录',
14-
'document_type' => '文档类型',
15-
'field' => '字段',
16-
'field_group' => '自定义字段',
1712
'id' => 'ID',
1813
'import' => '导入',
19-
'is_default' => '默认',
20-
'language' => '语言',
14+
'is_default' => '是否预设',
2115
'last_updated_at' => '最后更新于',
2216
'layout' => '布局',
2317
'media' => '媒体',
2418
'n/a' => '不适用',
25-
'navigation' => '导航',
26-
'order' => '顺序',
19+
'order' => '次序',
2720
'others_xxx' => '其他:name',
2821
'page' => '页面',
2922
'publish_at_xxx' => '发布于 :time',
30-
'role' => '角色',
3123
'root' => '',
32-
'search' => [
33-
'label' => '搜索',
34-
'placeholder' => '搜索...',
35-
'message' => '搜索中...',
36-
'no_results' => '未找到结果',
37-
],
3824
'settings' => '设置',
39-
'sitemap' => '网站地图',
4025
'table' => '表格',
41-
'template' => '模板',
4226
'theme' => '主题',
4327
'total_xxx_have_used' => '总共使用了 :name',
4428
'total_xxx_selected' => '总共选择了 :count',
@@ -48,10 +32,60 @@
4832
'url' => 'URL',
4933
'used_by_xxx' => '被 :name 引用',
5034
'used_by' => '被引用',
51-
'user' => '用户',
52-
'users' => '用户',
5335
'uuid' => 'UUID',
5436
'version' => '版本',
37+
38+
'search' => [
39+
'label' => '搜索',
40+
'placeholder' => '搜索...',
41+
'message' => '搜索中...',
42+
'no_results' => '未找到结果',
43+
],
44+
45+
'children' => [
46+
'singular' => '子项目',
47+
'plural' => '子项目',
48+
],
49+
'content' => [
50+
'singular' => '內容',
51+
'plural' => '內容',
52+
],
53+
'document_type' => [
54+
'singular' => '文档类型',
55+
'plural' => '文档类型',
56+
],
57+
'field' => [
58+
'singular' => '字段',
59+
'plural' => '字段',
60+
],
61+
'field_group' => [
62+
'singular' => '自定义字段',
63+
'plural' => '自定义字段',
64+
],
65+
'language' => [
66+
'singular' => '语言',
67+
'plural' => '语言',
68+
],
69+
'navigation' => [
70+
'singular' => '导航',
71+
'plural' => '导航',
72+
],
73+
'role' => [
74+
'singular' => '角色',
75+
'plural' => '角色',
76+
],
77+
'sitemap' => [
78+
'singular' => '网站地图',
79+
'plural' => '网站地图',
80+
],
81+
'template' => [
82+
'singular' => '模板',
83+
'plural' => '模板',
84+
],
85+
'user' => [
86+
'singular' => '用户',
87+
'plural' => '用户',
88+
],
5589

5690
'page_status' => [
5791
'draft' => [

0 commit comments

Comments
 (0)