release 2.0

This commit is contained in:
Jean-Christian Denis 2023-04-11 00:22:25 +02:00
parent 22e13c903c
commit 3c0f633748
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951
5 changed files with 34 additions and 8 deletions

View file

@ -1,3 +1,7 @@
2.0 - 2023.04.11
* require Dotclear 2.26
* use namespace
1.6 - 2022.12.16 1.6 - 2022.12.16
* update to dotclear 2.24 * update to dotclear 2.24
* fix phpstan errors * fix phpstan errors

View file

@ -3,7 +3,7 @@
[![Release](https://img.shields.io/github/v/release/JcDenis/bloganniv)](https://github.com/JcDenis/bloganniv/releases) [![Release](https://img.shields.io/github/v/release/JcDenis/bloganniv)](https://github.com/JcDenis/bloganniv/releases)
[![Date](https://img.shields.io/github/release-date/JcDenis/bloganniv)](https://github.com/JcDenis/bloganniv/releases) [![Date](https://img.shields.io/github/release-date/JcDenis/bloganniv)](https://github.com/JcDenis/bloganniv/releases)
[![Issues](https://img.shields.io/github/issues/JcDenis/bloganniv)](https://github.com/JcDenis/bloganniv/issues) [![Issues](https://img.shields.io/github/issues/JcDenis/bloganniv)](https://github.com/JcDenis/bloganniv/issues)
[![Dotclear](https://img.shields.io/badge/dotclear-v2.24-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/bloganniv) [![Dotaddict](https://img.shields.io/badge/dotaddict-official-green.svg)](https://plugins.dotaddict.org/dc2/details/bloganniv)
[![License](https://img.shields.io/github/license/JcDenis/bloganniv)](https://github.com/JcDenis/bloganniv/blob/master/LICENSE) [![License](https://img.shields.io/github/license/JcDenis/bloganniv)](https://github.com/JcDenis/bloganniv/blob/master/LICENSE)
@ -22,7 +22,7 @@ It adds widget showing:
_bloganniv_ requires: _bloganniv_ requires:
* permissions to manage widgets * permissions to manage widgets
* Dotclear 2.24 * Dotclear 2.26
## USAGE ## USAGE

View file

@ -7,7 +7,7 @@
* *
* @author Fran6t, Pierre Van Glabeke and Contributors * @author Fran6t, Pierre Van Glabeke and Contributors
* *
* @copyright Jean-Crhistian Denis * @copyright Jean-Christian Denis
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
*/ */
if (!defined('DC_RC_PATH')) { if (!defined('DC_RC_PATH')) {
@ -18,9 +18,9 @@ $this->registerModule(
'Blog Anniv', 'Blog Anniv',
'Counting the number of days before and after a particular date', 'Counting the number of days before and after a particular date',
'Fran6t, Pierre Van Glabeke and Contributors', 'Fran6t, Pierre Van Glabeke and Contributors',
'1.6', '2.0',
[ [
'requires' => [['core', '2.24']], 'requires' => [['core', '2.26']],
'permissions' => dcCore::app()->auth->makePermissions([ 'permissions' => dcCore::app()->auth->makePermissions([
dcAuth::PERMISSION_ADMIN, dcAuth::PERMISSION_ADMIN,
]), ]),

View file

@ -2,11 +2,11 @@
<modules xmlns:da="http://dotaddict.org/da/"> <modules xmlns:da="http://dotaddict.org/da/">
<module id="bloganniv"> <module id="bloganniv">
<name>Blog Anniv</name> <name>Blog Anniv</name>
<version>1.6</version> <version>2.0</version>
<author>Fran6t, Pierre Van Glabeke and Contributors</author> <author>Fran6t, Pierre Van Glabeke and Contributors</author>
<desc>Counting the number of days before and after a particular date</desc> <desc>Counting the number of days before and after a particular date</desc>
<file>https://github.com/JcDenis/bloganniv/releases/download/v1.6/plugin-bloganniv.zip</file> <file>https://github.com/JcDenis/bloganniv/releases/download/v2.0/plugin-bloganniv.zip</file>
<da:dcmin>2.24</da:dcmin> <da:dcmin>2.26</da:dcmin>
<da:details>https://plugins.dotaddict.org/dc2/details/bloganniv</da:details> <da:details>https://plugins.dotaddict.org/dc2/details/bloganniv</da:details>
<da:support>https://github.com/JcDenis/bloganniv</da:support> <da:support>https://github.com/JcDenis/bloganniv</da:support>
</module> </module>

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

@ -0,0 +1,22 @@
<?php
/**
* @package Dotclear
*
* @copyright Olivier Meunier & Association Dotclear
* @copyright GPL-2.0-only
*/
#
# DOT NOT MODIFY THIS FILE !
#
use Dotclear\Helper\L10n;
L10n::$locales['Counting the number of days before and after a particular date'] = 'Décompte du nombre de jours avant et après une date donnée';
L10n::$locales['Born Date (dd/mm/yyyy) or blank:'] = 'Date de naissance (jj/mm/aaaa) ou vide :';
L10n::$locales['Display Born Date'] = 'Affichage date de naissance';
L10n::$locales['Display Year(s) Old'] = 'Affichage âge en année(s)';
L10n::$locales['Born:'] = 'Né le :';
L10n::$locales['Age:'] = 'Âge :';
L10n::$locales['year(s)'] = 'an(s)';
L10n::$locales['Birthday in'] = 'Anniversaire dans';
L10n::$locales['day(s)'] = 'jour(s)';