Forráskód Böngészése

added translation domain on trans filter

matteosister 13 éve
szülő
commit
77057f7c98
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      Resources/views/Form/form_admin_fields.html.twig

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

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