Issue Bug Closed

#101826Copyright notice in SystemEmail footer not translated for backend password reset request

RVVN no-lastname-given 09/01/23, 16:24 updated 07/09/24, 15:19

Description

Hi,

when I use the password reset feature for backend user, the copyright notice in email footer is not translated.

The equivalent feature for felogin (forgot password) is working.

After digging, I found that LanguageService::readLLfile() merge the default language into the translated language (in my case, “default” is merge into “fr”) at this point :

if ($this->lang !== 'default' && isset($tempLL[$language])) {
    // Merge current language labels onto labels from previous language
    // This way we have a labels with fall back applied
    ArrayUtility::mergeRecursiveWithOverrule($localLanguage[$this->lang], $tempLL[$language], true, false);
}

I admit that I have not a good understanding of the comment and why this is done for fall back, but if I change the condition test as following, the copyright notice is translated.

if ($language !== 'default' && isset($tempLL[$language])) {

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.