Skip to content

Commit

Permalink
NGSTACK-730: switch translations to content fields
Browse files Browse the repository at this point in the history
  • Loading branch information
pspanja committed Feb 13, 2023
1 parent f2b8263 commit 7e2f237
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
12 changes: 7 additions & 5 deletions templates/themes/app/parts/cookie_control.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
{% endif %}
</a>
<button id="ng-cc-accept" class="btn btn-primary">
{% if not cookie_policy.fields.ribbon_button_label.empty %}
{{ ng_render_field(cookie_policy.fields.ribbon_button_label) }}
{% if not cookie_policy.fields.ribbon_button_accept_all_label.empty %}
{{ ng_render_field(cookie_policy.fields.ribbon_button_accept_all_label) }}
{% endif %}
</button>
</div>
Expand All @@ -47,9 +47,11 @@
</li>
</ul>
<div class="ng-cc-optional-actions clearfix">
<button id="ng-cc-optional-save" class="btn btn-outline-primary">
{{ 'ngsite.layout.cookie_settings.save'|trans }}
</button>
<button id="ng-cc-optional-save" class="btn btn-outline-primary">
{% if not cookie_policy.fields.ribbon_button_save_label.empty %}
{{ ng_render_field(cookie_policy.fields.ribbon_button_save_label) }}
{% endif %}
</button>
</div>
</div>
</div>
Expand Down
1 change: 0 additions & 1 deletion translations/messages.de.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ ngsite.layout.site_frontpage: "%site_name% Titelseite"
ngsite.layout.meta_generator: "Ibexa-Plattform, unterstützt von Netgen"
ngsite.layout.powered_by: "Unterstützt durch"
ngsite.layout.cookie_settings: "Cookie Einstellungen"
ngsite.layout.cookie_settings.save: "Einstellungen speichern"
ngsite.layout.cookie_settings.accepted: "Akzeptiert"
ngsite.layout.cookie_settings.not_accepted: "Nicht akzeptiert"
ngsite.layout.sponsored: 'Gesponsert'
Expand Down
1 change: 0 additions & 1 deletion translations/messages.en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ ngsite.layout.site_frontpage: "%site_name% front page"
ngsite.layout.meta_generator: "Ibexa DXP powered by Netgen"
ngsite.layout.powered_by: "Powered by"
ngsite.layout.cookie_settings: "Cookie settings"
ngsite.layout.cookie_settings.save: "Save settings"
ngsite.layout.cookie_settings.accepted: "Accepted"
ngsite.layout.cookie_settings.not_accepted: "Not accepted"
ngsite.layout.sponsored: 'Sponsored'
Expand Down

0 comments on commit 7e2f237

Please sign in to comment.