symfony - FOSUserBundle doesn't translate with trans_default_domain -
i setting fosuserbundle dev-master symfony 2.3 rc1 translation not working well. comes default trans_default_domain in templates
in login template. doesn't trans_default_domain
{% trans_default_domain "fosuserbundle" %} <label class="control-label" for="username">{{ 'security.login.username'|trans }}</label> but using trans({}, 'fosuserbundle') works
<label class="control-label" for="username">{{ 'security.login.username'|trans({}, 'fosuserbundle') }}</label> what's wrong trans_default_domain? need config?
try enable symfony translation component. default commented out:
# app/config/config.yml framework: translator: { fallback: en } http://symfony.com/doc/current/book/translation.html#configuration
Comments
Post a Comment