By default and some miracle happening in the language detection/block/form management APIs the search form will use the language defined for the interface, not the language. Which means that if you are setting up a site, where the content language is different from the interface, the user will end up with a search form that shows on the fallback language configured for the interface.

Comments

snufkin created an issue. See original summary.

snufkin’s picture

StatusFileSize
new2.63 KB

The patch attached ensures that routes and t() functions retrieve the content language and use it.

snufkin’s picture

StatusFileSize
new2.93 KB

Adding the language to the cache context.

snufkin’s picture

StatusFileSize
new2.93 KB

Fixing typo.

snufkin’s picture

StatusFileSize
new3.26 KB

And fixing the reference to the right class.

swentel’s picture

Status: Active » Needs review

Let's see what the testbot thinks

The last submitted patch, 2: block_language_should-2720105-2.patch, failed testing.

The last submitted patch, 2: block_language_should-2720105-2.patch, failed testing.

The last submitted patch, 3: block_language_should-2720105-2.patch, failed testing.

The last submitted patch, 3: block_language_should-2720105-2.patch, failed testing.

The last submitted patch, 3: block_language_should-2720105-2.patch, failed testing.

The last submitted patch, 4: block_language_should-2720105-2.patch, failed testing.

The last submitted patch, 4: block_language_should-2720105-2.patch, failed testing.

The last submitted patch, 2: block_language_should-2720105-2.patch, failed testing.

The last submitted patch, 4: block_language_should-2720105-2.patch, failed testing.

swentel’s picture

Status: Needs review » Fixed

committed and pushed, thanks!

  • swentel committed 5413280 on 8.x-1.x authored by snufkin
    Issue #2720105 by snufkin: Block language should follow the content...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.