Skip to content

Commit 63492be

Browse files
authored
IBX-8283: Added missing policies' UI translations (#370)
For more details see https://issues.ibexa.co/browse/IBX-8283 and #370
1 parent e22466c commit 63492be

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

src/bundle/Core/Resources/translations/forms.en.xlf

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
<note>The source node in most cases contains the sample message as written by the developer. If it looks like a dot-delimitted string such as "form.label.firstname", then the developer has not provided a default message.</note>
77
</header>
88
<body>
9+
<trans-unit id="d4690e1d0c7d2cf0468ab5aa04caa891e1b5efbd" resname="role.policy.all_modules_all_functions">
10+
<source>All modules / All functions</source>
11+
<target state="new">All modules / All functions</target>
12+
<note>key: role.policy.all_modules_all_functions</note>
13+
</trans-unit>
914
<trans-unit id="f52e45b25ff70b3d1d07c57911ceda58dcdf7431" resname="role.policy.class">
1015
<source>Content type</source>
1116
<target>Content type</target>
@@ -131,6 +136,11 @@
131136
<target>Content / Version remove</target>
132137
<note>key: role.policy.content.versionremove</note>
133138
</trans-unit>
139+
<trans-unit id="81703573067457c42db3d0c8cce70e1d1e0128a5" resname="role.policy.content.view_embed">
140+
<source>Content / View embed</source>
141+
<target state="new">Content / View embed</target>
142+
<note>key: role.policy.content.view_embed</note>
143+
</trans-unit>
134144
<trans-unit id="6ff0bcc1b70d0dbde113af7649393f667612cace" resname="role.policy.role">
135145
<source>Role</source>
136146
<target>Role</target>
@@ -266,6 +276,26 @@
266276
<target>State / Assign</target>
267277
<note>key: role.policy.state.assign</note>
268278
</trans-unit>
279+
<trans-unit id="73c3d3a21c7264a991abf4e6ffe68751a1dbdb58" resname="role.policy.url">
280+
<source>URL</source>
281+
<target state="new">URL</target>
282+
<note>key: role.policy.url</note>
283+
</trans-unit>
284+
<trans-unit id="4b00222e7c5b268480fe9db2de1744d0f25b677f" resname="role.policy.url.all_functions">
285+
<source>URL / All functions</source>
286+
<target state="new">URL / All functions</target>
287+
<note>key: role.policy.url.all_functions</note>
288+
</trans-unit>
289+
<trans-unit id="4bf7f289b67892bf61f10b4f9a1db7b6dc09e69a" resname="role.policy.url.update">
290+
<source>URL / Update</source>
291+
<target state="new">URL / Update</target>
292+
<note>key: role.policy.url.update</note>
293+
</trans-unit>
294+
<trans-unit id="a9e0e8261157424542b507b9ae39b4e1193d24cd" resname="role.policy.url.view">
295+
<source>URL / View</source>
296+
<target state="new">URL / View</target>
297+
<note>key: role.policy.url.view</note>
298+
</trans-unit>
269299
<trans-unit id="78b9d0d52e636ef2d0d1f919de16154404c2be0f" resname="role.policy.user">
270300
<source>User</source>
271301
<target>User</target>

src/bundle/Core/Translation/Policy/PolicyTranslationDefinitionProvider.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ final class PolicyTranslationDefinitionProvider implements TranslationContainerI
2121
public static function getTranslationMessages(): array
2222
{
2323
return [
24+
(new Message('role.policy.all_modules_all_functions', self::TRANSLATION_DOMAIN))
25+
->setDesc('All modules / All functions'),
2426
(new Message('role.policy.content', self::TRANSLATION_DOMAIN))
2527
->setDesc('Content'),
2628
(new Message('role.policy.content.all_functions', self::TRANSLATION_DOMAIN))
@@ -35,6 +37,8 @@ public static function getTranslationMessages(): array
3537
->setDesc('Content / Edit'),
3638
(new Message('role.policy.content.hide', self::TRANSLATION_DOMAIN))
3739
->setDesc('Content / Hide'),
40+
(new Message('role.policy.content.view_embed', self::TRANSLATION_DOMAIN))
41+
->setDesc('Content / View embed'),
3842
(new Message('role.policy.content.manage_locations', self::TRANSLATION_DOMAIN))
3943
->setDesc('Content / Manage locations'),
4044
(new Message('role.policy.content.pendinglist', self::TRANSLATION_DOMAIN))
@@ -121,6 +125,15 @@ public static function getTranslationMessages(): array
121125
(new Message('role.policy.setup.system_info', self::TRANSLATION_DOMAIN))
122126
->setDesc('Setup / System info'),
123127

128+
(new Message('role.policy.url', self::TRANSLATION_DOMAIN))
129+
->setDesc('URL'),
130+
(new Message('role.policy.url.all_functions', self::TRANSLATION_DOMAIN))
131+
->setDesc('URL / All functions'),
132+
(new Message('role.policy.url.view', self::TRANSLATION_DOMAIN))
133+
->setDesc('URL / View'),
134+
(new Message('role.policy.url.update', self::TRANSLATION_DOMAIN))
135+
->setDesc('URL / Update'),
136+
124137
(new Message('role.policy.user', self::TRANSLATION_DOMAIN))
125138
->setDesc('User'),
126139
(new Message('role.policy.user.all_functions', self::TRANSLATION_DOMAIN))

0 commit comments

Comments
 (0)