The "Authentication - Cookie" plugin writes log messages that are hardcoded
as English strings in PHP instead of using language constants from the
plugin's .ini file.
Affected file: plugins/authentication/cookie/src/Extension/Cookie.php
Because these strings are not stored in
administrator/language/en-GB/plg_authentication_cookie.ini, they are not
maintainable by the language files and are not exposed to translators on
Crowdin. Other log messages in the same file (e.g. the
PLG_AUTHENTICATION_COOKIE_ERROR_LOG_LOGIN_FAILED message) already do this
correctly using Text::sprintf().
6.2
All user-facing / log strings use language constants (Text::_ / Text::sprintf)
defined in the plugin .ini file, so they are translatable via Crowdin.
The two log messages are hardcoded in English in Cookie.php and cannot be
translated or maintained through the language files.
Joomla 6.2-alpha2 (current 6.2-dev branch)
A fix is straightforward: add the two strings as language keys in
plg_authentication_cookie.ini and replace the hardcoded strings with
Text::_() / Text::sprintf().
| Labels |
Added:
bug
|
||
| Labels |
Added:
No Code Attached Yet
|
||