Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
On a multilingual website with i18n and menu translation, the breadcrumb title is not translated if I use breadcrumb reaction.
I've written a little patch that should solve this.
Comment | File | Size | Author |
---|---|---|---|
#2 | translate_the_title_on_multilingue_website-1119596-2.patch | 621 bytes | fxarte |
#1 | context-1119596-1.patch | 1.03 KB | plach |
context_reaction_breadcrumb_i18n.patch | 691 bytes | yraber | |
Comments
Comment #1
plachThe patch from the OP works as advertised, I made some small improvement.
Comment #2
fxarte CreditAttribution: fxarte commentedI think another solution is to allow any module to tap into the breadcrumb reaction query. We can accomplish this by adding a tag to it, then implementing hook_query_alter.
Here is a patch that adds the tag.
Comment #3
iamEAP CreditAttribution: iamEAP commentedCleaning up issue details.
Comment #4
iamEAP CreditAttribution: iamEAP commentedNot sure that @fxarte's approach in #2 is appropriate; this should Just Work™ for admin without developer involvement.
With that being said the approach taken in #1 (and also the original patch) seems good. I applied and tested #1 and it worked as expected.
Marking the patch in #1 as RTBC.
Comment #5
iamEAP CreditAttribution: iamEAP commentedAnd... Yup. This is still working great.
Comment #6
colanCommitted #1 in a9116ab.