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'])) ]); ?>