소스 검색

translation in twig templates uses the twig translation filter (#4230)

Bruno Galeotti 8 년 전
부모
커밋
8d8649cd01
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Resources/views/CRUD/base_show.html.twig

+ 1 - 1
Resources/views/CRUD/base_show.html.twig

@@ -83,7 +83,7 @@ file that was distributed with this source code.
                         <div class="box-header">
                             <h4 class="box-title">
                                 {% block show_title %}
-                                    {{ admin.trans(show_group.name, {}, show_group.translation_domain) }}
+                                    {{ show_group.name|trans({}, show_group.translation_domain) }}
                                 {% endblock %}
                             </h4>
                         </div>