From 789d2e481ee0888ea4d8b93f4ce54a8c45d70882 Mon Sep 17 00:00:00 2001 From: Pascal Leconte Date: Wed, 5 Jun 2024 11:39:49 +0200 Subject: [PATCH] 4.2.0 Languages : untranslated fields Lost articles : state to 9 in automsg and automsg_waiting Automsg content plugin becomes a service provider --- automsginstaller.xml | 4 +- .../admin/language/en-GB/com_automsg.ini | 16 +++++++- .../admin/language/fr-FR/com_automsg.ini | 16 +++++++- .../admin/src/View/Message/HtmlView.php | 2 +- .../admin/src/View/Messages/HtmlView.php | 9 +---- .../com_automsg/admin/tmpl/message/edit.php | 30 +++++++-------- .../admin/tmpl/messages/default.php | 26 ++++++------- packages/com_automsg/automsg.xml | 4 +- packages/library_automsg/Helper/Automsg.php | 37 +++++++++++++++---- packages/library_automsg/automsg.xml | 4 +- packages/plg_content_automsg_j4/automsg.xml | 4 +- .../src/Extension/AutoMsg.php | 36 ++++++++++++++++-- packages/plg_task_automsg_j4/automsg.xml | 4 +- .../src/Extension/AutoMsg.php | 6 +++ packages/plg_user_automsg_j4/automsg.xml | 4 +- pkg_automsg_changelog.xml | 15 ++++++++ 16 files changed, 156 insertions(+), 61 deletions(-) diff --git a/automsginstaller.xml b/automsginstaller.xml index 8be516f..bac2f6a 100644 --- a/automsginstaller.xml +++ b/automsginstaller.xml @@ -2,12 +2,12 @@ plgautomsginstaller ConseilGouz - 2024-06-04 + 2024-06-05 (C)2024 ConseilGouz. All rights reserved. GNU General Public License version 3 or later; see LICENSE.txt pascal.leconte@conseilgouz.com www.conseilgouz.com - 4.1.3 + 4.2.0 AutoMsg script.install.php diff --git a/packages/com_automsg/admin/language/en-GB/com_automsg.ini b/packages/com_automsg/admin/language/en-GB/com_automsg.ini index 70200b8..5f57522 100644 --- a/packages/com_automsg/admin/language/en-GB/com_automsg.ini +++ b/packages/com_automsg/admin/language/en-GB/com_automsg.ini @@ -60,4 +60,18 @@ COM_AUTOMSG_REPORT_SUBJECT="AutoMsg report." COM_AUTOMSG_REPORT_MSG="{ARTICLE} : {TOTAL} message(s) have been sent, {OK} message(s) without any error, {ERROR} message(s) with an error, {WAITING} waiting message(s)." COM_AUTOMSG_RESTARTED="Retry sending messages done" COM_AUTOMSG_RETRIED="Retry sending errors done" -COM_AUTOMSG_NOT_FOUND="Error : article %s does not exist anymore." \ No newline at end of file +COM_AUTOMSG_NOT_FOUND="Error : article %s does not exist anymore." +COM_AUTOMSG_MESSAGES_BUTTON_SEND="Send" +COM_AUTOMSG_MESSAGES_BUTTON_SEE="See it" +COM_AUTOMSG_MESSAGES_BUTTON_RETRY="Retry" +COM_AUTOMSG_MESSAGES_CLICK="Click to send" +COM_AUTOMSG_MESSAGES_SENT="Sent" +COM_AUTOMSG_MESSAGES_ERRORS="Errors" +COM_AUTOMSG_MESSAGES_WAITING="Waiting" +COM_AUTOMSG_MESSAGES_ARTICLES="Article(s)" +COM_AUTOMSG_MESSAGES_WAITINGS="Waiting(s)" +COM_AUTOMSG_MESSAGES_TOTAL="Total" +COM_AUTOMSG_MESSAGES_OK="Ok" +COM_AUTOMSG_MESSAGES_DETAIL_ERRORS="Errors list
(You may retry sending errors up to 3 times : select error with its checkbox and click on Retry button)" +COM_AUTOMSG_MESSAGES_DETAIL_WAITING="Waitings list" +COM_AUTOMSG_MESSAGES_CONTAINS_ERRORS="Contains error(s)" \ No newline at end of file diff --git a/packages/com_automsg/admin/language/fr-FR/com_automsg.ini b/packages/com_automsg/admin/language/fr-FR/com_automsg.ini index 2e5f018..94e793e 100644 --- a/packages/com_automsg/admin/language/fr-FR/com_automsg.ini +++ b/packages/com_automsg/admin/language/fr-FR/com_automsg.ini @@ -61,4 +61,18 @@ COM_AUTOMSG_REPORT_SUBJECT="Compte-rendu envoi mail automatique." COM_AUTOMSG_REPORT_MSG="{ARTICLE} : {TOTAL} message(s) envoyé(s), {OK} message(s) sans erreur, {ERROR} message(s) avec erreur, {WAITING} message(s) en attente." COM_AUTOMSG_RESTARTED="Relance des messages effectuée" COM_AUTOMSG_RETRIED="Essai de relance des erreurs effectué" -COM_AUTOMSG_NOT_FOUND="Erreur : l'article %s a disparu." \ No newline at end of file +COM_AUTOMSG_NOT_FOUND="Erreur : l'article %s a disparu." +COM_AUTOMSG_MESSAGES_BUTTON_SEND="Envoi" +COM_AUTOMSG_MESSAGES_BUTTON_SEE="Voir" +COM_AUTOMSG_MESSAGES_BUTTON_RETRY="Nouvel essai" +COM_AUTOMSG_MESSAGES_CLICK="Cliquer pour envoyer" +COM_AUTOMSG_MESSAGES_SENT="Envoyé" +COM_AUTOMSG_MESSAGES_ERRORS="Erreurs" +COM_AUTOMSG_MESSAGES_WAITING="En attente" +COM_AUTOMSG_MESSAGES_ARTICLES="Article(s)" +COM_AUTOMSG_MESSAGES_WAITINGS="En attente" +COM_AUTOMSG_MESSAGES_TOTAL="Total" +COM_AUTOMSG_MESSAGES_OK="Ok" +COM_AUTOMSG_MESSAGES_DETAIL_ERRORS="Liste des erreurs
(Vous pouvez essayer de les renvoyer jusqu'à 3 fois : sélectionnez l'erreur en utilisant sa checkbox et cliquez sur le bouton Nouvel essai)" +COM_AUTOMSG_MESSAGES_DETAIL_WAITING="Liste des 'en attente" +COM_AUTOMSG_MESSAGES_CONTAINS_ERRORS="Contient des erreurs" \ No newline at end of file diff --git a/packages/com_automsg/admin/src/View/Message/HtmlView.php b/packages/com_automsg/admin/src/View/Message/HtmlView.php index 6892e6e..3abd010 100644 --- a/packages/com_automsg/admin/src/View/Message/HtmlView.php +++ b/packages/com_automsg/admin/src/View/Message/HtmlView.php @@ -60,7 +60,7 @@ protected function addToolbar() } ToolBarHelper::title( Text::_('CG_PX_MESSAGE_EDIT'), '#xs#.png'); - ToolbarHelper::custom('message.retry','envelope-opened','','Nouvel essai',false); + ToolbarHelper::custom('message.retry','envelope-opened','', Text::_('COM_AUTOMSG_MESSAGES_BUTTON_RETRY'),false); if (empty($this->message->id)) { ToolBarHelper::cancel('message.cancel'); diff --git a/packages/com_automsg/admin/src/View/Messages/HtmlView.php b/packages/com_automsg/admin/src/View/Messages/HtmlView.php index a154a98..328be34 100644 --- a/packages/com_automsg/admin/src/View/Messages/HtmlView.php +++ b/packages/com_automsg/admin/src/View/Messages/HtmlView.php @@ -53,18 +53,13 @@ protected function addToolbar() ToolbarHelper::title(Text::_('COM_AUTOMSG_MESSAGES'), 'automsg.png'); if (($canDo->get('core.edit')) || ($canDo->get('core.edit.own'))) { - ToolbarHelper::editList('message.edit', 'Voir'); + ToolbarHelper::editList('message.edit', Text::_('COM_AUTOMSG_MESSAGES_BUTTON_SEE')); } if ($canDo->get('core.edit.state')) { ToolbarHelper::divider(); - ToolbarHelper::publish('messages.send', 'Envoyer', true); + ToolbarHelper::publish('messages.send', Text::_('COM_AUTOMSG_MESSAGES_BUTTON_SEND'), true); } - /*if (isset($this->state) && $this->state->get('filter.state') == -2 && $canDo->get('core.delete')) { - ToolBarHelper::deleteList('', 'messages.delete', 'JTOOLBAR_EMPTY_TRASH'); - } elseif ($canDo->get('core.edit.state')) { - ToolBarHelper::trash('messages.trash'); - }*/ if ($canDo->get('core.admin')) { ToolbarHelper::divider(); ToolbarHelper::inlinehelp(); diff --git a/packages/com_automsg/admin/tmpl/message/edit.php b/packages/com_automsg/admin/tmpl/message/edit.php index 3dae674..9a0264b 100644 --- a/packages/com_automsg/admin/tmpl/message/edit.php +++ b/packages/com_automsg/admin/tmpl/message/edit.php @@ -47,7 +47,7 @@ 9 => [ '', // restart '', - 'Erreurs', // état : + Text::_('COM_AUTOMSG_MESSAGES_ERRORS'), // état : '', true, 'error', // icone @@ -85,25 +85,25 @@ - Article(s) + - Envoyé + - Total + - OK + - Erreur(s) + - Attente + - Status + @@ -164,7 +164,7 @@ if ($cr) { if ($cr->error > 0) { // build error modal $errors = $modelMessage->getMessageErrors($message->sent); - echo ''; + echo ''; echo $cr->error; echo ''; } @@ -176,7 +176,7 @@ if ($cr) { if ($cr->waiting > 0) { // build error modal $waitings = $modelMessage->getMessageWaiting($message->sent); - echo ''; } @@ -186,10 +186,10 @@ state == 1) { - echo ''; + echo ''; } if ($message->state == 9) { - echo ''; + echo ''; } ?> @@ -207,7 +207,7 @@ } ?>