Skip to content

Commit 42a0387

Browse files
authored
[6.0] Add aria-label + text to change language button during installation (#45430)
1 parent 512a5c6 commit 42a0387

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

installation/language/en-GB/joomla.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ BUILD_MIN_PHP_ERROR_URL_TEXT="Help me resolve this"
3333

3434
; Main Config
3535
INSTL_CHANGE_INSTALL_LANG="Change Installation Language"
36+
INSTL_CHANGE_INSTALL_LANG_SHORT="Change"
3637
INSTL_SELECTED_INSTALL_LANGUAGE="Current language: %s"
3738
INSTL_SELECT_INSTALL_LANG="Select Installation Language"
3839
INSTL_SELECT_LANGUAGE_TITLE="Select Language"

installation/tmpl/setup/default.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135

136136
$text = '<span class="ms-1 fw-bold" id="languageForm-current"></span>';
137137

138-
$text .= '<button type="button" data-joomla-dialog="' . htmlspecialchars(json_encode($dataAttribs)) . '" class="btn btn-primary btn-sm ms-2"><span class="fas fa-repeat fa-fw" aria-hidden="true"></span><span class="visually-hidden">' . Text::_('INSTL_CHANGE_INSTALL_LANG') . '</span></button>';
138+
$text .= '<button type="button" data-joomla-dialog="' . htmlspecialchars(json_encode($dataAttribs)) . '" aria-label="' . Text::_('INSTL_CHANGE_INSTALL_LANG') . '" class="btn btn-primary btn-sm ms-2"><span class="fas fa-repeat fa-fw me-2" aria-hidden="true"></span>' . Text::_('INSTL_CHANGE_INSTALL_LANG_SHORT') . '</button>';
139139

140140
echo Text::sprintf('INSTL_SELECTED_INSTALL_LANGUAGE', $text);
141141
?>

0 commit comments

Comments
 (0)