Posted by mperrando on September 19, 2012 at 10:46am
5 followers
| Project: | Internationalization Views |
| Version: | 7.x-3.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | reviewed & tested by the community |
Issue Summary
The transformation is applied in the wrong place: i.e. AFTER the term in the original language has been found.
But at that time, the search in the locales_target has already failed because the argument contains the dashes. Furthermore, if the query is successful, then the transform must not be applied another time.
The proposed applies the transform also in the localized search adding a new argument to the function i18nviews_locale_source.
Then, if the search is successful, put the transform flag to false, because we already have the term without the dashes.
See the attached patch.
NOTE: this patch already contains the one proposed in http://drupal.org/node/1786876
| Attachment | Size |
|---|---|
| patch.patch | 3.13 KB |
Comments
#1
The proposed patch contains modifications to the info file. Sorry.
This is the same patch with only the correct files.
#2
Works for me and fixed a problem that was caused me all sorts of bother.