I am setting up FOSUserBundle dev-master with Symfony 2.3 RC1 but translation is not working well. It comes by default with trans_default_domain in the templates
In the login template. It doesn't with trans_default_domain
{% trans_default_domain "FOSUserBundle" %}
<label class="control-label" for="username">{{ 'security.login.username'|trans }}</label>
but using trans({}, 'FOSUserBundle') It works
<label class="control-label" for="username">{{ 'security.login.username'|trans({}, 'FOSUserBundle') }}</label>
What's wrong with trans_default_domain? need any extra config?
Try to enable the symfony translation component. By default it is commented out:
# app/config/config.yml
framework:
translator: { fallback: en }
http://symfony.com/doc/current/book/translation.html#configuration
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With