Translated text not applied

Created on 12 July 2023, over 1 year ago

Problem/Motivation

I use this module in a localized site. When I edited widget texts at /admin/config/system/cookies/texts my edited texts did never appear.

Proposed resolution

I tracked down how this text come into the UI block and changed one line in function getTranslation:
- $config = $this->configFactory->get('cookies.texts')->get();
+ $config = $this->configFactory->get('cookies.texts')->getRawData();

My texts were used now and I did not see any unwanted side effects. But: I do not offer a english version of my site.

Remaining tasks

Perhaps more users could check if my patch works on their setups and give feedback, if they experience the same problem and if my patch works. I had this problem on several sites but no customer complained until now.

🐛 Bug report
Status

Needs work

Version

1.2

Component

Code

Created by

🇦🇹Austria anschinsan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @anschinsan
  • Status changed to Needs work over 1 year ago
  • 🇩🇪Germany Anybody Porta Westfalica

    Thanks, could you please provide the patch as MR? And explain theoretically, why this is correct and was incorrect before?

Production build 0.71.5 2024