From 303e51b9f4457dea80e1637e9971f854d9d6fb42 Mon Sep 17 00:00:00 2001
From: Thijs Kinkhorst <thijs@kinkhorst.com>
Date: Sat, 4 Sep 2021 19:55:53 +0000
Subject: [PATCH] Remove dependency on getAttributeTranslation

---
 modules/admin/lib/Controller/Test.php | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/modules/admin/lib/Controller/Test.php b/modules/admin/lib/Controller/Test.php
index 383debf0a..c88646f5b 100644
--- a/modules/admin/lib/Controller/Test.php
+++ b/modules/admin/lib/Controller/Test.php
@@ -174,7 +174,6 @@ class Test
      */
     private function getNameIDHTML(Template $t, NameID $nameId): string
     {
-        $translator = $t->getTranslator();
         $result = '';
         $list = [
             "NameId" => [$nameId->getValue()],
@@ -212,8 +211,7 @@ class Test
             . ' summary="attribute overview">';
         foreach ($attributes as $name => $value) {
             $nameraw = $name;
-            $trans = $t->getTranslator();
-            $name = $trans->getAttributeTranslation($parentStr . $nameraw);
+            $name = Translate::noop($parentStr . $nameraw);
             if (preg_match('/^child_/', $nameraw)) {
                 $parentName = preg_replace('/^child_/', '', $nameraw);
                 foreach ($value as $child) {
-- 
GitLab