-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IBX-4452: Added JMSTranslation configuration and missing translations #184
Conversation
...dle/Core/DependencyInjection/Security/PolicyProvider/PolicyTranslationDefinitionProvider.php
Outdated
Show resolved
Hide resolved
...dle/Core/DependencyInjection/Security/PolicyProvider/PolicyTranslationDefinitionProvider.php
Outdated
Show resolved
Hide resolved
(new Message('role.policy.content.all_functions', 'forms'))->setDesc('Content / All functions'), | ||
(new Message('role.policy.content.cleantrash', 'forms'))->setDesc('Content / Cleantrash'), | ||
(new Message('role.policy.content.create', 'forms'))->setDesc('Content / Create'), | ||
(new Message('role.policy.content.diff', 'forms'))->setDesc('Content / Diff'), | ||
(new Message('role.policy.content.edit', 'forms'))->setDesc('Content / Edit'), | ||
(new Message('role.policy.content.hide', 'forms'))->setDesc('Content / Hide'), | ||
(new Message('role.policy.content.manage_locations', 'forms'))->setDesc('Content / Manage locations'), | ||
(new Message('role.policy.content.pendinglist', 'forms'))->setDesc('Content / Pendinglist'), | ||
(new Message('role.policy.content.publish', 'forms'))->setDesc('Content / Publish'), | ||
(new Message('role.policy.content.read', 'forms'))->setDesc('Content / Read'), | ||
(new Message('role.policy.content.remove', 'forms'))->setDesc('Content / Remove'), | ||
(new Message('role.policy.content.restore', 'forms'))->setDesc('Content / Restore'), | ||
(new Message('role.policy.content.reverserelatedlist', 'forms'))->setDesc('Content / Reverserelatedlist'), | ||
(new Message('role.policy.content.translate', 'forms'))->setDesc('Content / Translate'), | ||
(new Message('role.policy.content.translations', 'forms'))->setDesc('Content / Translations'), | ||
(new Message('role.policy.content.unlock', 'forms'))->setDesc('Content / Unlock'), | ||
(new Message('role.policy.content.urltranslator', 'forms'))->setDesc('Content / Urltranslator'), | ||
(new Message('role.policy.content.versionread', 'forms'))->setDesc('Content / Versionread'), | ||
(new Message('role.policy.content.versionremove', 'forms'))->setDesc('Content / Versionremove'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally, I'd consider pulling the common parts of those strings into variables, injected into these Messages using sprintf
or straight up string interpolation.
But it depends on whether the readability would suffer, and if others agree.
8db4d5d
to
daa308b
Compare
fafde70
to
1b11165
Compare
...dle/Core/DependencyInjection/Security/PolicyProvider/PolicyTranslationDefinitionProvider.php
Outdated
Show resolved
Hide resolved
...dle/Core/DependencyInjection/Security/PolicyProvider/PolicyTranslationDefinitionProvider.php
Outdated
Show resolved
Hide resolved
6e26b3e
to
0d25658
Compare
0d25658
to
4b3e340
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Merged per internal agreement with QA. |
v4.4
This PR adds:
Checklist:
$ composer fix-cs
).@ibexa/engineering
).