No Code Attached Yet
avatar fab966
fab966
24 Sep 2021

Steps to reproduce the issue

A new fresh Joomla 4 installation with PHP 7.4.
Set the administrator's default language other than English (for example Italian).
Create a new Administrator User and set "Receive System Emails" on YES.

Expected result

The user should be receive this Email, with Sitename, Username and Password:

Hello Marc,

You have been added as a User to Sitename by an Administrator.

This email has your username and password to log in to https://www.sitename

Username: Marc
Password: 123456789

Actual result

For example, with Italian default Administrator Language, Login Data are shown with %s:

Salve %s,

sei stato aggiunto come Utente sul sito %s da un Amministratore.

Questa email contiene i tuoi nome utente e password per accedere a %s

Nome utente: %s
Password: %s

Non rispondere a questo messaggio in quanto generato automaticamente e solo a scopo informativo.

System information (as much as possible)

PHP Built On Linux dalin.dnshigh.com
Database Type mysql
Database Version 5.7.35-log
Database Collation utf8_general_ci
Database Connection Collation utf8mb4_general_ci
Database Connection Encryption None
Database Server Supports Connection Encryption Yes
PHP Version 7.4.23
Web Server Apache
WebServer to PHP Interface cgi-fcgi
Joomla! Version Joomla! 4.0.3 Stable

Additional comments

It looks like a Language Association Issue...

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
3.00

avatar fab966 fab966 - open - 24 Sep 2021
avatar fab966 fab966 - change - 24 Sep 2021
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 24 Sep 2021
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 24 Sep 2021
avatar fab966 fab966 - change - 24 Sep 2021
The description was changed
avatar fab966 fab966 - edited - 24 Sep 2021
avatar fab966 fab966 - change - 24 Sep 2021
The description was changed
avatar fab966 fab966 - edited - 24 Sep 2021
avatar PhilETaylor
PhilETaylor - comment - 24 Sep 2021

This is a language pack translation issue, not a Joomla issue.

Joomla 4 is NOT using sprintf php style %s replacements in PLG_USER_JOOMLA_NEW_USER_EMAIL_BODY but hard coded placeholders like {SITENAME}

PLG_USER_JOOMLA_NEW_USER_EMAIL_BODY="Hello {NAME},\n\n\nYou have been added as a User to {SITENAME} by an Administrator.\n\nThis email has your username and password to log in to {URL}\n\nUsername: {USERNAME}\nPassword: {PASSWORD}\n\n\nPlease do not respond to this message as it is automatically generated and is for information purposes only."
avatar fab966 fab966 - change - 24 Sep 2021
The description was changed
avatar fab966 fab966 - edited - 24 Sep 2021
avatar fab966 fab966 - change - 24 Sep 2021
Title
Add new User: Email sent without Sitename, Username and Password if default admin language is not english (%s instead)
[4.0.3]Add new User: Email sent without Sitename, Username and Password if default admin language is not english (%s instead)
avatar fab966 fab966 - edited - 24 Sep 2021
avatar fab966 fab966 - edited - 24 Sep 2021
avatar fab966 fab966 - change - 24 Sep 2021
Title
[4.0.3]Add new User: Email sent without Sitename, Username and Password if default admin language is not english (%s instead)
[4.0.3] Add new User: Email sent without Sitename, Username and Password if default admin language is not english (%s instead)
avatar Bakual
Bakual - comment - 24 Sep 2021

This should be moved to https://github.com/joomla/core-translations or even better directly fixes in https://joomla.crowdin.com/cms

avatar PhilETaylor
PhilETaylor - comment - 24 Sep 2021

related #35517

avatar fab966
fab966 - comment - 24 Sep 2021

Thank a lot to all for the informations,
How can I move this issue to the right place?
Best regards


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

avatar fab966
fab966 - comment - 24 Sep 2021

Changing from %s to placeholders in language file solves the problem.

avatar infograf768
infograf768 - comment - 27 Sep 2021

TT informed of the issue.

This can be closed.

avatar Quy Quy - change - 27 Sep 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-09-27 12:54:05
Closed_By Quy
avatar Quy Quy - close - 27 Sep 2021

Add a Comment

Login with GitHub to post a comment