RTC bug PR-5.4-dev Pending

User tests: Successful: Unsuccessful:

avatar laoneo
laoneo
16 Apr 2026

Pull Request resolves # .

  • I read the Generative AI policy and my contribution is either not created with the help of AI or is compatible with the policy and GNU/GPL 2 or later.

Summary of Changes

When the language of the mail template differs from the application language, then the mail is still sent out in the language of the application and not the language of the mail template. This happens only when no configured mail template for that language is available and the mail subject and body needs to be loaded from the language string. This is mostly the case when an extension uses mail templates, but the are not configured yet.

Testing Instructions

  • Log in on the back end
  • Install a second language
  • Set the front end language in the user profile to the new installed language
  • Got to the global configuration server tab
  • Send a test mail

Actual result BEFORE applying this Pull Request

Mail is sent in English.

Expected result AFTER applying this Pull Request

Mail is sent in the new installed language.

Link to documentations

Please select:

  • Documentation link for guide.joomla.org:

  • No documentation changes for guide.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar laoneo laoneo - open - 16 Apr 2026
avatar laoneo laoneo - change - 16 Apr 2026
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 16 Apr 2026
Category Libraries
avatar laoneo laoneo - change - 16 Apr 2026
Title
[5.4} Load the mail template from the language of the mail template
[5.4] Load the mail template from the language of the mail template
avatar laoneo laoneo - edited - 16 Apr 2026
avatar adarshdubey03 adarshdubey03 - test_item - 18 Apr 2026 - Tested successfully
avatar adarshdubey03
adarshdubey03 - comment - 18 Apr 2026

I have tested this item ✅ successfully on a8a88da

Tested Successfully!

Before applyting the patch, with the user frontend language set to German (de-DE), the test mail was still received in english.
image

After applying the patch, the test mail subject and body were received correctly in german.
image


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47603.
avatar laoneo laoneo - change - 23 Apr 2026
Labels Added: bug PR-5.4-dev
avatar laoneo
laoneo - comment - 23 Apr 2026

@adarshdubey03 can you test this one again?

a0f5611 23 Apr 2026 avatar laoneo safer
avatar joomla-cms-bot joomla-cms-bot - change - 24 Apr 2026
Category Libraries Administration Libraries
avatar muhme muhme - test_item - 8 May 2026 - Tested unsuccessfully
avatar muhme
muhme - comment - 8 May 2026

I have tested this item 🔴 unsuccessfully on 79c912e

Tested with JBT

avatar muhme
muhme - comment - 8 May 2026

I have tested this item 🔴 unsuccessfully on 79c912e

Tested with JBT

avatar laoneo
laoneo - comment - 13 May 2026

Did you set it in the user profile as German only?

avatar krishnagandhicode krishnagandhicode - test_item - 13 May 2026 - Tested successfully
avatar krishnagandhicode
krishnagandhicode - comment - 13 May 2026

I have tested this item ✅ successfully on deda0e2

> Did you set it in the user profile as German only?

Sorry @laoneo we tested this PR together in a PR testing meet and performed the same steps to test it BUT I just realized we did it wrong.

I have just retested this PR and does what it says.

image

For the other testers please go through instructions again (We did not specifically changed the language for user) ;(
If any of you can still not test this - feel free to ping me.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47603.

avatar krishnagandhicode
krishnagandhicode - comment - 13 May 2026

I have tested this item ✅ successfully on deda0e2

> Did you set it in the user profile as German only?

Sorry @laoneo we tested this PR together in a PR testing meet and performed the same steps to test it BUT I just realized we did it wrong.

I have just retested this PR and does what it says.

image

For the other testers please go through instructions again (We did not specifically changed the language for user) ;(
If any of you can still not test this - feel free to ping me.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47603.

avatar adarshdubey03 adarshdubey03 - test_item - 13 May 2026 - Tested successfully
avatar adarshdubey03
adarshdubey03 - comment - 13 May 2026

I have tested this item ✅ successfully on deda0e2

Tested Successfully!


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47603.

avatar adarshdubey03
adarshdubey03 - comment - 13 May 2026

I have tested this item ✅ successfully on deda0e2

Tested Successfully!


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47603.

avatar laoneo
laoneo - comment - 13 May 2026

Thanks 😊

avatar laoneo laoneo - change - 13 May 2026
Status Pending Ready to Commit
avatar laoneo
laoneo - comment - 13 May 2026

rtc


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47603.

avatar laoneo
laoneo - comment - 13 May 2026

rtc


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47603.

avatar laoneo laoneo - change - 26 May 2026
Labels Added: RTC
avatar muhme
muhme - comment - 27 May 2026

Final test before merge with JBT, initial default superuser is ci-admin, frontend and backend language is en-GB

  • Installed fr-FR, created 2nd superuser french-user with 'Receive System Emails' enabled and the front-end and back-end language ‘fr-FR’
    • french-user is getting Bonjour email in French

Before PR, Send Test Mail

  • ✅ as ci-admin getting email correct in English
  • ✅ login as french-user getting email correct in French
  • ❌ as ci-admin set temporary frontend language to French getting email wrong in English (expected was French)

Applied PR with Patch Tester, Send Test Mail

  • ✅ as ci-admin getting email correct in English
  • ✅ login as french-user getting email correct in French
  • ✅ as ci-admin set temporary frontend language to French getting email corrent in French

⚠️ Please note that, in addition to this PR, there are other instances where the language of the email does not match the users' language, for example:

  • Users > Privacy > Requests > Export
    • Email is sent in backend language even user exist for this email and has different language set
  • Frontend 'Forgot your username?'
    • Email is sent in frontend language and not in the users language
  • User Actions
    • Only one email with backend language is sent to all users
avatar muhme muhme - change - 27 May 2026
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2026-05-27 08:32:16
Closed_By muhme
avatar muhme muhme - close - 27 May 2026
avatar muhme muhme - merge - 27 May 2026
avatar muhme
muhme - comment - 27 May 2026

Thank you very much @laoneo for your contribution. Thank you @joomdonation for your support. Thanks to @adarshdubey03 and @krishnagandhicode for testing.

Add a Comment

Login with GitHub to post a comment