Skip to content

Commit 94d9664

Browse files
chmstsandewtQuyTon
authored
[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 <[email protected]> * Update layouts/joomla/pagination/link.php Co-authored-by: jsanders <[email protected]> * Update layouts/joomla/pagination/link.php Co-authored-by: jsanders <[email protected]> * Update layouts/joomla/pagination/link.php Co-authored-by: jsanders <[email protected]> --------- Co-authored-by: jsanders <[email protected]> Co-authored-by: Quy <[email protected]>
1 parent 02442d9 commit 94d9664

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

administrator/language/en-GB/lib_joomla.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,10 @@ JLIB_HTML_FEATURED_PENDING_ITEM="Featured, but is Pending."
444444
JLIB_HTML_FEATURED_STARTED="Start: %s"
445445
JLIB_HTML_GOTO_PAGE="Go to page %s"
446446
JLIB_HTML_GOTO_POSITION="Go to %s page"
447+
JLIB_HTML_GOTO_POSITION_END="Go to last page"
448+
JLIB_HTML_GOTO_POSITION_NEXT="Go to next page"
449+
JLIB_HTML_GOTO_POSITION_PREVIOUS="Go to previous page"
450+
JLIB_HTML_GOTO_POSITION_START="Go to first page"
447451
JLIB_HTML_ITEM_PUBLISHED_BUT_CATEGORY_TRASHED="Published but the category is trashed."
448452
JLIB_HTML_ITEM_PUBLISHED_BUT_CATEGORY_UNPUBLISHED="Published but the category is not published."
449453
JLIB_HTML_MOVE_DOWN="Move Down"

language/en-GB/lib_joomla.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,10 @@ JLIB_HTML_FEATURED_PENDING_ITEM="Featured, but is Pending."
443443
JLIB_HTML_FEATURED_STARTED="Start: %s"
444444
JLIB_HTML_GOTO_PAGE="Go to page %s"
445445
JLIB_HTML_GOTO_POSITION="Go to %s page"
446+
JLIB_HTML_GOTO_POSITION_END="Go to last page"
447+
JLIB_HTML_GOTO_POSITION_NEXT="Go to next page"
448+
JLIB_HTML_GOTO_POSITION_PREVIOUS="Go to previous page"
449+
JLIB_HTML_GOTO_POSITION_START="Go to first page"
446450
JLIB_HTML_MOVE_DOWN="Move Down"
447451
JLIB_HTML_MOVE_UP="Move Up"
448452
JLIB_HTML_NO_PARAMETERS_FOR_THIS_ITEM="There are no parameters for this item."

layouts/joomla/pagination/link.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,25 @@
2121
// Check for "Start" item
2222
case Text::_('JLIB_HTML_START'):
2323
$icon = $app->getLanguage()->isRtl() ? 'icon-angle-double-right' : 'icon-angle-double-left';
24-
$aria = Text::sprintf('JLIB_HTML_GOTO_POSITION', strtolower($item->text));
24+
$aria = Text::_('JLIB_HTML_GOTO_POSITION_START');
2525
break;
2626

2727
// Check for "Prev" item
2828
case $item->text === Text::_('JPREV'):
29-
$item->text = Text::_('JPREVIOUS');
3029
$icon = $app->getLanguage()->isRtl() ? 'icon-angle-right' : 'icon-angle-left';
31-
$aria = Text::sprintf('JLIB_HTML_GOTO_POSITION', strtolower($item->text));
30+
$aria = Text::_('JLIB_HTML_GOTO_POSITION_PREVIOUS');
3231
break;
3332

3433
// Check for "Next" item
3534
case Text::_('JNEXT'):
3635
$icon = $app->getLanguage()->isRtl() ? 'icon-angle-left' : 'icon-angle-right';
37-
$aria = Text::sprintf('JLIB_HTML_GOTO_POSITION', strtolower($item->text));
36+
$aria = Text::_('JLIB_HTML_GOTO_POSITION_NEXT');
3837
break;
3938

4039
// Check for "End" item
4140
case Text::_('JLIB_HTML_END'):
4241
$icon = $app->getLanguage()->isRtl() ? 'icon-angle-double-left' : 'icon-angle-double-right';
43-
$aria = Text::sprintf('JLIB_HTML_GOTO_POSITION', strtolower($item->text));
42+
$aria = Text::_('JLIB_HTML_GOTO_POSITION_END');
4443
break;
4544

4645
default:

0 commit comments

Comments
 (0)