From 99bc5c55e5bc76e7bde3113cc838bbacef8d8772 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Tue, 24 Jan 2023 08:35:40 +0100 Subject: [PATCH] gr_GR ready --- module/news/i18n/es.json | 6 +++++- module/news/i18n/fr_FR.json | 6 +++++- module/news/i18n/gr_GR.json | 6 +++++- module/news/news.php | 26 ++++++++++++-------------- 4 files changed, 27 insertions(+), 17 deletions(-) diff --git a/module/news/i18n/es.json b/module/news/i18n/es.json index 4670dbd5..e54e9cf3 100644 --- a/module/news/i18n/es.json +++ b/module/news/i18n/es.json @@ -39,5 +39,9 @@ "Auteur": "Autor", "Date de publication": "Fecha de publicación", "Date de dépublication": "Fecha no publicada", - "Supprimer cet article ?": "¿Borrar este artículo?" + "Supprimer cet article ?": "¿Borrar este artículo?", + "Rédiger un article": "Escribe un artículo", + "Nouvel article créé": "Nuevo artículo creado", + "Permanent": "Permanente", + "Article supprimé": "Το άρθρο διαγράφεται" } \ No newline at end of file diff --git a/module/news/i18n/fr_FR.json b/module/news/i18n/fr_FR.json index a4c675ea..42911168 100644 --- a/module/news/i18n/fr_FR.json +++ b/module/news/i18n/fr_FR.json @@ -39,5 +39,9 @@ "L'article est consultable à partir du moment ou la date de publication est passée.": "", "Date de dépublication": "", "L'article est consultable Jusqu'à cette date si elle est spécifiée. Pour annuler la date de dépublication, sélectionnez une date antérieure à la publication.": "", - "Supprimer cet article ?": "" + "Supprimer cet article ?": "", + "Rédiger un article": "", + "Nouvel article créé": "", + "Permanent": "", + "Article supprimé": "" } \ No newline at end of file diff --git a/module/news/i18n/gr_GR.json b/module/news/i18n/gr_GR.json index 31055b7f..e6a3b13d 100644 --- a/module/news/i18n/gr_GR.json +++ b/module/news/i18n/gr_GR.json @@ -39,5 +39,9 @@ "Publier": "Δημοσιεύω", "Auteur": "Συντάκτης", "Date de publication": "Ημερομηνία έκδοσης", - "Date de dépublication": "Ημερομηνία μη δημοσίευσης" + "Date de dépublication": "Ημερομηνία μη δημοσίευσης", + "Rédiger un article": "Γράψτε ένα άρθρο", + "Nouvel article créé": "Δημιουργία νέου άρθρου", + "Permanent": "Μόνιμος", + "Article supprimé": "Το άρθρο διαγράφεται" } \ No newline at end of file diff --git a/module/news/news.php b/module/news/news.php index 8acd6347..0891c04a 100644 --- a/module/news/news.php +++ b/module/news/news.php @@ -158,7 +158,7 @@ class news extends common // Valeurs en sortie $this->addOutput([ 'redirect' => helper::baseUrl() . $this->getUrl(0) . '/config', - 'notification' => 'Nouvelle news créée', + 'notification' => helper::translate('Nouvel article créé'), 'state' => true ]); } @@ -171,7 +171,7 @@ class news extends common unset($userFirstname); // Valeurs en sortie $this->addOutput([ - 'title' => 'Nouvelle news', + 'title' => helper::translate('Nouvel article'), 'vendor' => [ 'flatpickr', 'tinymce' @@ -211,20 +211,18 @@ class news extends common self::$states[$this->getData(['module', $this->getUrl(0), 'posts', $newsIds[$i], 'state'])], template::button('newsConfigEdit' . $newsIds[$i], [ 'href' => helper::baseUrl() . $this->getUrl(0) . '/edit/' . $newsIds[$i] . '/' . $_SESSION['csrf'], - 'value' => template::ico('pencil'), - 'help' => 'Éditer cette nouvelle' + 'value' => template::ico('pencil') ]), template::button('newsConfigDelete' . $newsIds[$i], [ 'class' => 'newsConfigDelete buttonRed', 'href' => helper::baseUrl() . $this->getUrl(0) . '/delete/' . $newsIds[$i] . '/' . $_SESSION['csrf'], - 'value' => template::ico('trash'), - 'help' => 'Effacer cette nouvelle' + 'value' => template::ico('trash') ]) ]; } // Valeurs en sortie $this->addOutput([ - 'title' => 'Configuration du module', + 'title' => helper::translate('Configuration du module'), 'view' => 'config', 'vendor' => [ 'tinycolorpicker' @@ -274,7 +272,7 @@ class news extends common // Valeurs en sortie $this->addOutput([ 'redirect' => helper::baseUrl() . $this->getUrl(0) . '/option', - 'notification' => 'Modifications enregistrées', + 'notification' => helper::translate('Modifications enregistrées'), 'state' => true ]); } else { @@ -291,7 +289,7 @@ class news extends common if ($this->getData(['module', $this->getUrl(0), 'posts', $newsIds[$i], 'publishedOff'])) { $dateOff = helper::dateUTF8('%d %B %Y', $this->getData(['module', $this->getUrl(0), 'posts', $newsIds[$i], 'publishedOff'])) . ' - ' . helper::dateUTF8('%H:%M', $this->getData(['module', $this->getUrl(0), 'posts', $newsIds[$i], 'publishedOff'])); } else { - $dateOff = 'Permanent'; + $dateOff = helper::translate('Permanent'); } self::$news[] = [ $this->getData(['module', $this->getUrl(0), 'posts', $newsIds[$i], 'title']), @@ -311,7 +309,7 @@ class news extends common } // Valeurs en sortie $this->addOutput([ - 'title' => 'Options de configuration', + 'title' => helper::translate('Options de configuration'), 'view' => 'option', 'vendor' => [ 'tinycolorpicker' @@ -337,7 +335,7 @@ class news extends common // Valeurs en sortie $this->addOutput([ 'redirect' => helper::baseUrl() . $this->getUrl(0) . '/config', - 'notification' => 'Action interdite' + 'notification' => helper::translate('Action interdite') ]); } // Suppression @@ -346,7 +344,7 @@ class news extends common // Valeurs en sortie $this->addOutput([ 'redirect' => helper::baseUrl() . $this->getUrl(0) . '/config', - 'notification' => 'News supprimée', + 'notification' => helper::translate('Article supprimé'), 'state' => true ]); } @@ -362,7 +360,7 @@ class news extends common // Valeurs en sortie $this->addOutput([ 'redirect' => helper::baseUrl() . $this->getUrl(0) . '/config', - 'notification' => 'Action non autorisée' + 'notification' => helper::translate('Action interdite') ]); } // La news n'existe pas @@ -397,7 +395,7 @@ class news extends common // Valeurs en sortie $this->addOutput([ 'redirect' => helper::baseUrl() . $this->getUrl(0) . '/config', - 'notification' => 'Modifications enregistrées', + 'notification' => helper::translate('Modifications enregistrées'), 'state' => true ]); }