diff --git a/locales/fr/main.po b/locales/fr/main.po index 49191f8..ec4cf06 100644 --- a/locales/fr/main.po +++ b/locales/fr/main.po @@ -1,15 +1,21 @@ msgid "" msgstr "" "Content-Type: text/plain; charset=UTF-8\n" -"Project-Id-Version: DotclearWatch 0.1\n" +"Project-Id-Version: DotclearWatch 0.7.1\n" "POT-Creation-Date: \n" -"PO-Revision-Date: 2023-07-23T09:13:29+00:00\n" +"PO-Revision-Date: 2023-08-16T14:14:45+00:00\n" "Last-Translator: Jean-Christain Denis\n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" +msgid "Uses DotclearWatch plugin statistics" +msgstr "Utilise le plugin de statistiques DotclearWatch" + +msgid "Shared statistics" +msgstr "Statistiques partagées" + msgid "Cache directory sucessfully cleared." msgstr "Répertoire de cache des rapports nettoyé." diff --git a/src/Backend.php b/src/Backend.php index ba1e202..647d0d6 100644 --- a/src/Backend.php +++ b/src/Backend.php @@ -34,7 +34,17 @@ class Backend extends Process 'adminDashboardHeaders' => function (): string { return My::jsLoad('service', dcCore::app()->getVersion(My::id())); }, - 'adminPageFooterV2' => [Utils::class, 'addMark'], + 'adminPageFooterV2' => function(): void { + if (My::settings()->getGlobal('distant_api_url')) { + echo sprintf( + '
', + 'https://stat.dotclear.watch', + __('Uses DotclearWatch plugin statistics'), + __('Shared statistics'), + My::fileURL('icon.svg') + ); + } + }, ]); dcCore::app()->rest->addFunction( diff --git a/src/Utils.php b/src/Utils.php index 2833139..c70e8ce 100644 --- a/src/Utils.php +++ b/src/Utils.php @@ -40,22 +40,6 @@ class Utils /** @var string Multiblog unique identifiant */ private static string $uid = ''; - /** - * Add mark to backend menu footer. - */ - public static function addMark(): void - { - if (My::settings()->getGlobal('distant_api_url')) { - echo sprintf( - '', - 'https://stat.dotclear.watch', - __('DotclearWatch plugin statistics'), - __('Tracked by dotclear.watch'), - My::fileURL('icon.svg') - ); - } - } - /** * Get hidden modules. *