Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

"bootstrap-components-image-modal-source-button" : "Visit Source",

"bootstrap-components-carousel-slide-label" : "Slide $1",

"bootstrap-components-lua-error-no-component": "No component name provided for mw.bootstrap.parse.",
"bootstrap-components-lua-error-invalid-component": "Invalid component name passed to mw.bootstrap.parse: $1.",

Expand Down
1 change: 1 addition & 0 deletions i18n/qqq.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"bootstrap-components-tracking-category": "Tracking category for pages with calls to at least one bootstrap tag.\n\n{{Notranslate}}",
"bootstrap-components-close-element": "Text for the close button of various components.\n\n{{Identical|Close}}",
"bootstrap-components-image-modal-source-button": "Text on the button linking to the image source page.",
"bootstrap-components-carousel-slide-label": "Text for the accessibility label of a carousel indicator button.\n\nParameters:\n* $1 - slide number",
"bootstrap-components-lua-error-no-component": "Error message that indicates, that there was no component name provided to the lua parse function.",
"bootstrap-components-lua-error-invalid-component": "Error message that indicates, that there was an invalid component name provided to the lua parse function.\n\nParameters:\n* $1 - invalid component provided",
"bootstrap-components-badge-content-missing": "Error message that indicates, that the text is missing in a badge component. Please supply an input text after the double colon.",
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Carousel.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ private function generateIndicators( $num ) {
'data-bs-slide-to' => $i,
'class' => $class ?: false,
'aria-current' => $class ? 'true' : false,
'aria-label' => 'Slide ' . ( $i + 1 ),
'aria-label' => wfMessage( 'bootstrap-components-carousel-slide-label', $i + 1 )->inContentLanguage()->text(),
]
) . PHP_EOL;
$class = false;
Expand Down