I think its possible. Not in controller but only in twig templates.
{% trans_default_domain "app" %}
http://symfony.com/doc/current/book/translation.html
On Tuesday, April 5, 2011 4:04:25 PM UTC+2, Ruudk wrote:
>
> Hi,
>
> Is it possible to set the default translation domain inside a controller
> so that the templates will use this?
>
> Now I have to type this {% trans 'Translate this' from 'mycustomdomain' %}
> but I would like to have (% trans 'Translate this' %)
>
> Is it also possible to restrict the domain of the trans helper to only one
> domain?
>
> Thanks!
>
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en