symfony2admingenerator / GeneratorBundle

Admingenerator for Symfony. Parse YAML files to build customized backend.
MIT License
67 stars 29 forks source link

Prevent double translation in Filter form label by treating it the same as edit or new form labels #315

Closed tobias-93 closed 7 years ago

tobias-93 commented 7 years ago

Filter form labels are translated by default, which could lead to double translations if the project also implements translation of form labels. However, edit and new forms do not do this translation, leading to inconsistent behavior.

This PR proposes a change in the build-up of form rows in the filter form, making the behavior for new, edit and filter forms the same. It seems that some 'functionality' is lost (being able to give the filter form row a different label than the other forms), but this can easily be achieved by passing the label in the filterOptions or by changing it in the list builder. Therefore, no real functionality is lost.

sescandell commented 7 years ago

👍