Bug in Search banner theme component

AI-generated summary

A user reports a bug in the Search Banner Theme Component plugin, where configuration settings appear to be per-admin rather than site-wide, leading to different messages for different admins hhlp. Another user, simon, clarifies that the issue is likely due to locale-specific translations in the theme settings, as the plugin’s translations are tied to the user’s locale (e.g., English vs. English (United States)). This confusion is exacerbated if the ‘set locale from accept language header’ setting is enabled, causing users to see different translations unintentionally.

I’ve installed this plug-in:

and I’ve found the followgin Problem, it seems configuration is for ADMIN and not for the entire site, every admin can configure the plug-in and have a diferent message.

Is a wheel of Fortune :man_shrugging:

Admin 1 this is what I can see in admin panel:

This is My Search:

Admin 2 this is what they see in admin panel:

This is their Search:

Captura de pantalla de 2021-01-09 21-58-21

Conclusion

Every admin has different Message → Doesn’t match…

Also have the posibility to left the first header blank.

Regards.,

1 like

I’m fairly sure that the problem you are running into is that the settings in the component’s Theme Translations section are per locale, not per admin. This means that if two admin users have selected different locales, they will not be translating the same text string. This can be very confusing when some users have the English locale selected and other users have the English (United States) locale selected.

Another thing that can add to the confusion is the set locale from accept language header setting is enabled on the site. When that setting is enabled, some users may have their locale set to English and other users have their locale set to English (United States) without being aware of it. It seems likely that this is what is happening on your site.

Since the English and the English (United States) locales are so similar, it seems that we should be doing something to prevent this type of issue.

4 likes