我正在使用FOS用户软件包进行翻译,并覆盖了模板。 在我的模板中,我使用其他翻译。他们不工作。 FOS翻译正在运行。
FOS: {{'security.login.submit'| trans}}
我的: {{'myloginmessage'| trans}}
我在 .... / translations / messages.de.xlf 和 .... / translations / messages.en.xlf
像这样:
<?xml version="1.0"?>
<trans-unit id="title_post_list">
<source>WelcomeTitle</source>
<target>Herzlich willkommen</target>
</trans-unit>
<trans-unit id="just_a_test">
<source>Test this</source>
<target>Teste das mal</target>
</trans-unit>
<trans-unit id="remember_me">
<source>remember_me</source>
<target>Automatisch anmelden</target>
</trans-unit>
<trans-unit id="myloginmessage">
<source>myloginmessage</source>
<target>Bitte anmelden</target>
</trans-unit>
</body>
</file>
但是它不起作用。它显示源(myloginmessage)而不是翻译
对我有什么提示吗? 关于n00n