[英]Override a translation on the Sonata Admin login screen
在Sonata Admin登录屏幕上,默认翻译为“身份验证”,但我希望能够更改此设置。
在\\vendor\\sonata-project\\user-bundle\\Resources\\views\\Admin\\Security\\login.html.twig
有以下行:
<div class="header">{{ 'title_user_authentication'|trans({}, 'SonataUserBundle') }}</div>
可以在\\vendor\\sonata-project\\user-bundle\\Resources\\translations\\SonataUserBundle.en.xliff
找到此\\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>
我正在尝试找出如何从自己的捆绑包中更改此设置。 Sonata文档中似乎没有涉及这种情况,这非常好。
覆盖翻译不是特定于奏鸣曲,而是Symfony。
请参见symfony文档的“覆盖捆绑包的任何部分”部分: http : //symfony.com/doc/current/cookbook/bundles/override.html#translations
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.