From ff3efb070536dbebc712e2fe9a3cf275d3458ab3 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sun, 23 Apr 2023 14:47:55 +0200 Subject: [PATCH] release 1.0 --- CHANGELOG.md | 5 +++ README.md | 4 +- _define.php | 6 +-- dcstore.xml | 6 +-- locales/fr/main.lang.php | 90 ++++++++++++++++++++-------------------- 5 files changed, 59 insertions(+), 52 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index de0349e..35e4a3d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +1.0 - 2023.04.23 +- require dotclear 2.26 +- use latest dotclear namespace +- remove all the magic + 0.9 - 2023.03.21 - require Dotclear 2.25 - use namespace diff --git a/README.md b/README.md index 6275041..bcb1fb1 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Release](https://img.shields.io/github/v/release/JcDenis/postInfoWidget)](https://github.com/JcDenis/postInfoWidget/releases) [![Date](https://img.shields.io/github/release-date/JcDenis/postInfoWidget)](https://github.com/JcDenis/postInfoWidget/releases) [![Issues](https://img.shields.io/github/issues/JcDenis/postInfoWidget)](https://github.com/JcDenis/postInfoWidget/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/postInfoWidget) [![License](https://img.shields.io/github/license/JcDenis/postInfoWidget)](https://github.com/JcDenis/postInfoWidget/blob/master/LICENSE) @@ -19,7 +19,7 @@ Show entry details in a widget. _postInfoWidget_ requires: * permissions to manage widgets - * Dotclear 2.25 + * Dotclear 2.26 ## USAGE diff --git a/_define.php b/_define.php index bc3dcf9..39849db 100644 --- a/_define.php +++ b/_define.php @@ -10,7 +10,7 @@ * @copyright Jean-Christian Denis * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html */ -if (!defined('DC_RC_PATH')) { +if (!defined('DC_RC_PATH') || is_null(dcCore::app()->auth)) { return null; } @@ -18,9 +18,9 @@ $this->registerModule( 'Entry information list', 'Show Entry informations on a widget', 'Jean-Christian Denis, Pierre Van Glabeke', - '0.9', + '1.0', [ - 'requires' => [['core', '2.25']], + 'requires' => [['core', '2.26']], 'permissions' => dcCore::app()->auth->makePermissions([ dcAuth::PERMISSION_USAGE, dcAuth::PERMISSION_CONTENT_ADMIN, diff --git a/dcstore.xml b/dcstore.xml index e3ce8d5..eb7c137 100644 --- a/dcstore.xml +++ b/dcstore.xml @@ -2,11 +2,11 @@ Entry information list - 0.9 + 1.0 Jean-Christian Denis, Pierre Van Glabeke Show Entry informations on a widget - https://github.com/JcDenis/postInfoWidget/releases/download/v0.9/plugin-postInfoWidget.zip - 2.25 + https://github.com/JcDenis/postInfoWidget/releases/download/v1.0/plugin-postInfoWidget.zip + 2.26 http://plugins.dotaddict.org/dc2/details/postInfoWidget http://forum.dotclear.org/viewtopic.php?pid=332974#p332974 diff --git a/locales/fr/main.lang.php b/locales/fr/main.lang.php index 8c9c34b..561dde7 100644 --- a/locales/fr/main.lang.php +++ b/locales/fr/main.lang.php @@ -9,47 +9,49 @@ # DOT NOT MODIFY THIS FILE ! # -l10n::$locales['PostInfoWidget: entry information list'] = 'PostInfoWidget : liste d\'information du billet'; -l10n::$locales['Show Entry informations on a widget'] = 'Afficher les informations d\'un billet dans un widget'; -l10n::$locales['About this entry'] = 'Á propos de ce billet'; -l10n::$locales['Publish date text:'] = 'Texte pour la date de publication :'; -l10n::$locales['Publish on %Y-%m-%d %H:%M'] = 'Publié le %d/%m/%Y à %H:%M'; -l10n::$locales['Create date text:'] = 'Texte pour la date de création :'; -l10n::$locales['Create on %Y-%m-%d %H:%M'] = 'Créé le %d/%m/%Y à %H:%M'; -l10n::$locales['Update date text:'] = 'Texte pour la date de dernière mise à jour :'; -l10n::$locales['Update on %Y-%m-%d %H:%M'] = 'Mis à jour le %d/%m/%Y à %H:%M'; -l10n::$locales['Language (%T = name, %C = code, %F = flag):'] = 'Texte pour la langue (%T = nom, %C = code, %F = drapeau) :'; -l10n::$locales['Language: %T %F'] = 'Langue : %T %F'; -l10n::$locales['Author text (%T = author):'] = 'Texte pour l\'auteur (%T = auteur) :'; -l10n::$locales['Author: %T'] = 'Auteur : %T'; -l10n::$locales['Category text (%T = category):'] = 'Texte pour la catégorie (%T = catégorie) :'; -l10n::$locales['Category: %T'] = 'Catégorie : %T'; -l10n::$locales['Tags text (%T = tags list):'] = 'Texte pour les mots-clés (%T = liste des mots-clés) :'; -l10n::$locales['Tags: %T'] = 'Mots-clés : %T'; -l10n::$locales['Attachments text (%T = text, %D = numeric):'] = 'Texte pour le nombre d\'annexes (%T = texte, %D = nombre) :'; -l10n::$locales['Attachments: %T'] = 'Annexes : %T'; -l10n::$locales['Comments text (%T = text, %D = numeric):'] = 'Texte pour le nombre de commentaires (%T = texte, %D = nombre) :'; -l10n::$locales['Comments: %T'] = 'Commentaires : %T'; -l10n::$locales['Trackbacks text (%T = text, %D = numeric):'] = 'Texte pour le nombre de rétroliens (%T = texte, %D = nombre) :'; -l10n::$locales['Trackbacks: %T'] = 'Rétroliens : %T'; -l10n::$locales['Permalink text (%T = text link, %F = full link):'] = 'Texte pour le lien pemanent (%T = texte, %F = complet) :'; -l10n::$locales['%T'] = '%T'; -l10n::$locales['Show comment feed url'] = 'Afficher l\'URL du flux des commentaires'; -l10n::$locales['Link to previous entry (%T = navigation text, %F = entry title):'] = 'Lien vers le billet précédent (%T = texte de navigation, %F = titre du billet) :'; -l10n::$locales['Link to next entry (%T = navigation text, %F = entry title):'] = 'Lien vers le billet suivant (%T = texte de navigation, %F = titre du billet) :'; -l10n::$locales['Link to previous entry of this category (%T = navigation text, %F = entry title):'] = 'Lien vers le billet précédent de la catégorie (%T = texte de navigation, %F = titre du billet) :'; -l10n::$locales['Link to next entry of this category (%T = navigation text, %F = entry title):'] = 'Lien vers le billet suivant de la catégorie (%T = texte de navigation, %F = titre du billet) :'; -l10n::$locales['No style'] = 'sans style'; -l10n::$locales['Small icon'] = 'petite icône'; -l10n::$locales['Normal icon'] = 'icône normale'; -l10n::$locales['Try to remove entry information'] = 'Essayer de cacher les informations du billet'; -l10n::$locales['Try to remove entry tags'] = 'Essayer de cacher la liste des mots-clés du billet'; -l10n::$locales['Try to remove entry navigation'] = 'Essayer de cacher les liens de navigation'; -l10n::$locales['no attachment'] = 'aucune annexe'; -l10n::$locales['no comment'] = 'aucun commentaire'; -l10n::$locales['no trackback'] = 'aucun rétrolien'; -l10n::$locales['Previous entry'] = 'Billet précédent'; -l10n::$locales['Next entry'] = 'Billet suivant'; -l10n::$locales['Previous entry of this category'] = 'Billet précédent de cette catégorie'; -l10n::$locales['Next entry of this category'] = 'Billet suivant de cette catégorie'; -l10n::$locales['Try to adapt style:'] = 'Essayer d\'adapter le style :'; +use Dotclear\Helper\L10n; + +L10n::$locales['PostInfoWidget: entry information list'] = 'PostInfoWidget : liste d\'information du billet'; +L10n::$locales['Show Entry informations on a widget'] = 'Afficher les informations d\'un billet dans un widget'; +L10n::$locales['About this entry'] = 'Á propos de ce billet'; +L10n::$locales['Publish date text:'] = 'Texte pour la date de publication :'; +L10n::$locales['Publish on %Y-%m-%d %H:%M'] = 'Publié le %d/%m/%Y à %H:%M'; +L10n::$locales['Create date text:'] = 'Texte pour la date de création :'; +L10n::$locales['Create on %Y-%m-%d %H:%M'] = 'Créé le %d/%m/%Y à %H:%M'; +L10n::$locales['Update date text:'] = 'Texte pour la date de dernière mise à jour :'; +L10n::$locales['Update on %Y-%m-%d %H:%M'] = 'Mis à jour le %d/%m/%Y à %H:%M'; +L10n::$locales['Language (%T = name, %C = code, %F = flag):'] = 'Texte pour la langue (%T = nom, %C = code, %F = drapeau) :'; +L10n::$locales['Language: %T %F'] = 'Langue : %T %F'; +L10n::$locales['Author text (%T = author):'] = 'Texte pour l\'auteur (%T = auteur) :'; +L10n::$locales['Author: %T'] = 'Auteur : %T'; +L10n::$locales['Category text (%T = category):'] = 'Texte pour la catégorie (%T = catégorie) :'; +L10n::$locales['Category: %T'] = 'Catégorie : %T'; +L10n::$locales['Tags text (%T = tags list):'] = 'Texte pour les mots-clés (%T = liste des mots-clés) :'; +L10n::$locales['Tags: %T'] = 'Mots-clés : %T'; +L10n::$locales['Attachments text (%T = text, %D = numeric):'] = 'Texte pour le nombre d\'annexes (%T = texte, %D = nombre) :'; +L10n::$locales['Attachments: %T'] = 'Annexes : %T'; +L10n::$locales['Comments text (%T = text, %D = numeric):'] = 'Texte pour le nombre de commentaires (%T = texte, %D = nombre) :'; +L10n::$locales['Comments: %T'] = 'Commentaires : %T'; +L10n::$locales['Trackbacks text (%T = text, %D = numeric):'] = 'Texte pour le nombre de rétroliens (%T = texte, %D = nombre) :'; +L10n::$locales['Trackbacks: %T'] = 'Rétroliens : %T'; +L10n::$locales['Permalink text (%T = text link, %F = full link):'] = 'Texte pour le lien pemanent (%T = texte, %F = complet) :'; +L10n::$locales['%T'] = '%T'; +L10n::$locales['Show comment feed url'] = 'Afficher l\'URL du flux des commentaires'; +L10n::$locales['Link to previous entry (%T = navigation text, %F = entry title):'] = 'Lien vers le billet précédent (%T = texte de navigation, %F = titre du billet) :'; +L10n::$locales['Link to next entry (%T = navigation text, %F = entry title):'] = 'Lien vers le billet suivant (%T = texte de navigation, %F = titre du billet) :'; +L10n::$locales['Link to previous entry of this category (%T = navigation text, %F = entry title):'] = 'Lien vers le billet précédent de la catégorie (%T = texte de navigation, %F = titre du billet) :'; +L10n::$locales['Link to next entry of this category (%T = navigation text, %F = entry title):'] = 'Lien vers le billet suivant de la catégorie (%T = texte de navigation, %F = titre du billet) :'; +L10n::$locales['No style'] = 'sans style'; +L10n::$locales['Small icon'] = 'petite icône'; +L10n::$locales['Normal icon'] = 'icône normale'; +L10n::$locales['Try to remove entry information'] = 'Essayer de cacher les informations du billet'; +L10n::$locales['Try to remove entry tags'] = 'Essayer de cacher la liste des mots-clés du billet'; +L10n::$locales['Try to remove entry navigation'] = 'Essayer de cacher les liens de navigation'; +L10n::$locales['no attachment'] = 'aucune annexe'; +L10n::$locales['no comment'] = 'aucun commentaire'; +L10n::$locales['no trackback'] = 'aucun rétrolien'; +L10n::$locales['Previous entry'] = 'Billet précédent'; +L10n::$locales['Next entry'] = 'Billet suivant'; +L10n::$locales['Previous entry of this category'] = 'Billet précédent de cette catégorie'; +L10n::$locales['Next entry of this category'] = 'Billet suivant de cette catégorie'; +L10n::$locales['Try to adapt style:'] = 'Essayer d\'adapter le style :';