From 1556365177b9fcb52150e73bf78569fb545a4610 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Fri, 17 Sep 2021 23:11:07 +0200 Subject: [PATCH] fix plugin name, fix plurals --- _define.php | 2 +- _widgets.php | 4 +-- locales/fr/main.lang.php | 74 ---------------------------------------- locales/fr/main.po | 37 +++++++++----------- 4 files changed, 20 insertions(+), 97 deletions(-) delete mode 100644 locales/fr/main.lang.php diff --git a/_define.php b/_define.php index 18ca130..accaf91 100644 --- a/_define.php +++ b/_define.php @@ -16,7 +16,7 @@ if (!defined('DC_RC_PATH')) { } $this->registerModule( - 'topWriter', + 'Top writer', 'Ranking of the most prolific writers and/or commentators', 'Jean-Christian Denis, Pierre Van Glabeke', '0.8.1', diff --git a/_widgets.php b/_widgets.php index 202cea2..e79de13 100644 --- a/_widgets.php +++ b/_widgets.php @@ -25,7 +25,7 @@ class topWriterWidget $w ->create( 'topcom', - __('Top Writer: top comments'), + __('Top writer: comments'), ['topWriterWidget', 'topCom'], null, __('List users who write more comments') @@ -81,7 +81,7 @@ class topWriterWidget $w ->create( 'toppost', - __('Top Writer: top entries'), + __('Top writer: entries'), ['topWriterWidget', 'topPost'], null, __('List users who write more posts') diff --git a/locales/fr/main.lang.php b/locales/fr/main.lang.php deleted file mode 100644 index 212367f..0000000 --- a/locales/fr/main.lang.php +++ /dev/null @@ -1,74 +0,0 @@ - 1);\n" #: _widgets.php:28 -msgid "Top Writer: top comments" -msgstr "Top Writer : top commentaires" +msgid "Top writer: comments" +msgstr "Top rédacteur : commentaires" #: _widgets.php:31 msgid "List users who write more comments" @@ -67,8 +67,8 @@ msgid "Exclude post writer from list" msgstr "Exclure de la liste les auteurs de billets" #: _widgets.php:84 -msgid "Top Writer: top entries" -msgstr "Top Writer : top billets" +msgid "Top writer: entries" +msgstr "Top rédacteur : billets" #: _widgets.php:87 msgid "List users who write more posts" @@ -94,15 +94,12 @@ msgstr "aucun billet" msgid "Ranking of the most prolific writers and/or commentators" msgstr "Classement des plus prolifiques rédacteurs et/ou commentateurs" -msgid "one entries" -msgstr "un billet" - -msgid "%s entries" -msgstr "%s billets" - -msgid "un comment" -msgstr "un commentaire" - -msgid "%s comments" -msgstr "%s commentaires" +msgid "one comment" +msgid_plural "%s comments" +msgstr[0] "un commentaire" +msgstr[1] "%s commentaires" +msgid "one entry" +msgid_plural "%s entries" +msgstr[0] "un billet" +msgstr[1] "%s billets" \ No newline at end of file