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.

Files 1

History 2

  1. Georg Ringer commented and changed attached Bildschirmfoto 2024-06-18 um 22.15.25.png status New Resolved 06/18/24, 20:16

    !Bildschirmfoto%202024-06-18%20um%2022.15.25.png!
    footer is now translated – tested with v13 – - at leat what is currently not hardcoded, closing issue therefore

  2. Benni Mack changed status Resolved Closed 07/09/24, 15:19