- Issue created by @ashrafomar
- Status changed to RTBC
about 2 years ago 2:43pm 8 February 2023 - 🇺🇸United States pianomansam
This fixed the issue for me on 2.0.0-beta1. I'm bumping this issue to 2.x-dev because that's the latest version. However, it can be backported and the current time as well.
- Status changed to Needs work
about 2 years ago 7:57am 9 February 2023 - 🇷🇸Serbia gnikolovski Subotica, Serbia
Using translations like this is not recommended:
$this->t($block_plugin->label())
Only string literals should be passed to t().
We need to change this.
- Status changed to Needs review
about 2 years ago 10:18am 9 February 2023 - 🇮🇳India mrinalini9 New Delhi
Added patch by addressing #5, please review it.
- 🇬🇧United Kingdom alexp999
It's been caused by 3255460 📌 'Facets to include' lists Summary facet that might not exist Fixed
For some reason the facet title had the source added, really unnecessary and broken front end UI
- 🇨🇦Canada nord102
Re-rolled the previous patches to use the
$block_plugin->label()
and translate it properly. - Status changed to RTBC
almost 2 years ago 5:50pm 19 April 2023 - 🇨🇦Canada b_sharpe
Patch in #6 📌 Facet title is using the facet source & facet name as title instead of using the facet label Fixed is correct, Patch #8 📌 Facet title is using the facet source & facet name as title instead of using the facet label Fixed is unnecessarily translating a variable that should already handle it's own translation, there is no reason to pass this through t() unless there was some prefix/suffix text here.
- last update
over 1 year ago Patch Failed to Apply - 🇧🇪Belgium yorder.be
This doesn't seem to work with translations.
This seems to work. - 🇫🇮Finland Aelfendir
Patch #11 worked perfectly in our project (D10.1.4) to fix an issue with translations. Thanks!
- Assigned to gnikolovski
-
gnikolovski →
committed 3ca113bd on 2.0.x authored by
yoram.derumeaux →
Issue #3338909 by ashrafomar, nord102, mrinalini9, yoram.derumeaux,...
-
gnikolovski →
committed 3ca113bd on 2.0.x authored by
yoram.derumeaux →
- Status changed to Fixed
over 1 year ago 6:21am 13 October 2023 - 🇷🇸Serbia gnikolovski Subotica, Serbia
Fixed.
Patch #11 applied, since it works with translations as well (I just tested it).
- 🇳🇿New Zealand jonathan_hunt
Unfortunately the change in patch #11 as released in 2.0.0-beta3 fails in the case of
drupal/facets_range_dropdowns
since$build['0']['#facet']
is not set. For now, I am usingif (isset($build['0']['#facet'])) { $title = $build['0']['#facet']->getName(); } else { $title = $block_plugin->label(); } $facets[] = [ '#block_plugin' => $block_plugin, 'title' => $title, 'content' => $build, 'attributes' => new Attribute($build['#attributes']), ];
- 🇷🇸Serbia gnikolovski Subotica, Serbia
Fixed the issue in #16 and released 2.0.0-beta4.
- 🇳🇿New Zealand jonathan_hunt
Thanks for that, working for me via 2.0.0-beta4.
Automatically closed - issue fixed for 2 weeks with no activity.