diff --git a/CHANGELOG.md b/CHANGELOG.md index a7754c4..b6dfda6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,14 @@ dev - [ ] literal rank of writer depending of num of com -1.1 +1.2 - 2023.04.23 +- require dotclear 2.26 +- use latest dotclear namespace +- use sql statement +- fix plural translations +- fix nullsafe warnings + +1.1 - 2023.03.21 - require Dotclear 2.25 - use namespace diff --git a/README.md b/README.md index f3bd22d..40cdb34 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Release](https://img.shields.io/github/v/release/JcDenis/topWriter)](https://github.com/JcDenis/topWriter/releases) [![Date](https://img.shields.io/github/release-date/JcDenis/topWriter)](https://github.com/JcDenis/topWriter/releases) [![Issues](https://img.shields.io/github/issues/JcDenis/topWriter)](https://github.com/JcDenis/topWriter/issues) -[![Dotclear](https://img.shields.io/badge/dotclear-v2.25-blue.svg)](https://fr.dotclear.org/download) +[![Dotclear](https://img.shields.io/badge/dotclear-v2.26-blue.svg)](https://fr.dotclear.org/download) [![Dotaddict](https://img.shields.io/badge/dotaddict-official-green.svg)](https://plugins.dotaddict.org/dc2/details/topWriter) [![License](https://img.shields.io/github/license/JcDenis/topWriter)](https://github.com/JcDenis/topWriter/blob/master/LICENSE) @@ -19,7 +19,7 @@ Show most active contributor on a widget. _topWriter_ requires: * permissions to manage widgets - * Dotclear 2.25 + * Dotclear 2.26 ## USAGE diff --git a/_define.php b/_define.php index 2cd2983..cb182dc 100644 --- a/_define.php +++ b/_define.php @@ -18,9 +18,9 @@ $this->registerModule( 'Top writer', 'Ranking of the most prolific writers and/or commentators', 'Jean-Christian Denis, Pierre Van Glabeke', - '1.1', + '1.2', [ - 'requires' => [['core', '2.25']], + 'requires' => [['core', '2.26']], 'permissions' => dcCore::app()->auth->makePermissions([ dcCore::app()->auth::PERMISSION_CONTENT_ADMIN, ]), diff --git a/dcstore.xml b/dcstore.xml index a903f7d..6370d4e 100644 --- a/dcstore.xml +++ b/dcstore.xml @@ -2,11 +2,11 @@ Top writer - 1.1 + 1.2 Jean-Christian Denis, Pierre Van Glabeke Ranking of the most prolific writers and/or commentators - https://github.com/JcDenis/topWriter/releases/download/v1.1/plugin-topWriter.zip - 2.25 + https://github.com/JcDenis/topWriter/releases/download/v1.2/plugin-topWriter.zip + 2.26 http://plugins.dotaddict.org/dc2/details/topWriter http://forum.dotclear.org/viewtopic.php?pid=333002#p333002 diff --git a/locales/fr/main.lang.php b/locales/fr/main.lang.php index 0a5c27f..d79bd1f 100644 --- a/locales/fr/main.lang.php +++ b/locales/fr/main.lang.php @@ -9,30 +9,32 @@ # DOT NOT MODIFY THIS FILE ! # -l10n::$locales['Top writer: entries'] = 'Top rédacteur : billets'; -l10n::$locales['Top writer: comments'] = 'Top rédacteur : commentaires'; -l10n::$locales['Period:'] = 'Période :'; -l10n::$locales['Limit:'] = 'Limite :'; -l10n::$locales['List users who write more comments'] = 'Liste les utilisateurs qui ont écrit le plus de commentaires'; -l10n::$locales['Top comments'] = 'Top commentaires'; -l10n::$locales['Exclude post writer from list'] = 'Exclure de la liste les auteurs de billets'; -l10n::$locales['List users who write more posts'] = 'Liste les utilisateurs qui ont écrit le plus de billets'; -l10n::$locales['Top entries'] = 'Top billets'; -l10n::$locales['Author posts'] = 'Billets de l\'auteur'; -l10n::$locales['Author link'] = 'Lien vers l\'auteur'; -l10n::$locales['no entries'] = 'aucun billet'; -l10n::$locales['one entry'] = [ +use Dotclear\Helper\L10n; + +L10n::$locales['Top writer: entries'] = 'Top rédacteur : billets'; +L10n::$locales['Top writer: comments'] = 'Top rédacteur : commentaires'; +L10n::$locales['Period:'] = 'Période :'; +L10n::$locales['Limit:'] = 'Limite :'; +L10n::$locales['List users who write more comments'] = 'Liste les utilisateurs qui ont écrit le plus de commentaires'; +L10n::$locales['Top comments'] = 'Top commentaires'; +L10n::$locales['Exclude post writer from list'] = 'Exclure de la liste les auteurs de billets'; +L10n::$locales['List users who write more posts'] = 'Liste les utilisateurs qui ont écrit le plus de billets'; +L10n::$locales['Top entries'] = 'Top billets'; +L10n::$locales['Author posts'] = 'Billets de l\'auteur'; +L10n::$locales['Author link'] = 'Lien vers l\'auteur'; +L10n::$locales['no entries'] = 'aucun billet'; +L10n::$locales['one entry'] = [ 'une publication', '%s publications', ]; -l10n::$locales['no comments'] = 'aucun commentaire'; -l10n::$locales['one comment'] = [ +L10n::$locales['no comments'] = 'aucun commentaire'; +L10n::$locales['one comment'] = [ 'un commentaire', '%s commentaires', ]; -l10n::$locales['last day'] = 'dernier jour'; -l10n::$locales['last week'] = 'dernière semaine'; -l10n::$locales['last month'] = 'dernier mois'; -l10n::$locales['last year'] = 'dernière année'; -l10n::$locales['from begining'] = 'depuis le début'; -l10n::$locales['Ranking of the most prolific writers and/or commentators'] = 'Classement des plus prolifiques rédacteurs et/ou commentateurs'; +L10n::$locales['last day'] = 'dernier jour'; +L10n::$locales['last week'] = 'dernière semaine'; +L10n::$locales['last month'] = 'dernier mois'; +L10n::$locales['last year'] = 'dernière année'; +L10n::$locales['from begining'] = 'depuis le début'; +L10n::$locales['Ranking of the most prolific writers and/or commentators'] = 'Classement des plus prolifiques rédacteurs et/ou commentateurs';