From f9daa32ca576a548dd1aa5f09d6f339c6a4d5504 Mon Sep 17 00:00:00 2001 From: Benjamin Kott Date: Thu, 22 Jun 2023 10:00:04 +0200 Subject: [PATCH] [BUGFIX] Make screenreader current label translatable --- Resources/Private/Language/locallang.xlf | 4 ++++ .../Private/Partials/Page/Navigation/MainNavigation.html | 2 +- .../Partials/Page/Navigation/MainNavigationDropDown.html | 2 +- Resources/Private/Partials/Page/Navigation/Subnavigation.html | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Resources/Private/Language/locallang.xlf b/Resources/Private/Language/locallang.xlf index 178c94b4e..c4f462e41 100644 --- a/Resources/Private/Language/locallang.xlf +++ b/Resources/Private/Language/locallang.xlf @@ -29,6 +29,10 @@ To top + + current + + Main navigation diff --git a/Resources/Private/Partials/Page/Navigation/MainNavigation.html b/Resources/Private/Partials/Page/Navigation/MainNavigation.html index aa1dd0174..b3c2b687c 100644 --- a/Resources/Private/Partials/Page/Navigation/MainNavigation.html +++ b/Resources/Private/Partials/Page/Navigation/MainNavigation.html @@ -30,7 +30,7 @@ {item.title} - (current) + ({f:translate(key: 'navigation.link.screenreader.current', extensionName: 'bootstrap_package')}) diff --git a/Resources/Private/Partials/Page/Navigation/MainNavigationDropDown.html b/Resources/Private/Partials/Page/Navigation/MainNavigationDropDown.html index 31085ae73..0d04d2ef4 100644 --- a/Resources/Private/Partials/Page/Navigation/MainNavigationDropDown.html +++ b/Resources/Private/Partials/Page/Navigation/MainNavigationDropDown.html @@ -19,7 +19,7 @@ {item.title} - (current) + ({f:translate(key: 'navigation.link.screenreader.current', extensionName: 'bootstrap_package')}) diff --git a/Resources/Private/Partials/Page/Navigation/Subnavigation.html b/Resources/Private/Partials/Page/Navigation/Subnavigation.html index 3c4481cc9..19e776b57 100644 --- a/Resources/Private/Partials/Page/Navigation/Subnavigation.html +++ b/Resources/Private/Partials/Page/Navigation/Subnavigation.html @@ -26,7 +26,7 @@ - {item.title} (current) + {item.title} ({f:translate(key: 'navigation.link.screenreader.current', extensionName: 'bootstrap_package')})