소스 검색

added translation domain on trans filter

matteosister 13 년 전
부모
커밋
77057f7c98
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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 %}
 {% 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>