BreadcrumbsBundle icon indicating copy to clipboard operation
BreadcrumbsBundle copied to clipboard

How to change domain translation?

Open Ronan-Lenor opened this issue 10 years ago • 6 comments

i can't find it in the doc

Ronan-Lenor avatar Aug 28 '15 15:08 Ronan-Lenor

The translation_domain key in configuration

bocharsky-bw avatar Aug 28 '15 15:08 bocharsky-bw

oh! so there's not dynamic modification like:

$breadcrumbs->addItem( "hello", '/', array(), 'myNewDomain' );

:(

Ronan-Lenor avatar Aug 28 '15 15:08 Ronan-Lenor

Also you can pass translation domain as an option to the wo_breadcrumbs_render() Twig function.

bocharsky-bw avatar Aug 28 '15 16:08 bocharsky-bw

thanks, you saved my day.

maybe i should pull a request to add a domain option in the other method. it would be more convenient to use it in a controller i guess

Ronan-Lenor avatar Aug 28 '15 17:08 Ronan-Lenor

Yes, you should, PRs are welcome. I think Rich Sage could take a time to review it.

bocharsky-bw avatar Aug 28 '15 18:08 bocharsky-bw

yep you are right, let's ask. it's free haha ;)

Ronan-Lenor avatar Aug 29 '15 13:08 Ronan-Lenor