From ecce84afd13f58a06703b2ae72a5a1c8ddb1bb93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tempez?= Date: Mon, 12 Sep 2022 22:32:55 +0200 Subject: [PATCH] =?UTF-8?q?Cr=C3=A9ation=20d'un=20template=20header=20pour?= =?UTF-8?q?=20la=20traduction=20des=20titres=20nom=20=C3=A0=20changer=20?= =?UTF-8?q?=3F=3F=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/class/template.class.php | 8 ++++++++ core/module/config/view/backup/backup.php | 4 +++- core/module/config/view/connect/connect.php | 2 +- site/i18n/en.json | 3 ++- 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/core/class/template.class.php b/core/class/template.class.php index 49bd678a..f58e973d 100644 --- a/core/class/template.class.php +++ b/core/class/template.class.php @@ -2,6 +2,14 @@ class template { + /** + * Créer un header de niveau 4 uniquement pour la traduction des titres + */ + public static function header($text) { + $text = helper::translate($text); + return $text ; + } + /** * Crée un bouton * @param string $nameId Nom et id du champ diff --git a/core/module/config/view/backup/backup.php b/core/module/config/view/backup/backup.php index 25071a93..1368db00 100644 --- a/core/module/config/view/backup/backup.php +++ b/core/module/config/view/backup/backup.php @@ -17,7 +17,9 @@