2014-12-10 4 views
0

소나타 관리자 로그인 화면에서 기본 번역은 "인증"이지만이를 변경할 수 있습니다.소나타 관리자 로그인 화면에서 번역 덮어 쓰기

<div class="header">{{ 'title_user_authentication'|trans({}, 'SonataUserBundle') }}</div>

이에 대한 번역이 \vendor\sonata-project\user-bundle\Resources\translations\SonataUserBundle.en.xliff에서 발견된다, 즉 :

 <trans-unit id="title_user_authentication"> 
      <source>title_user_authentication</source> 
      <target>Authentication</target> 
     </trans-unit> 

내가에서이를 변경할 수있는 방법을 해결하려고 노력하고 \vendor\sonata-project\user-bundle\Resources\views\Admin\Security\login.html.twig 내부

이 라인이 내 번들 내에서. 이 시나리오는 Sonata 문서에서 다루지 않는 것으로 보입니다.

답변

1

번역 대체는 Sonata에만 해당되는 것이 아니라 Symfony에 해당합니다. http://symfony.com/doc/current/cookbook/bundles/override.html#translations

+0

환상적인, 감사 :

는 심포니 문서의 "번들의 일부를 재정의"절을 참조하십시오. 나는 요리 책에서'app/Resources/translations'의 번역문이 항상 "이깁니다"라고 읽었습니다. 방금 업데이트 된 번역본과 함께'SonataUserBundle.en.xliff'를 추가했습니다. – crmpicco

관련 문제