Add tooltip to the "more languages" action to provide better context

Bug: T135224
Change-Id: I3c5d909ff334182e25b48fd3917260087ee276ef
This commit is contained in:
Niklas Laxström
2016-05-18 15:05:21 +02:00
committed by Amire80
parent e2cf4e5255
commit 4ff7d5adf8
4 changed files with 5 additions and 1 deletions

View File

@@ -246,7 +246,8 @@
"mediawiki.ui.button"
],
"messages": [
"ext-uls-compact-link-count"
"ext-uls-compact-link-count",
"ext-uls-compact-link-info"
],
"localBasePath": "resources",
"remoteExtPath": "UniversalLanguageSelector/resources"

View File

@@ -61,6 +61,7 @@
"ext-uls-input-disable-notification-info-interlanguage": "You can enable the input tools at any time from the language settings next to the language list.",
"ext-uls-language-settings-applying": "Applying...",
"ext-uls-compact-link-count": "{{PLURAL:$1|One more|$1 more}}",
"ext-uls-compact-link-info": "All languages (initial selection from common choices by you and others)",
"apihelp-languagesearch-description": "Search for language names in any script.",
"apihelp-languagesearch-param-search": "Search string.",
"apihelp-languagesearch-param-typos": "Number of spelling mistakes allowed in the search string.",

View File

@@ -63,6 +63,7 @@
"ext-uls-input-disable-notification-info-interlanguage": "Notification bubble text when input methods are disabled, appears if the ULS is at interlanguage toolbar",
"ext-uls-language-settings-applying": "Label for apply settings button in language settings screen, while settings being saved. Please keep it short.",
"ext-uls-compact-link-count": "Message next to list of languages which indicates that there are more languages than the ones shown. Parameters:\n* $1 - number of languages\n{{Identical|More}}",
"ext-uls-compact-link-info": "Tooltip for a button that shows all available languages next to short list of relevant languages",
"apihelp-languagesearch-description": "{{doc-apihelp-description|languagesearch}}",
"apihelp-languagesearch-param-search": "{{doc-apihelp-param|languagesearch|search}}\n{{Identical|Search string}}",
"apihelp-languagesearch-param-typos": "{{doc-apihelp-param|languagesearch|typos}}",

View File

@@ -352,6 +352,7 @@
$trigger = $( '<button>' )
.addClass( 'mw-interlanguage-selector mw-ui-button' )
.prop( 'title', mw.msg( 'ext-uls-compact-link-info' ) )
.text( mw.msg(
'ext-uls-compact-link-count',
mw.language.convertNumber( this.listSize - this.compactSize )