Kaynağa Gözat

added translation domain on trans filter

matteosister 13 yıl önce
ebeveyn
işleme
77057f7c98

+ 2 - 2
Resources/views/Form/form_admin_fields.html.twig

@@ -1,12 +1,12 @@
 {% block sonata_security_roles_widget %}
 {% block sonata_security_roles_widget %}
 {% spaceless %}
 {% spaceless %}
     <div class="editable">
     <div class="editable">
-        <h4>{{ 'field.label_roles_editable'|trans }}</h4>
+        <h4>{{ 'field.label_roles_editable'|trans({}, "SonataUserBundle") }}</h4>
         {{ block('choice_widget') }}
         {{ block('choice_widget') }}
     </div>
     </div>
     {% if read_only_choices|length > 0 %}
     {% if read_only_choices|length > 0 %}
     <div class="readonly">
     <div class="readonly">
-        <h4>{{ 'field.label_roles_readonly'|trans }}</h4>
+        <h4>{{ 'field.label_roles_readonly'|trans({}, "SonataUserBundle") }}</h4>
         <ul>
         <ul>
         {% for choice in read_only_choices %}
         {% for choice in read_only_choices %}
             <li>{{ choice }}</li>
             <li>{{ choice }}</li>