From 6ee4d3259f9400b0317c8dd1727afda4d44d31b1 Mon Sep 17 00:00:00 2001 From: Erik Jan de Wit Date: Fri, 31 May 2024 18:27:46 +0200 Subject: [PATCH] fixed translation for groups in new theme Closes #29408 Signed-off-by: Erik Jan de Wit --- .../login/user-profile-commons.ftl | 34 +++++++++++-------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/themes/src/main/resources/theme/keycloak.v2/login/user-profile-commons.ftl b/themes/src/main/resources/theme/keycloak.v2/login/user-profile-commons.ftl index 7a22b4936b..67c5b98176 100644 --- a/themes/src/main/resources/theme/keycloak.v2/login/user-profile-commons.ftl +++ b/themes/src/main/resources/theme/keycloak.v2/login/user-profile-commons.ftl @@ -3,26 +3,32 @@ <#list profile.attributes as attribute> - <#assign groupName = attribute.group!""> - <#if groupName != currentGroup> - <#assign currentGroup=groupName> - <#if currentGroup != "" > -
- - <#assign groupDisplayHeader=attribute.groupDisplayHeader!""> + <#assign group = (attribute.group)!""> + <#if group != currentGroup> + <#assign currentGroup=group> + <#if currentGroup != ""> +
+ data-${key}="${value}" + + > + + <#assign groupDisplayHeader=group.displayHeader!""> <#if groupDisplayHeader != ""> - <#assign groupHeaderText=advancedMsg(attribute.groupDisplayHeader)!groupName> + <#assign groupHeaderText=advancedMsg(groupDisplayHeader)!group> <#else> - <#assign groupHeaderText=groupName> + <#assign groupHeaderText=group.name!"">
- +
- - <#assign groupDisplayDescription=attribute.groupDisplayDescription!""> + + <#assign groupDisplayDescription=group.displayDescription!""> <#if groupDisplayDescription != ""> - <#assign groupDescriptionText=advancedMsg(attribute.groupDisplayDescription)!""> - + <#assign groupDescriptionText=advancedMsg(groupDisplayDescription)!""> +
+ +