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.
I have multilingual site and has a lot of facets blocks, for example this four.
Their labels is translated:
But on admin page they prints original value. Maybe this is similar bug, but blocks for this facets also has original value as label:
They are also translated and correctly printed on the page, but admin UI has incorrect values.
Comment | File | Size | Author |
---|---|---|---|
#13 | facets_label_in-2920766-13.patch | 1.95 KB | borisson_ |
#13 | facets_label_in-2920766-13--testonly.patch | 1.04 KB | borisson_ |
Comments
Comment #2
NiklanComment #3
borisson_Not sure if this related to facets specifically or to core's block system. This looks like it's the latter. Do you have the same problems with other blocks (a custom block or something like that?)
The positioning of the blocks is not something we control ourselves but we let core handle that.
Comment #4
NiklanHm, I will try it in few hours. Thank you for answer.
Comment #5
NiklanI fixed it. Was my mistake. All the blocks in this sidebar has 0 wight. At first I looking for this, but by mistake I look at first sidebar weight, not the second, which is normal. I reorder them and they showed in the same order on all languages!
Thank you!
By the way, the labels for facets which is not shown correct translation is bug?
This facets labels is translated and on English still shows Russian labels. This is not problem, but maybe a little bug or again my mistake.
Comment #6
borisson_Awesome, good to know that we didn't screw with core too much ;)
Yeah, the labels not showing up does sound like a bug. Let's rework this issue summary/title to say that that's what this is about now.
Comment #7
NiklanOkay, I rework issue right now.
Comment #8
NiklanRework issue to another bug.
Comment #9
NiklanI created patch to fix this.
Comment #10
borisson_Setting to needs review to see if the testbot likes this, but I think it should.
Comment #12
borisson_Failed because of #2922302: Fix deprecated usage of twig's 'replace' filter
Comment #13
borisson_Added a test.
Comment #15
borisson_Going to commit this later today.
Comment #17
borisson_Committed, thanks!