sonata-project / SonataAdminBundle

The missing Symfony Admin Generator
https://docs.sonata-project.org/projects/SonataAdminBundle
MIT License
2.11k stars 1.26k forks source link

Minor Translation Problems #640

Closed pulzarraider closed 8 years ago

pulzarraider commented 12 years ago

Hi, first of all, thanks for this Admin Bundle. It's awesome.

I'm creating localized administration for my page and I've found some problems:

~~- Title of groups in dashboard and top menu is untranslatable ~~ Problem: In template Sonata\AdminBundle\Resources\views\Block\block_admin_list.html.twig is used SonataAdminBundle translation domain instead of some custom domain. {{ group.label|trans({}, 'SonataAdminBundle') }}

This can be solved with label_catalogue parameter. It should be added to documentation.

        <service id="some_service" class="Some\Class">
            <tag name="sonata.admin" manager_type="orm" group="deal_group" label_catalogue="admin" label="Cities" />
            <argument />
             ...

        </service>

- Title of column " Action" in view part contains space at begining. It took me a lot of time to find out why my translation is not used. Fixed with #1386

Maybe these bugs can be solved with custom templates, but it would be great if the default template would be usable as much as possible.

core23 commented 8 years ago

Ping @pulzarraider Ticket is very old. Has this been solved?