diff --git a/modules/core/lib/Controller.php b/modules/core/lib/Controller.php index 44f3ead040c86972221acc5082d1aa32658c6684..efc1799d514b8d75700eae8525ec1751b51c2116 100644 --- a/modules/core/lib/Controller.php +++ b/modules/core/lib/Controller.php @@ -84,6 +84,8 @@ class Controller $attributes = $auth->getAttributes(); $t = new Template($this->config, 'auth_status.twig', 'attributes'); + $l = $t->getLocalization(); + $l->addDomain($l->getLocaleDir(), 'attributes'); $t->data['header'] = '{status:header_saml20_sp}'; $t->data['attributes'] = $attributes; $t->data['nameid'] = !is_null($auth->getAuthData('saml:sp:NameID')) diff --git a/templates/auth_status.twig b/templates/auth_status.twig index 41b5f3fcae500ff7f6c2a640eb141e0bd60b2b66..bb56e9a47a444b8ccc9e1955e568f39585c98c08 100644 --- a/templates/auth_status.twig +++ b/templates/auth_status.twig @@ -17,9 +17,8 @@ {% embed '_table.twig' -%} {% block namecol -%} - {% set attr = ('{attributes:attribute_'~(name|lower)~'}') %} - {% set translated = attr|trans %} - <td class="attrname">{% if translated != attr %} {{ translated }} <br>{% endif %} <samp>{{ name }}</samp></td> + {% set translated = name|trans %} + <td class="attrname">{% if translated != name %} {{ translated }} <br>{% endif %} <samp>{{ name }}</samp></td> {% endblock %}