Update jquery.uls from upstream
Updating to
31696b4074
Changes:
* Set maximum length of the search box to 40.
* Fix event object passing in language selection (Bug T189582).
* West Armenian localization.
* Credits update.
Change-Id: I1a5c70fea849a7e217b02cdf740ada0050a9f822
This commit is contained in:
@@ -8,6 +8,8 @@ contribution to the product:
|
|||||||
* Amir Aharoni
|
* Amir Aharoni
|
||||||
* Arun Ganesh
|
* Arun Ganesh
|
||||||
* Brandon Harris
|
* Brandon Harris
|
||||||
|
* Ed Sanders
|
||||||
|
* Kartik Mistry
|
||||||
* Niklas Laxström
|
* Niklas Laxström
|
||||||
* Pau Giner
|
* Pau Giner
|
||||||
* Santhosh Thottingal
|
* Santhosh Thottingal
|
||||||
|
|||||||
21
lib/jquery.uls/i18n/hyw.json
Normal file
21
lib/jquery.uls/i18n/hyw.json
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"@metadata": {
|
||||||
|
"authors": [
|
||||||
|
"Armeniki"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"uls-region-WW": "Համաշխարհային",
|
||||||
|
"uls-region-SP": "Յատուկ",
|
||||||
|
"uls-region-AM": "Ամերիկա",
|
||||||
|
"uls-region-AF": "Ափրիկէ",
|
||||||
|
"uls-region-EU": "Եւրոպա",
|
||||||
|
"uls-region-AS": "Ասիա",
|
||||||
|
"uls-region-ME": "Միջին Արեւելք",
|
||||||
|
"uls-region-PA": "Խաղաղական",
|
||||||
|
"uls-region-all": "Ամէն լեզուները",
|
||||||
|
"uls-no-results-found": "Հետեւանք չը գտնուեձաւ",
|
||||||
|
"uls-common-languages": "Թելադրուած լեզուներ",
|
||||||
|
"uls-no-results-suggestion-title": "Կարելի է ձեզ հետաքրքրական ըլլայ․",
|
||||||
|
"uls-search-help": "Կրնաք որոնել լեզուի անունով, տարերու անունով, լեզուի ISO-ի օրինագիրով կամ կրնաք նայիլ շրջանով:",
|
||||||
|
"uls-search-placeholder": "Որոնել լեզու մը"
|
||||||
|
}
|
||||||
@@ -34,6 +34,7 @@
|
|||||||
<input type="text" class="uls-filterinput uls-filtersuggestion"\
|
<input type="text" class="uls-filterinput uls-filtersuggestion"\
|
||||||
disabled="true" autocomplete="off">\
|
disabled="true" autocomplete="off">\
|
||||||
<input type="text" class="uls-filterinput uls-languagefilter"\
|
<input type="text" class="uls-filterinput uls-languagefilter"\
|
||||||
|
maxlength="40"\
|
||||||
data-clear="uls-languagefilter-clear"\
|
data-clear="uls-languagefilter-clear"\
|
||||||
data-suggestion="uls-filtersuggestion"\
|
data-suggestion="uls-filtersuggestion"\
|
||||||
placeholder="Search for a language" autocomplete="off">\
|
placeholder="Search for a language" autocomplete="off">\
|
||||||
@@ -287,11 +288,12 @@
|
|||||||
/**
|
/**
|
||||||
* On select handler for search results
|
* On select handler for search results
|
||||||
* @param {string} langCode
|
* @param {string} langCode
|
||||||
|
* @param {Object} event The jQuery click event
|
||||||
*/
|
*/
|
||||||
select: function ( langCode ) {
|
select: function ( langCode, event ) {
|
||||||
this.hide();
|
this.hide();
|
||||||
if ( this.options.onSelect ) {
|
if ( this.options.onSelect ) {
|
||||||
this.options.onSelect.call( this, langCode );
|
this.options.onSelect.call( this, langCode, event );
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -405,6 +407,8 @@
|
|||||||
// Used by LCD
|
// Used by LCD
|
||||||
languageDecorator: undefined,
|
languageDecorator: undefined,
|
||||||
// Used by LCD
|
// Used by LCD
|
||||||
|
noResultsTemplate: undefined,
|
||||||
|
// Used by LCD
|
||||||
itemsPerColumn: undefined,
|
itemsPerColumn: undefined,
|
||||||
// Used by LCD
|
// Used by LCD
|
||||||
groupByRegion: undefined,
|
groupByRegion: undefined,
|
||||||
|
|||||||
Reference in New Issue
Block a user