Skip to content
Snippets Groups Projects
Commit 303e51b9 authored by Thijs Kinkhorst's avatar Thijs Kinkhorst
Browse files

Remove dependency on getAttributeTranslation

parent 9ab7a518
No related branches found
No related tags found
No related merge requests found
...@@ -174,7 +174,6 @@ class Test ...@@ -174,7 +174,6 @@ class Test
*/ */
private function getNameIDHTML(Template $t, NameID $nameId): string private function getNameIDHTML(Template $t, NameID $nameId): string
{ {
$translator = $t->getTranslator();
$result = ''; $result = '';
$list = [ $list = [
"NameId" => [$nameId->getValue()], "NameId" => [$nameId->getValue()],
...@@ -212,8 +211,7 @@ class Test ...@@ -212,8 +211,7 @@ class Test
. ' summary="attribute overview">'; . ' summary="attribute overview">';
foreach ($attributes as $name => $value) { foreach ($attributes as $name => $value) {
$nameraw = $name; $nameraw = $name;
$trans = $t->getTranslator(); $name = Translate::noop($parentStr . $nameraw);
$name = $trans->getAttributeTranslation($parentStr . $nameraw);
if (preg_match('/^child_/', $nameraw)) { if (preg_match('/^child_/', $nameraw)) {
$parentName = preg_replace('/^child_/', '', $nameraw); $parentName = preg_replace('/^child_/', '', $nameraw);
foreach ($value as $child) { foreach ($value as $child) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment