Skip to content

Commit

Permalink
Merge pull request #1215 from lucasOsti/EZP-30009-missing-translation…
Browse files Browse the repository at this point in the history
…s-all-modules-all-functions

EZP-30009: Added missing translations on Admin -> Roles
  • Loading branch information
lserwatka authored Feb 4, 2020
2 parents 9a21d61 + 4228784 commit fe69060
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/bundle/Resources/translations/forms.en.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,11 @@
<target state="new">Create</target>
<note>key: policy_create.save</note>
</trans-unit>
<trans-unit id="deab5c91a76488732d0405e72c36702ed2aea3d6" resname="role.policy.all_functions">
<source>All functions</source>
<target state="new">All functions</target>
<note>key: role.policy.all_functions</note>
</trans-unit>
<trans-unit id="d29c07272fff793138cbb6f7dbb41b08a16ff815" resname="role.policy.all_modules">
<source>All modules</source>
<target>All modules</target>
Expand Down
16 changes: 14 additions & 2 deletions src/bundle/Resources/views/admin/policy/list.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,20 @@
{% do form_policies_delete.policies.setRendered %}
{% endif %}
</td>
<td class="ez-table__cell">{{ ('role.policy.' ~ policy.module)|trans({}, 'forms') }}</td>
<td class="ez-table__cell">{{ policy.function|capitalize }}</td>
<td class="ez-table__cell">
{% if policy.module == '*' %}
{{ ('role.policy.all_modules')|trans({}, 'forms')|desc('All modules') }}
{% else %}
{{ ('role.policy.' ~ policy.module)|trans({}, 'forms') }}
{% endif %}
</td>
<td class="ez-table__cell">
{% if policy.function == '*' %}
{{ ('role.policy.all_functions')|trans({}, 'forms')|desc('All functions') }}
{% else %}
{{ policy.function|capitalize }}
{% endif %}
</td>
<td class="ez-table__cell">
{%- if policy.limitations is not empty -%}
<ul class="list-unstyled">
Expand Down

0 comments on commit fe69060

Please # to comment.