mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-12 00:09:44 +00:00
@@ -43,7 +43,7 @@ services:
|
||||
class: Chill\CustomFieldsBundle\CustomFields\CustomFieldChoice
|
||||
arguments:
|
||||
- "@request_stack"
|
||||
- %locale%
|
||||
- "@translator.default"
|
||||
- "@templating"
|
||||
- "@chill.main.helper.translatable_string"
|
||||
tags:
|
||||
|
@@ -10,7 +10,7 @@
|
||||
<i class="fa fa-square-o"></i>
|
||||
{%- endif -%}
|
||||
{%- if choice['slug'] is not same as('_other') -%}
|
||||
{{ choice['name'][app.request.locale]|default(choice['name'][locale]|default('Not available in your language'|trans)) }}
|
||||
{{ choice['name']|localize_translatable_string }}
|
||||
{%- else -%}
|
||||
{{ choice['name'] }}
|
||||
{%- endif -%}
|
||||
|
Reference in New Issue
Block a user