mediawiki-skins-Vector/includes/templates/LanguageDropdown.mustache
NikG d39b5c958a Update language dropdown for pages not supported in other languages
Pages that are not supported in other languages should not display the
ULS when the language button is clicked. Instead, a simple message
explaining that the page contents are supported in other languages
should be displayed inside the dropdown. Additionally, the language
button should be modified for these non-content pages, to non include
any label and be quiet instead of progressive.

This patch implements these specifications by appropriately modifying
the mustache templates and the underlying skin classes.

Bug: T316559
Change-Id: I37d8e61a1287b31d1a304d2a955f532b9b8fa505
2023-01-06 16:40:36 +00:00

12 lines
371 B
Plaintext

{{! Use `.mw-portlet-lang` to target styles at this element}}
{{>Dropdown/Open}}
{{#is-language-selector-empty}}
<div class="mw-portlet-empty-language-selector-body">
{{msg-empty-language-selector-body}}
</div>
{{/is-language-selector-empty}}
{{^is-language-selector-empty}}
{{>MenuContents}}
{{/is-language-selector-empty}}
{{>Dropdown/Close}}