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

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -