From 8720c67a9cc1016f4d2eb6e38c5ed033e6553afc Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sun, 16 Apr 2023 11:56:53 +0200 Subject: [PATCH] update translations --- locales/fr/main.lang.php | 5 +++++ locales/fr/main.po | 46 ++++++++++++++++++++++++++++------------ src/Cleaner/Logs.php | 5 +++-- 3 files changed, 41 insertions(+), 15 deletions(-) diff --git a/locales/fr/main.lang.php b/locales/fr/main.lang.php index d7a0cb8..de30ed8 100644 --- a/locales/fr/main.lang.php +++ b/locales/fr/main.lang.php @@ -22,6 +22,11 @@ L10n::$locales['empty selected cache directories'] = 'vider L10n::$locales['empty "%s" cache directory'] = 'vider le répertoire de cache "%s"'; L10n::$locales['"%s" cache directory emptied'] = 'répertoire de cache "%s" vidé'; L10n::$locales['Failed to empty "%s" cache directory'] = 'Impossible de vider le répertoire de cache "ùs"'; +L10n::$locales['Logs in Dotclear logs table'] = 'Enregistrements dans le table de logs de Dotclear'; +L10n::$locales['delete selected logs tables'] = 'supprimer les tables de logs sélectionnées'; +L10n::$locales['delete "%s" logs table'] = 'supprimer la table de logs "%S"'; +L10n::$locales['"%s" logs table deleted'] = 'table de logs "%s" supprimée'; +L10n::$locales['Failed to delete "%s" logs table'] = 'Impossible de supprimer la table de logs "%s"'; L10n::$locales['Folders from plugins directories'] = 'Dossiers des répertoires des plugins'; L10n::$locales['delete selected plugins files and directories'] = 'effacer le fichiers et répertoires des plugins sélectionnés'; L10n::$locales['delete "%s" plugin files and directories'] = 'effacer les fichiers et répertoires du plugin "%s"'; diff --git a/locales/fr/main.po b/locales/fr/main.po index 111cff0..0dffe1e 100644 --- a/locales/fr/main.po +++ b/locales/fr/main.po @@ -1,15 +1,15 @@ # Language: Français -# Module: Uninstaller - 0.1 -# Date: 2023-04-15 23:11:02 +# Module: Uninstaller - 0.2 +# Date: 2023-04-16 09:40:12 # Author: , contact@jcdenis.fr # Translated with translater 2023.03.19 msgid "" msgstr "" "Content-Type: text/plain; charset=UTF-8\n" -"Project-Id-Version: Uninstaller 0.1\n" +"Project-Id-Version: Uninstaller 0.2\n" "POT-Creation-Date: \n" -"PO-Revision-Date: 2023-04-15T23:11:02+00:00\n" +"PO-Revision-Date: 2023-04-16T09:40:12+00:00\n" "Last-Translator: Jean-Christian Denis\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -60,6 +60,26 @@ msgstr "répertoire de cache \"%s\" vidé" msgid "Failed to empty \"%s\" cache directory" msgstr "Impossible de vider le répertoire de cache \"ùs\"" +#: src/Cleaner/Logs.php:35 +msgid "Logs in Dotclear logs table" +msgstr "Enregistrements dans le table de logs de Dotclear" + +#: src/Cleaner/Logs.php:44 +msgid "delete selected logs tables" +msgstr "supprimer les tables de logs sélectionnées" + +#: src/Cleaner/Logs.php:45 +msgid "delete \"%s\" logs table" +msgstr "supprimer la table de logs \"%S\"" + +#: src/Cleaner/Logs.php:46 +msgid "\"%s\" logs table deleted" +msgstr "table de logs \"%s\" supprimée" + +#: src/Cleaner/Logs.php:47 +msgid "Failed to delete \"%s\" logs table" +msgstr "Impossible de supprimer la table de logs \"%s\"" + #: src/Cleaner/Plugins.php:32 msgid "Folders from plugins directories" msgstr "Dossiers des répertoires des plugins" @@ -144,39 +164,39 @@ msgstr "paramètres relatifs effacer" msgid "Failed to delete related settings" msgstr "Impossible d'effacer les paramètres relatifs" -#: src/Cleaner/Tables.php:31 +#: src/Cleaner/Tables.php:36 msgid "All database tables of Dotclear" msgstr "Toutes les tables Dotclear de la base de données" -#: src/Cleaner/Tables.php:40 +#: src/Cleaner/Tables.php:45 msgid "delete selected tables" msgstr "effacer les tables sélectionnées" -#: src/Cleaner/Tables.php:41 +#: src/Cleaner/Tables.php:46 msgid "delete \"%s\" table" msgstr "Supprimer la table \"%s\"" -#: src/Cleaner/Tables.php:42 +#: src/Cleaner/Tables.php:47 msgid "\"%s\" table deleted" msgstr "table \"%s\" supprimée" -#: src/Cleaner/Tables.php:43 +#: src/Cleaner/Tables.php:48 msgid "Failed to delete \"%s\" table" msgstr "Impossible de supprimer la table \"%s\"" -#: src/Cleaner/Tables.php:47 +#: src/Cleaner/Tables.php:52 msgid "empty selected tables" msgstr "vider les tables selectionnées" -#: src/Cleaner/Tables.php:48 +#: src/Cleaner/Tables.php:53 msgid "empty \"%s\" table" msgstr "vider la table \"%s\"" -#: src/Cleaner/Tables.php:49 +#: src/Cleaner/Tables.php:54 msgid "\"%s\" table emptied" msgstr "table \"%s\" vidée" -#: src/Cleaner/Tables.php:50 +#: src/Cleaner/Tables.php:55 msgid "Failed to empty \"%s\" table" msgstr "Impossible de vider la table \"%s\"" diff --git a/src/Cleaner/Logs.php b/src/Cleaner/Logs.php index e2d3ef4..fc226a0 100644 --- a/src/Cleaner/Logs.php +++ b/src/Cleaner/Logs.php @@ -41,7 +41,7 @@ class Logs extends AbstractCleaner return [ new ActionDescriptor([ 'id' => 'delete_all', - 'select' => __('delete selected logs table'), + 'select' => __('delete selected logs tables'), 'query' => __('delete "%s" logs table'), 'success' => __('"%s" logs table deleted'), 'error' => __('Failed to delete "%s" logs table'), @@ -52,7 +52,7 @@ class Logs extends AbstractCleaner public function distributed(): array { return [ - 'maintenance' + 'maintenance', ]; } @@ -90,6 +90,7 @@ class Logs extends AbstractCleaner public function execute(string $action, string $ns): bool { if ($action == 'delete_all') { + $sql = new DeleteStatement(); $sql->from(dcCore::app()->prefix . dcLog::LOG_TABLE_NAME) ->where('log_table = ' . $sql->quote((string) $ns)) ->and($sql->orGroup(['blog_id IS NULL', 'blog_id IS NOT NULL']))