-
-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#81 add translation on list and on filters #83
Conversation
…d and his translation, list block style
public function configureQuery(AdminInterface $admin, ProxyQueryInterface $query, $context = 'list') | ||
{ | ||
$this->getTranslatableListener()->setTranslatableLocale($this->getTranslatableLocale($admin)); | ||
$this->getTranslatableListener()->setTranslationFallback(''); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@liquorvicar i guess this would add more to the problem you report in #61 - then again i think the fix likely will look the same as for the other occurance of this code.
looks good to me. i am not familiar with the sonataci quick check - that one seems to fail. |
Run |
@dbu : you have to click on "Console Output" to see something useful |
continued in #84 |
oh, and @mcrinquand: please comment something after updating a pull request. i only get email notifications on comments, not on new commits, so there is quite a risk i would not see new commits. |
In the configureQuery, with the translatable listener the locale is changed for Doctrine and data are translated on the list.
translationFieldFilter is a callback method to use on doctrine_orm_callback filter to filter on field and on its translation.