The current implementation of the Seperated taxonomy term formatter does not support localization for term names. My suggestion would be to create an extra formatted "Seperated (localized)" so it will match the Link and Plain text formatter variations given by the i18n module.
I already have this code running in a custom module. If there is any interest i would be glad to create a patch for this.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 1902046-5.patch | 2.87 KB | swentel |
| #4 | 1902046-4.patch | 1.91 KB | swentel |
| #2 | localized_version_of_seperated_formatter.patch | 2.31 KB | ericmulder1980 |
Comments
Comment #1
swentel commentedSounds interesting - would a simple if (module_exists('i18n_taxonomy')) { } do the trick, or would it be handier just to have a separate formatter ? IIRC, i18n creates separate formatters anyway right ? I'd commit the patch if there's one :)
Comment #2
ericmulder1980 commentedHere you go. In formatter info i have added an extra formatter with a check for 18n_taxonomy
In the formatter_view i have used exactly the same code as the seperated formatter but i replaced the $term->name with a localized version fetched by 18n.
Comment #3
ericmulder1980 commentedComment #4
swentel commentedI've simplified the patch a little, could you quickly check if this still works ?
Comment #5
swentel commentedThis is what ultimately was committed.