release 1.0

This commit is contained in:
Jean-Christian Denis 2022-12-23 10:34:53 +01:00
parent 500eb83523
commit 9add51c1d3
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951
5 changed files with 45 additions and 7 deletions

View file

@ -1,6 +1,10 @@
dev dev
- [ ] literal rank of writer depending of num of com - [ ] literal rank of writer depending of num of com
1.0 - 2022.12.23
- use dotclear methods for widgets
- fix permissions
0.10 - 2022.11.20 0.10 - 2022.11.20
- fix compatibility with Dotclear 2.24 (required) - fix compatibility with Dotclear 2.24 (required)

View file

@ -19,11 +19,11 @@ require __DIR__ . '/_widgets.php';
# Dashboard item and user preference # Dashboard item and user preference
dcCore::app()->addBehavior( dcCore::app()->addBehavior(
'adminDashboardItemsV2', 'adminDashboardItemsV2',
['topWriterAdmin', 'adminDashboardItems'] ['topWriterAdmin', 'adminDashboardItemsV2']
); );
dcCore::app()->addBehavior( dcCore::app()->addBehavior(
'adminDashboardOptionsFormV2', 'adminDashboardOptionsFormV2',
['topWriterAdmin', 'adminDashboardOptionsForm'] ['topWriterAdmin', 'adminDashboardOptionsFormV2']
); );
dcCore::app()->addBehavior( dcCore::app()->addBehavior(
'adminAfterDashboardOptionsUpdate', 'adminAfterDashboardOptionsUpdate',
@ -37,7 +37,7 @@ dcCore::app()->addBehavior(
*/ */
class topWriterAdmin class topWriterAdmin
{ {
public static function adminDashboardItems($__dashboard_items) public static function adminDashboardItemsV2($__dashboard_items)
{ {
$pref = self::setDefaultPref(); $pref = self::setDefaultPref();
@ -80,7 +80,7 @@ class topWriterAdmin
} }
} }
public static function adminDashboardOptionsForm() public static function adminDashboardOptionsFormV2()
{ {
$pref = self::setDefaultPref(); $pref = self::setDefaultPref();

View file

@ -18,7 +18,7 @@ $this->registerModule(
'Top writer', 'Top writer',
'Ranking of the most prolific writers and/or commentators', 'Ranking of the most prolific writers and/or commentators',
'Jean-Christian Denis, Pierre Van Glabeke', 'Jean-Christian Denis, Pierre Van Glabeke',
'0.10', '1.0',
[ [
'requires' => [['core', '2.24']], 'requires' => [['core', '2.24']],
'permissions' => dcCore::app()->auth->makePermissions([ 'permissions' => dcCore::app()->auth->makePermissions([

View file

@ -2,10 +2,10 @@
<modules xmlns:da="http://dotaddict.org/da/"> <modules xmlns:da="http://dotaddict.org/da/">
<module id="topWriter"> <module id="topWriter">
<name>Top writer</name> <name>Top writer</name>
<version>0.10</version> <version>1.0</version>
<author>Jean-Christian Denis, Pierre Van Glabeke</author> <author>Jean-Christian Denis, Pierre Van Glabeke</author>
<desc>Ranking of the most prolific writers and/or commentators</desc> <desc>Ranking of the most prolific writers and/or commentators</desc>
<file>https://github.com/JcDenis/topWriter/releases/download/v0.10/plugin-topWriter.zip</file> <file>https://github.com/JcDenis/topWriter/releases/download/v1.0/plugin-topWriter.zip</file>
<da:dcmin>2.24</da:dcmin> <da:dcmin>2.24</da:dcmin>
<da:details>http://plugins.dotaddict.org/dc2/details/topWriter</da:details> <da:details>http://plugins.dotaddict.org/dc2/details/topWriter</da:details>
<da:support>http://forum.dotclear.org/viewtopic.php?pid=333002#p333002</da:support> <da:support>http://forum.dotclear.org/viewtopic.php?pid=333002#p333002</da:support>

34
locales/fr/main.lang.php Normal file
View file

@ -0,0 +1,34 @@
<?php
/**
* @package Dotclear
*
* @copyright Olivier Meunier & Association Dotclear
* @copyright GPL-2.0-only
*/
#
# 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'][0] = 'une publication';
l10n::$locales['one entry'][1] = '%s publications';
l10n::$locales['no comments'] = 'aucun commentaire';
l10n::$locales['one comment'][0] = 'un commentaire';
l10n::$locales['one comment'][1] = '%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';