I'm working on a site that makes heavy use of i18n, and found that the gallery breadcrumbs in the node, gallery, and subgallery views are not being translated properly. I've managed to isolate one of the pain points in the gallery code for the node page, but suspect the other breadcrumbs are going to be Views-based patches as they appear to be generated by Views (if anyone knows otherwise let me know and I'll pursue those patches as well).
In the meantime, I have successfully applied the following patches to 6.x-1.0-beta5 to provide the following support in gallery node pages:
- Check for the existence of i18ntaxonomy.module
- If available, check the gallery vocabulary for localization using i18ntaxonomy.module
- If everything checks out for i18n taxonomy support, set an internal flag and apply i18n translations to breadcrumb strings where necessary
Feedback from anyone else having this particular problem would be great as I've had no luck finding anything in the issue queue or the forums...
Comment | File | Size | Author |
---|---|---|---|
image_gallery.pages_.inc-i18ntaxonomy-D6.patch | 918 bytes | arpieb | |
image_gallery.module-i18ntaxonomy-D6.patch | 1.28 KB | arpieb | |
Comments
Comment #1
arpieb CreditAttribution: arpieb commentedSorry, I forgot to point out these patches also take care of the translation of gallery names in the subgallery list pages... The only breadcrumb remaining untranslated after applying these patches is the Views-based gallery with image thumbnails (View name image_gallery).
Comment #2
joachim CreditAttribution: joachim commentedThis doesn't address Views galleries, but as pointed out in #431344: Image gallery term translations not displayed, that's not our problem.
Needs to be rolled as a single patch from the base folder of the image package.
Argh. I hate this kind of nonsense that PHP requires us to do. I'd rather we said:
I don't know that much about how translation works (except that every time I install it I find the UI completely crazy). So I'd appreciate reviews from actual users.
Powered by Dreditor.
Comment #3
steff2009 CreditAttribution: steff2009 commentedHi Joachim, can you explain a little better what we need to do with the patch you posted?
Create a file called image_gallery.pages.in containing your code below and upload it into the image package folder?
Thanks for your help, cheers.
Comment #4
joachim CreditAttribution: joachim commentedSee http://drupal.org/patch/apply for help on applying a patch. But note as I say the patches will not apply properly because they've not been made in the correct manner.