Update jquery.uls from upstream

* Localisation updates for many languages.
* Don't cut-off language names vertically (by Volker Eckl).
* Fix eslint issues (by Kartik Mistry).

Updating to
d9fece1a15

Change-Id: I186fa19c91323a20d86c7881191022f48b2deb7f
This commit is contained in:
Amir Aharoni
2018-12-04 16:20:49 +02:00
parent 215145a95a
commit ec3241f5ea
18 changed files with 112 additions and 36 deletions

View File

@@ -41,7 +41,8 @@
* @cfg {number} [columns] Number of columns for languages. Default is 4.
* @cfg {Function} [languageDecorator] Callback function to be called when a language
* link is prepared - for custom decoration.
* @cfg {Function|string[]} [quickList] The languages to display as suggestions for quick selection.
* @cfg {Function|string[]} [quickList] The languages to display as suggestions for quick
* selection.
* @cfg {Function} [clickhandler] Callback when language is selected.
* @cfg {jQuery|Function} [noResultsTemplate]
*/
@@ -127,7 +128,8 @@
* Override the default region grouping setting.
* This is to allow LanguageFilter to disable grouping when displaying search results.
*
* @param {boolean|null} val True to force grouping, false to disable, null to undo override.
* @param {boolean|null} val True to force grouping, false to disable, null
* to undo override.
*/
setGroupByRegionOverride: function ( val ) {
this.groupByRegionOverride = val;
@@ -218,7 +220,7 @@
/**
* Adds given languages sorted into rows and columns into given element.
* @param {jQuery} $region Element to add language list.
* @param {array} languages List of language codes.
* @param {Array} languages List of language codes.
* @param {number} itemsPerColumn How many languages fit in a column.
* @param {number} columnsPerRow How many columns fit in a row.
*/
@@ -257,8 +259,8 @@
nextScript = $.uls.data.getScriptGroupOfLanguage( languages[ i + 1 ] );
lastItem = languagesCount - i === 1;
// Force column break if script changes and column has more than one row already,
// but only if grouping by region
// Force column break if script changes and column has more than one
// row already, but only if grouping by region
if ( i === 0 || !this.isGroupingByRegionEnabled() ) {
currentScript = $.uls.data.getScriptGroupOfLanguage( languages[ i ] );
} else if ( currentScript !== nextScript && items.length > 1 ) {