From 94d9664710fd674dcaff6bf19ce2834d2d1517e3 Mon Sep 17 00:00:00 2001 From: Christiane Maier-Stadtherr Date: Wed, 11 Sep 2024 07:57:09 +0200 Subject: [PATCH] [4.4] Improve translation of aria label text by extra language keys (#44050) * Improve translation of aria label text by extra language keys * Update layouts/joomla/pagination/link.php Co-authored-by: jsanders * Update layouts/joomla/pagination/link.php Co-authored-by: jsanders * Update layouts/joomla/pagination/link.php Co-authored-by: jsanders * Update layouts/joomla/pagination/link.php Co-authored-by: jsanders --------- Co-authored-by: jsanders Co-authored-by: Quy --- administrator/language/en-GB/lib_joomla.ini | 4 ++++ language/en-GB/lib_joomla.ini | 4 ++++ layouts/joomla/pagination/link.php | 9 ++++----- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/administrator/language/en-GB/lib_joomla.ini b/administrator/language/en-GB/lib_joomla.ini index e17e2f7224e80..b6c1b2b7f2008 100644 --- a/administrator/language/en-GB/lib_joomla.ini +++ b/administrator/language/en-GB/lib_joomla.ini @@ -444,6 +444,10 @@ JLIB_HTML_FEATURED_PENDING_ITEM="Featured, but is Pending." JLIB_HTML_FEATURED_STARTED="Start: %s" JLIB_HTML_GOTO_PAGE="Go to page %s" JLIB_HTML_GOTO_POSITION="Go to %s page" +JLIB_HTML_GOTO_POSITION_END="Go to last page" +JLIB_HTML_GOTO_POSITION_NEXT="Go to next page" +JLIB_HTML_GOTO_POSITION_PREVIOUS="Go to previous page" +JLIB_HTML_GOTO_POSITION_START="Go to first page" JLIB_HTML_ITEM_PUBLISHED_BUT_CATEGORY_TRASHED="Published but the category is trashed." JLIB_HTML_ITEM_PUBLISHED_BUT_CATEGORY_UNPUBLISHED="Published but the category is not published." JLIB_HTML_MOVE_DOWN="Move Down" diff --git a/language/en-GB/lib_joomla.ini b/language/en-GB/lib_joomla.ini index 092e26796055b..6ae901a25252e 100644 --- a/language/en-GB/lib_joomla.ini +++ b/language/en-GB/lib_joomla.ini @@ -443,6 +443,10 @@ JLIB_HTML_FEATURED_PENDING_ITEM="Featured, but is Pending." JLIB_HTML_FEATURED_STARTED="Start: %s" JLIB_HTML_GOTO_PAGE="Go to page %s" JLIB_HTML_GOTO_POSITION="Go to %s page" +JLIB_HTML_GOTO_POSITION_END="Go to last page" +JLIB_HTML_GOTO_POSITION_NEXT="Go to next page" +JLIB_HTML_GOTO_POSITION_PREVIOUS="Go to previous page" +JLIB_HTML_GOTO_POSITION_START="Go to first page" JLIB_HTML_MOVE_DOWN="Move Down" JLIB_HTML_MOVE_UP="Move Up" JLIB_HTML_NO_PARAMETERS_FOR_THIS_ITEM="There are no parameters for this item." diff --git a/layouts/joomla/pagination/link.php b/layouts/joomla/pagination/link.php index 52a6f77e990f8..5f17aee9c8a30 100644 --- a/layouts/joomla/pagination/link.php +++ b/layouts/joomla/pagination/link.php @@ -21,26 +21,25 @@ // Check for "Start" item case Text::_('JLIB_HTML_START'): $icon = $app->getLanguage()->isRtl() ? 'icon-angle-double-right' : 'icon-angle-double-left'; - $aria = Text::sprintf('JLIB_HTML_GOTO_POSITION', strtolower($item->text)); + $aria = Text::_('JLIB_HTML_GOTO_POSITION_START'); break; // Check for "Prev" item case $item->text === Text::_('JPREV'): - $item->text = Text::_('JPREVIOUS'); $icon = $app->getLanguage()->isRtl() ? 'icon-angle-right' : 'icon-angle-left'; - $aria = Text::sprintf('JLIB_HTML_GOTO_POSITION', strtolower($item->text)); + $aria = Text::_('JLIB_HTML_GOTO_POSITION_PREVIOUS'); break; // Check for "Next" item case Text::_('JNEXT'): $icon = $app->getLanguage()->isRtl() ? 'icon-angle-left' : 'icon-angle-right'; - $aria = Text::sprintf('JLIB_HTML_GOTO_POSITION', strtolower($item->text)); + $aria = Text::_('JLIB_HTML_GOTO_POSITION_NEXT'); break; // Check for "End" item case Text::_('JLIB_HTML_END'): $icon = $app->getLanguage()->isRtl() ? 'icon-angle-double-left' : 'icon-angle-double-right'; - $aria = Text::sprintf('JLIB_HTML_GOTO_POSITION', strtolower($item->text)); + $aria = Text::_('JLIB_HTML_GOTO_POSITION_END'); break; default: