No Code Attached Yet
avatar ceford
ceford
10 Sep 2024

Steps to reproduce the issue

Have a user confirm acceptance of the Privacy Policy on login (Enable the System - Privacy Consent plugin)
Go to the administrator Privacy / Consents page.

Expected result

The Subject should be a translated string: Privacy Policy

Actual result

The Subject is a string key: PLG_SYSTEM_PRIVACYCONSENT_SUBJECT

System information (as much as possible)

Additional comments

I have traced this problem to plugins/system/privacyconsent/src/Extension/PrivacyConsent.php where the following block of code is missing from line 39 and following:


    /**
     * Load the language file on instantiation.
     *
     * @var    boolean
     * @since  3.9.0
     */
    protected $autoloadLanguage = true;

It was present in Joomla 4.

avatar ceford ceford - open - 10 Sep 2024
avatar ceford ceford - change - 10 Sep 2024
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 10 Sep 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 10 Sep 2024
avatar Fedik
Fedik - comment - 10 Sep 2024

I think it should be translated by com_privacy,
The consent plugin inserts untranslated string:

$userNote = (object) [
'user_id' => $userId,
'subject' => 'PLG_SYSTEM_PRIVACYCONSENT_SUBJECT',
'body' => Text::sprintf('PLG_SYSTEM_PRIVACYCONSENT_BODY', $ip, $userAgent),
'created' => Factory::getDate()->toSql(),
];
try {
$this->getDatabase()->insertObject('#__privacy_consents', $userNote);

avatar alikon alikon - change - 5 Oct 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-10-05 08:39:45
Closed_By alikon
avatar alikon alikon - close - 5 Oct 2024
avatar alikon
alikon - comment - 5 Oct 2024

please test #44192

Add a Comment

Login with GitHub to post a comment