diff --git a/src/Helper/Navigation/AbstractHelper.php b/src/Helper/Navigation/AbstractHelper.php index 16159e66..7cb12cce 100644 --- a/src/Helper/Navigation/AbstractHelper.php +++ b/src/Helper/Navigation/AbstractHelper.php @@ -397,8 +397,8 @@ public function htmlify(AbstractPage $page) $title = $page->getTitle(); if (null !== ($translator = $this->getTranslator())) { - if (null === ($textDomain = $page->getTextdomain())) { - $textDomain = $this->getTranslatorTextdomain(); + if (null === ($textDomain = $page->getTextDomain())) { + $textDomain = $this->getTranslatorTextDomain(); } if (is_string($label) && !empty($label)) { $label = $translator->translate($label, $textDomain); diff --git a/src/Helper/Navigation/Breadcrumbs.php b/src/Helper/Navigation/Breadcrumbs.php index 55d8cee9..c259363c 100644 --- a/src/Helper/Navigation/Breadcrumbs.php +++ b/src/Helper/Navigation/Breadcrumbs.php @@ -109,8 +109,8 @@ public function renderStraight($container = null) } else { $html = $active->getLabel(); if (null !== ($translator = $this->getTranslator())) { - if (null === ($textDomain = $active->getTextdomain())) { - $textDomain = $this->getTranslatorTextdomain(); + if (null === ($textDomain = $active->getTextDomain())) { + $textDomain = $this->getTranslatorTextDomain(); } $html = $translator->translate($html, $textDomain); } diff --git a/src/Helper/Navigation/Menu.php b/src/Helper/Navigation/Menu.php index 34e6208c..32c3058b 100644 --- a/src/Helper/Navigation/Menu.php +++ b/src/Helper/Navigation/Menu.php @@ -477,8 +477,8 @@ public function htmlify(AbstractPage $page, $escapeLabel = true, $addClassToList // translate label and title? if (null !== ($translator = $this->getTranslator())) { - if (null === ($textDomain = $page->getTextdomain())) { - $textDomain = $this->getTranslatorTextdomain(); + if (null === ($textDomain = $page->getTextDomain())) { + $textDomain = $this->getTranslatorTextDomain(); } if (is_string($label) && !empty($label)) { $label = $translator->translate($label, $textDomain);