Skip to content

Commit 1cd31e4

Browse files
[6.1] LogTask not translated (#46375)
* [6.1] LogTask not translated Some of the logTasks are translated and some are hard coded. * Fix formatting of update notification plugin ini file --------- Co-authored-by: Richard Fath <[email protected]>
1 parent 7978494 commit 1cd31e4

File tree

6 files changed

+9
-4
lines changed

6 files changed

+9
-4
lines changed

administrator/language/en-GB/plg_task_deleteactionlogs.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@
66
PLG_TASK_DELETEACTIONLOGS="Task - Delete Action Logs"
77
PLG_TASK_DELETEACTIONLOGS_DELETE_DESC="Delete Action logs after specified days."
88
PLG_TASK_DELETEACTIONLOGS_DELETE_TITLE="Delete ActionLogs"
9+
PLG_TASK_DELETEACTIONLOGS_LOG_DELETE_AFTER="Delete Logs after %d days"
10+
PLG_TASK_DELETEACTIONLOGS_LOG_DELETE_END="Delete Logs end"
911
PLG_TASK_DELETEACTIONLOGS_LOG_DELETE_PERIOD="Days to delete action logs after"
1012
PLG_TASK_DELETEACTIONLOGS_XML_DESCRIPTION="This plugin for schedule Action Logs delete Tasks."

administrator/language/en-GB/plg_task_privacyconsent.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ PLG_TASK_PRIVACYCONSENT_INVALIDATE_TITLE="Expiration of privacy consents"
1010
PLG_TASK_PRIVACYCONSENT_INVALIDATE_DESC="Manage the expiration of privacy consents"
1111
PLG_TASK_PRIVACYCONSENT_EMAIL_REMIND_BODY="Your Privacy Consent given at {URL} will expire in few days, you can renew the privacy consent for this website.\n\nIn order to do this, you can complete one of the following tasks:\n\n1. Visit the following URL: {TOKENURL}\n\n2. Copy your token from this email, visit the referenced URL, and paste your token into the form.\nURL: {FORMURL}\nToken: {TOKEN}\n\nPlease note that this token is only valid for this account."
1212
PLG_TASK_PRIVACYCONSENT_EMAIL_REMIND_SUBJECT="Privacy Consent at {SITENAME}"
13+
PLG_TASK_PRIVACYCONSENT_LOG_REMIND_END="Remind End"
1314
PLG_TASK_PRIVACYCONSENT_MAIL_REQUEST_REMINDER_DESC="Reminder to renew the privacy consent for this website."
1415
PLG_TASK_PRIVACYCONSENT_MAIL_REQUEST_REMINDER_TITLE="Task - Privacy Consent: Renew Consent"
1516
PLG_TASK_PRIVACYCONSENT_NOTIFICATION_USER_PRIVACY_EXPIRED_MESSAGE="Privacy consent has expired for %1$s."

administrator/language/en-GB/plg_task_updatenotification.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
; Note : All ini files need to be saved as UTF-8
55

66
PLG_TASK_UPDATENOTIFICATION="Task - Joomla! Update Notification"
7+
PLG_TASK_UPDATENOTIFICATION_END="Update Notification end"
78
PLG_TASK_UPDATENOTIFICATION_EMAIL_DESC="A comma separated list of the email addresses which will receive the update notification emails. The addresses in the list MUST belong to existing users of your site who have the Super User privilege. If none of the listed emails belongs to Super Users, or if it's left blank, all Super Users of this site will receive the update notification email."
89
PLG_TASK_UPDATENOTIFICATION_EMAIL_LBL="Super User Emails"
910
PLG_TASK_UPDATENOTIFICATION_SEND_TITLE="Joomla! Update Notification"

plugins/task/deleteactionlogs/src/Extension/DeleteActionLogs.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ public static function getSubscribedEvents(): array
7878
private function deleteLogs(ExecuteTaskEvent $event): int
7979
{
8080
$daysToDeleteAfter = (int) $event->getArgument('params')->logDeletePeriod ?? 0;
81-
$this->logTask(\sprintf('Delete Logs after %d days', $daysToDeleteAfter));
81+
$this->logTask(\sprintf($this->getApplication()->getLanguage()->_('PLG_TASK_DELETEACTIONLOGS_LOG_DELETE_AFTER'), $daysToDeleteAfter));
82+
8283
$now = Factory::getDate()->toSql();
8384
$db = $this->getDatabase();
8485
$query = $db->createQuery();
@@ -100,7 +101,7 @@ private function deleteLogs(ExecuteTaskEvent $event): int
100101
}
101102
}
102103

103-
$this->logTask('Delete Logs end');
104+
$this->logTask($this->getApplication()->getLanguage()->_('PLG_TASK_DELETEACTIONLOGS_LOG_DELETE_END'), 'info');
104105

105106
return Status::OK;
106107
}

plugins/task/privacyconsent/src/Extension/PrivacyConsent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ private function remindExpiringConsents($expire, $remind): int
190190
return Status::KNOCKOUT;
191191
}
192192
}
193-
$this->logTask('Remind end');
193+
$this->logTask($this->getApplication()->getLanguage()->_('PLG_TASK_PRIVACYCONSENT_LOG_REMIND_END'), 'info');
194194

195195
return Status::OK;
196196
}

plugins/task/updatenotification/src/Extension/UpdateNotification.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ private function sendNotification(ExecuteTaskEvent $event): int
221221
}
222222
}
223223

224-
$this->logTask('UpdateNotification end');
224+
$this->logTask($this->getApplication()->getLanguage()->_('PLG_TASK_UPDATENOTIFICATION_END'), 'info');
225225

226226
return Status::OK;
227227
}

0 commit comments

Comments
 (0)