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

Remove dependency on getAttributeTranslation

parent 9ab7a518
Branches
Tags
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment