Closed
Description
When bundles has personal translation domains it is too hard to set domain in controllers/templates. For example now we have
{{ 'registration.greeting_message'|trans({}, 'VendorNameBundle') }}
<?php
$this->translator->trans('registration.greeting_message', array(), 'VendorNameBundle');
I am proposing provide alternative way to set domain, like
{{ 'VendorNameBundle@registration.greeting_message'|trans }}
<?php
$this->translator->trans('VendorNameBundle@registration.greeting_message');