Skip to content

Commit c207599

Browse files
committed
centralize translations
1 parent d3d7420 commit c207599

53 files changed

Lines changed: 900 additions & 501 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/buttons.php

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
'label' => 'Back',
2020
],
2121

22+
'bulk_detach' => [
23+
'label' => 'Bulk detach',
24+
],
25+
2226
'cancel' => [
2327
'label' => 'Cancel',
2428
],
@@ -96,6 +100,19 @@
96100
],
97101
],
98102

103+
'edit_config' => [
104+
'label' => 'Edit config',
105+
'heading' => 'Edit :name config',
106+
],
107+
108+
'edit' => [
109+
'label' => 'Edit',
110+
],
111+
112+
'export' => [
113+
'label' => 'Export',
114+
],
115+
99116
'fix' => [
100117
'label' => 'Fix',
101118
],
@@ -105,6 +122,24 @@
105122
'heading' => 'Import',
106123
],
107124

125+
'lock_content' => [
126+
'label' => 'Lock content',
127+
'messages' => [
128+
'success' => [
129+
'title' => __('inspirecms::messages.locked'),
130+
],
131+
],
132+
],
133+
134+
'move_to_under' => [
135+
'label' => 'Move to under :name',
136+
'heading' => 'Move to under :name',
137+
],
138+
139+
'move_to' => [
140+
'label' => 'Move to ...',
141+
],
142+
108143
'more_actions' => [
109144
'label' => 'More actions',
110145
],
@@ -194,6 +229,29 @@
194229
'label' => 'Trash bin',
195230
],
196231

232+
'update_content_route' => [
233+
'label' => 'Update route',
234+
'heading' => 'Update route',
235+
'messages' => [
236+
'success' => [
237+
'title' => 'Route updated',
238+
],
239+
],
240+
],
241+
242+
'unlock_content' => [
243+
'label' => 'Unlock content',
244+
'messages' => [
245+
'success' => [
246+
'title' => 'Unlocked'
247+
],
248+
'not_owner_error' => [
249+
'title' => 'Unlock failed',
250+
'body' => 'You are not the owner of the lock.',
251+
],
252+
],
253+
],
254+
197255
'unpublish' => [
198256
'label' => 'Unpublish',
199257
'heading' => 'Unpublish content',

resources/lang/en/inspirecms.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44
'children' => 'Children',
55
'content' => 'Content',
66
'created_at' => 'Created at',
7+
'created_by' => 'Created by',
78
'dashboard' => 'Dashboard',
89
'default' => 'Default',
910
'deleted_at' => 'Deleted at',
1011
'document_type' => 'Document Type',
1112
'export' => 'Export',
13+
'field' => 'Fields',
1214
'field_group' => 'Custom Fields',
1315
'id' => 'ID',
1416
'import' => 'Import',
@@ -19,6 +21,7 @@
1921
'n/a' => 'N/A',
2022
'navigation' => 'Navigation',
2123
'order' => 'Order',
24+
'others_xxx' => 'Others :name',
2225
'page' => 'Page',
2326
'publish_at_xxx' => 'Published at :time',
2427
'role' => 'Role',
@@ -43,6 +46,7 @@
4346
'used_by' => 'Used by',
4447
'user' => 'User',
4548
'users' => 'Users',
49+
'version' => 'Version',
4650

4751
'page_status' => [
4852
'draft' => [

resources/lang/en/messages.php

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

33
return [
44
'copied' => 'Copied',
5+
'failed' => 'Failed',
56
'failure' => 'Failure',
7+
'finished' => 'Finished',
8+
'in_progress' => 'In progress',
69
'invalid_license' => 'Invalid license.',
10+
'locked' => 'Locked',
11+
'media_item_moved' => 'Media Item Moved',
12+
'pending' => 'Pending',
13+
'please_refer_to_doc_link' => 'Please refer to the <a href=":link" target="_blank"><u>documentation</u></a> for more information',
714
'same_theme_name_already_exists' => 'A theme with the same name already exists.',
815
'saved' => 'Saved',
16+
'sitemap_generation_failure' => 'Sitemap Generation Failed',
917
'something_went_wrong' => 'Something went wrong.',
1018
'success' => 'Success',
1119
'theme_already_exists' => 'Theme already exists.',

resources/lang/en/resources/content.php

Lines changed: 104 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,57 @@
1313
'placeholder' => 'Enter slug',
1414
'instructions' => 'Enter the slug of the content',
1515
],
16+
'parent' => [
17+
'label' => 'Parent',
18+
],
19+
'created_at' => [
20+
'label' => 'Created At',
21+
],
22+
'updated_at' => [
23+
'label' => 'Last Updated At',
24+
],
25+
'deleted_at' => [
26+
'label' => 'Deleted At',
27+
],
28+
'visibility' => [
29+
'label' => 'Visibility',
30+
],
31+
'is_published' => [
32+
'label' => 'Is Published',
33+
],
34+
'status' => [
35+
'label' => 'Status',
36+
],
37+
'is_root_level' => [
38+
'label' => 'Is Root Level',
39+
],
40+
'published_at' => [
41+
'label' => 'Publish At',
42+
'hint' => 'If set to a future date, this page will be published automatically when that time is reached.',
43+
],
44+
'latest_published_at' => [
45+
'label' => 'Latest Published At',
46+
],
47+
'url' => [
48+
'label' => 'URL',
49+
],
50+
'template' => [
51+
'label' => 'Template',
52+
'instructions' => 'Keep empty to use the default template of the document type',
53+
],
54+
'document_type' => [
55+
'label' => 'Document Type',
56+
'validation_attribute' => 'document type',
57+
],
58+
59+
'locked_at' => [
60+
'label' => 'Locked at',
61+
],
62+
'locked_by' => [
63+
'label' => 'Locked by',
64+
],
65+
1666
'seo' => [
17-
'tab' => [
18-
'label' => 'SEO',
19-
],
2067
'meta_title' => [
2168
'label' => 'Meta Title',
2269
'validation_attribute' => 'meta title',
@@ -51,10 +98,8 @@
5198
'instructions' => 'Enter the open graph image of the content',
5299
],
53100
],
101+
54102
'robots' => [
55-
'section' => [
56-
'heading' => 'Robots',
57-
],
58103
'noindex' => [
59104
'label' => 'No Index',
60105
'validation_attribute' => 'no index',
@@ -66,10 +111,8 @@
66111
'instructions' => 'Prevent search engines from following links on this content',
67112
],
68113
],
114+
69115
'redirect' => [
70-
'section' => [
71-
'heading' => 'Redirect',
72-
],
73116
'redirect_path' => [
74117
'label' => 'Redirect Path',
75118
'validation_attribute' => 'redirect path',
@@ -91,10 +134,8 @@
91134
'302' => '302 Temporary (default)',
92135
],
93136
],
137+
94138
'sitemap' => [
95-
'tab' => [
96-
'label' => 'Site Map',
97-
],
98139
'enable' => [
99140
'label' => 'Enable',
100141
'validation_attribute' => 'enable',
@@ -117,52 +158,42 @@
117158
'instructions' => 'Select the change frequency of the content',
118159
],
119160
],
120-
'details' => [
121-
'tab' => [
122-
'label' => 'Details',
161+
162+
'routes' => [
163+
'is_default_pattern' => [
164+
'label' => 'Is default pattern',
165+
'validation_attribute' => 'is default pattern',
166+
'hints' => 'Default pattern: :format',
167+
],
168+
'language_id' => [
169+
'label' => 'Locale',
170+
'validation_attribute' => 'locale',
171+
'placeholder' => 'Default locale',
172+
],
173+
'uri' => [
174+
'label' => 'Path',
175+
'validation_attribute' => 'path',
176+
'hints' => 'The path should start with a \'/\'.',
177+
],
178+
'regex_constraints' => [
179+
'label' => 'Regex Constraints',
180+
'validation_attribute' => 'regex constraints',
181+
'key_label' => 'Parameter',
182+
'value_label' => 'Value',
183+
'hints' => 'Add regex constraints to the route pattern. Example: <i>:examples</i> ...',
123184
],
124185
],
125-
'parent' => [
126-
'label' => 'Parent',
127-
],
128-
'created_at' => [
129-
'label' => 'Created At',
130-
],
131-
'updated_at' => [
132-
'label' => 'Last Updated At',
133-
],
134-
'deleted_at' => [
135-
'label' => 'Deleted At',
136-
],
137-
'visibility' => [
138-
'label' => 'Visibility',
139-
],
140-
'is_published' => [
141-
'label' => 'Is Published',
142-
],
143-
'status' => [
144-
'label' => 'Status',
145-
],
146-
'is_root_level' => [
147-
'label' => 'Is Root Level',
148-
],
149-
'published_at' => [
150-
'label' => 'Publish At',
151-
'hint' => 'If set to a future date, this page will be published automatically when that time is reached.',
152-
],
153-
'latest_published_at' => [
154-
'label' => 'Latest Published At',
155-
],
156-
'url' => [
157-
'label' => 'URL',
158-
],
159-
'template' => [
160-
'label' => 'Template',
161-
'instructions' => 'Keep empty to use the default template of the document type',
162-
],
163-
'document_type' => [
164-
'label' => 'Document Type',
165-
'validation_attribute' => 'document type',
186+
187+
'history' => [
188+
'field' => [
189+
'label' => 'Field',
190+
],
191+
'from' => [
192+
'label' => 'From',
193+
],
194+
'to' => [
195+
'label' => 'To',
196+
],
166197
],
167198

168199
'notification' => [
@@ -172,19 +203,26 @@
172203
],
173204
],
174205

175-
'general' => [
176-
'section' => [
177-
'heading' => 'General',
178-
],
206+
'tabs' => [
207+
'content' => 'Content',
208+
'details' => 'Details',
209+
'sitemap' => 'Site Map',
210+
'seo' => 'SEO',
179211
],
180-
'content' => [
181-
'tab' => [
182-
'label' => 'Content',
212+
213+
'sections' => [
214+
'general' => [
215+
'heading' => 'General',
183216
],
184-
],
185-
'seo_og' => [
186-
'section' => [
217+
'seo_og' => [
187218
'heading' => 'Open Graph',
188219
],
220+
'robots' => [
221+
'heading' => 'Robots',
222+
],
223+
'redirect' => [
224+
'heading' => 'Redirect',
225+
],
189226
],
227+
190228
];

0 commit comments

Comments
 (0)