From 8e5daa78a5e2d7a03797520a97b137bda2d2d2b6 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Thu, 28 Oct 2021 23:17:48 +0200 Subject: [PATCH] add link to configuration and cosmetics fixes --- README.md | 7 ++ _admin.php | 10 ++- _config.php | 6 +- dcstore.xml | 1 + locales/fr/main.lang.php | 172 --------------------------------------- locales/fr/main.po | 86 ++------------------ 6 files changed, 27 insertions(+), 255 deletions(-) delete mode 100644 locales/fr/main.lang.php diff --git a/README.md b/README.md index 967abbc..099947d 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,12 @@ # README +[![Release](https://img.shields.io/github/v/release/JcDenis/fac)](https://github.com/JcDenis/fac/releases) +[![Date](https://img.shields.io/github/release-date/JcDenis/fac)](https://github.com/JcDenis/fac/releases) +[![Issues](https://img.shields.io/github/issues/JcDenis/fac)](https://github.com/JcDenis/fac/issues) +[![Dotclear](https://img.shields.io/badge/dotclear-v2.19-blue.svg)](https://fr.dotclear.org/download) +[![Dotaddict](https://img.shields.io/badge/dotaddict-official-green.svg)](https://plugins.dotaddict.org/dc2/details/fac) +[![License](https://img.shields.io/github/license/JcDenis/fac)](https://github.com/JcDenis/fac/blob/master/LICENSE) + ## WHAT IS FAC ? "Feed After Content" is a plugin for the open-source diff --git a/_admin.php b/_admin.php index 18bb379..03c108d 100644 --- a/_admin.php +++ b/_admin.php @@ -73,7 +73,15 @@ class facAdmin '

Feed after content

' . '

' . __('To add feed to an entry edit this entry and put in sidebar the url of the feed and select a format.') . - '

' . + '

'; + if ($core->auth->isSuperAdmin()) { + echo '

' . __('Configure formats') . '

'; + } + echo '
' . '
' . '
' . __('Activation') . '
' . diff --git a/_config.php b/_config.php index 6b32da5..49428ac 100644 --- a/_config.php +++ b/_config.php @@ -15,6 +15,10 @@ if (!defined('DC_CONTEXT_MODULE')) { return null; } +if (!$core->auth->isSuperAdmin()) { + return null; +} + $redir = empty($_REQUEST['redir']) ? $list->getURL() . '#plugins' : $_REQUEST['redir']; @@ -53,7 +57,7 @@ if (!empty($_POST['save'])) { $core->blog->triggerBlog(); dcPage::addSuccessNotice( - __('Configuration has been successfully updated.') + __('Configuration successfully updated.') ); http::redirect( $list->getURL('module=fac&conf=1&redir=' . $list->getRedir()) diff --git a/dcstore.xml b/dcstore.xml index b94e2bf..ada81ee 100644 --- a/dcstore.xml +++ b/dcstore.xml @@ -5,6 +5,7 @@ Jean-Christian Denis and Contributors Add RSS/Atom feeds after entries content https://github.com/JcDenis/fac/releases/download/v0.9.3/plugin-fac.zip +2.19 https://plugins.dotaddict.org/dc2/details/fac https://github.com/JcDenis/fac diff --git a/locales/fr/main.lang.php b/locales/fr/main.lang.php deleted file mode 100644 index 436c7c5..0000000 --- a/locales/fr/main.lang.php +++ /dev/null @@ -1,172 +0,0 @@ - 1);\n" -#: _admin.php:46 msgid "home page" msgstr "la page d'accueil" -#: _admin.php:47 msgid "post pages" msgstr "la page d'un billet" -#: _admin.php:48 msgid "tags pages" msgstr "les pages d'un tag" -#: _admin.php:49 msgid "archives pages" msgstr "les pages des archives" -#: _admin.php:50 msgid "category pages" msgstr "les pages de catégorie" -#: _admin.php:51 msgid "entries feed" msgstr "le flux des billets" -#: _admin.php:56 msgid "\"%s\" pages from extension muppet" msgstr "la page de type \"%s\" de l'extension muppet" -#: _admin.php:75 -#: _config.php:482 msgid "To add feed to an entry edit this entry and put in sidebar the url of the feed and select a format." msgstr "Pour ajouter un flux à un billet, modifier ce billet et dans son menu latéral ajouter l'URL du flux et le format." -#: _admin.php:82 +msgid "Configure formats" +msgstr "Configurer les formats" + msgid "Enable \"fac\" extension" msgstr "Activer l'extension \"fac\"" -#: _admin.php:84 msgid "You can manage related feed to display for each post with a predefined format." msgstr "Vous pouvez gérer les flux a afficher pour chaque billet avec un format prédéfini." -#: _admin.php:86 msgid "Feed" msgstr "Flux" -#: _admin.php:87 msgid "Default title" msgstr "Titre par défaut" -#: _admin.php:89 msgid "Use %T to insert title of feed." msgstr "Utiliser %T pour insérer le titre du flux." -#: _admin.php:92 msgid "Show description of feed" msgstr "Afficher la description" -#: _admin.php:95 msgid "Show feed after content on:" msgstr "Afficher le flux après le contenu sur :" -#: _admin.php:226 -#: _admin.php:234 -#: _admin.php:337 msgid "Linked feed" msgstr "Flux lié" -#: _admin.php:226 msgid "Add feed" msgstr "Ajouter un flux" -#: _admin.php:234 msgid "Remove feed" msgstr "Retirer un flux" -#: _admin.php:264 msgid "Linked feed deleted." msgstr "Flux lié effacé." -#: _admin.php:291 msgid "Linked feed added." msgstr "Flux lié ajouté." -#: _admin.php:300 msgid "Linked feed to this selection" msgstr "Lié un flux a cette selection" -#: _admin.php:355 msgid "view feed" msgstr "Voir le flux" -#: _config.php:56 -msgid "Configuration has been successfully updated." -msgstr "La configuration a été mise à jour avec succés." - -#: _config.php:76 msgid "Format %s" msgstr "Format %s" -#: _config.php:93 -#: _config.php:295 msgid "In order to remove a format, leave its name empty." msgstr "Pour retirer un format, laisser son nom vide." -#: _config.php:109 -#: _config.php:311 msgid "Use date format of Dotclear or leave empty to use default date format of blog." msgstr "Utiliser le formatage des dates de Dotclear ou laisser vide pour utiliser le format par défaut du blog." -#: _config.php:125 -#: _config.php:185 -#: _config.php:225 -#: _config.php:265 -#: _config.php:327 -#: _config.php:387 -#: _config.php:427 -#: _config.php:467 msgid "Leave lengh empty for no limit." msgstr "Laisser vide pour ne pas mettre de limite." -#: _config.php:131 -#: _config.php:333 msgid "Title format:" msgstr "Format du titre :" -#: _config.php:143 -#: _config.php:164 -#: _config.php:345 -#: _config.php:366 msgid "Format can be:" msgstr "Le format peut-être :" -#: _config.php:152 -#: _config.php:354 msgid "Over title format:" msgstr "Format au survole du titre :" -#: _config.php:173 -#: _config.php:375 msgid "Maximum length of title:" msgstr "Longueur maximum du titre :" -#: _config.php:199 -#: _config.php:401 msgid "Show description of entries" msgstr "Afficher la description des billets" -#: _config.php:210 -#: _config.php:412 msgid "Remove html of description" msgstr "Retirer le code HTML de la description" -#: _config.php:213 -#: _config.php:415 msgid "Maximum length of description:" msgstr "Longueur maximum de la description :" -#: _config.php:239 -#: _config.php:441 msgid "Show content of entries" msgstr "Afficher le contenu du flux" -#: _config.php:250 -#: _config.php:452 msgid "Remove html of content" msgstr "Retirer le code HTML du contenu" -#: _config.php:253 -#: _config.php:455 msgid "Maximum length of content:" msgstr "Longueur maximum du contenu :" -#: _config.php:278 msgid "New format" msgstr "Nouveau format" -#: _config.php:475 msgid "Informations" msgstr "Informations" -#: _config.php:479 msgid "Theme" msgstr "Thème" -#: _config.php:481 msgid "Theme must have behavoir publicEntryAfterContent." msgstr "Le thème doit avoir le behavior pulicEnryAfterContent." -#: _config.php:487 msgid "Structure" msgstr "Structure" -#: _config.php:490 msgid "Title of feed" msgstr "Titre du flux" -#: _config.php:491 msgid "Description of feed" msgstr "Descritpion du flux" -#: _config.php:493 msgid "Title of entry" msgstr "Titre du billet" -#: _config.php:494 msgid "Description of entry" msgstr "Description du billet" -#: _public.php:120 msgid "a related feed" msgstr "un flux lié"