From cc90fc2273d32270b56b14a704fa6fede29ddba4 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Tue, 8 Aug 2023 18:15:16 +0200 Subject: [PATCH] =?UTF-8?q?Traduction=20des=20donn=C3=A9es=20des=20profils?= =?UTF-8?q?,=20nom=20et=20commentaire?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/module/user/user.php | 8 ++++---- core/module/user/view/profilEdit/profilEdit.php | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/core/module/user/user.php b/core/module/user/user.php index b099599e..e7756ed8 100644 --- a/core/module/user/user.php +++ b/core/module/user/user.php @@ -489,8 +489,8 @@ class user extends common ) { self::$userGroups[$groupId] = [ $groupId, - $groupData['name'], - nl2br($groupData['comment']), + helper::translate($groupData['name']), + nl2br(helper::translate($groupData['comment'])), template::button('profilEdit' . $groupId, [ 'href' => helper::baseUrl() . 'user/profilEdit/' . $groupId, 'value' => template::ico('pencil'), @@ -513,8 +513,8 @@ class user extends common foreach ($groupData as $profilId => $profilData) { self::$userGroups[$groupId . '.' . $profilId] = [ $groupId . '-' . $profilId, - self::$groups[$groupId] . '
Profil : ' . $profilData['name'], - nl2br($profilData['comment']), + helper::translate(self::$groups[$groupId]). '
Profil : ' . helper::translate($profilData['name']), + nl2br(helper::translate($profilData['comment'])), template::button('profilEdit' . $groupId . $profilId, [ 'href' => helper::baseUrl() . 'user/profilEdit/' . $groupId . '/' . $profilId, 'value' => template::ico('pencil'), diff --git a/core/module/user/view/profilEdit/profilEdit.php b/core/module/user/view/profilEdit/profilEdit.php index 1d333f9a..cfd01db7 100644 --- a/core/module/user/view/profilEdit/profilEdit.php +++ b/core/module/user/view/profilEdit/profilEdit.php @@ -25,7 +25,7 @@
'Nom du profil', - 'value' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'name']) + 'value' => helper::translate($this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'name'])) ]); ?>
@@ -41,7 +41,7 @@
'Groupe associƩ', - 'value' => self::$groups[$this->getUrl(2)], + 'value' => helper::translate(self::$groups[$this->getUrl(2)]), 'disabled' => true ]); ?> 'Commentaire', - 'value' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'comment']) + 'value' => helper::translate($this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'comment'])) ]); ?>