diff options
Diffstat (limited to 'MLEB/UniversalLanguageSelector/lib/jquery.uls/src')
5 files changed, 129 insertions, 35 deletions
diff --git a/MLEB/UniversalLanguageSelector/lib/jquery.uls/src/jquery.uls.core.js b/MLEB/UniversalLanguageSelector/lib/jquery.uls/src/jquery.uls.core.js index fcf489d6..af3abe86 100644 --- a/MLEB/UniversalLanguageSelector/lib/jquery.uls/src/jquery.uls.core.js +++ b/MLEB/UniversalLanguageSelector/lib/jquery.uls/src/jquery.uls.core.js @@ -13,9 +13,8 @@ * header is left intact. See files GPL-LICENSE and MIT-LICENSE for details. * * @file - * @ingroup Extensions - * @licence GNU General Public Licence 2.0 or later - * @licence MIT License + * @license GNU General Public Licence 2.0 or later + * @license MIT License */ ( function ( $ ) { @@ -47,6 +46,7 @@ /** * ULS Public class definition + * * @param {Element} element * @param {Object} options */ @@ -112,6 +112,7 @@ /** * Calculate the position of ULS * Returns an object with top and left properties. + * * @return {Object} */ position: function () { @@ -292,6 +293,7 @@ /** * On select handler for search results + * * @param {string} langCode * @param {Object} event The jQuery click event */ @@ -304,6 +306,7 @@ /** * On cancel handler for the uls menu + * * @param {Event} e */ cancel: function ( e ) { @@ -337,6 +340,7 @@ /** * Get the panel menu width parameter + * * @return {string} */ getMenuWidth: function () { diff --git a/MLEB/UniversalLanguageSelector/lib/jquery.uls/src/jquery.uls.data.js b/MLEB/UniversalLanguageSelector/lib/jquery.uls/src/jquery.uls.data.js index 43899aaf..f89d9f82 100644 --- a/MLEB/UniversalLanguageSelector/lib/jquery.uls/src/jquery.uls.data.js +++ b/MLEB/UniversalLanguageSelector/lib/jquery.uls/src/jquery.uls.data.js @@ -98,6 +98,23 @@ ], "अहिराणी" ], + "ajp": [ + "Arab", + [ + "ME" + ], + "شامي" + ], + "ajp-arab": [ + "ajp" + ], + "ajp-latn": [ + "Latn", + [ + "ME" + ], + "šāmi" + ], "ak": [ "Latn", [ @@ -514,6 +531,13 @@ ], "ItNuxalkmc" ], + "blk": [ + "Mymr", + [ + "AS" + ], + "ပအိုဝ်ႏဘာႏသာႏ" + ], "bm": [ "Latn", [ @@ -1454,7 +1478,7 @@ [ "AF" ], - "Gurenɛ" + "farefare" ], "guw": [ "Latn", @@ -1470,22 +1494,22 @@ ], "Gaelg" ], - "ha-arab": [ - "Arab", + "ha": [ + "Latn", [ "AF" ], - "هَوُسَ" + "Hausa" ], - "ha-latn": [ - "Latn", + "ha-arab": [ + "Arab", [ "AF" ], - "Hausa" + "هَوُسَ" ], - "ha": [ - "ha-latn" + "ha-latn": [ + "ha" ], "hai": [ "Latn", @@ -1665,7 +1689,8 @@ "id": [ "Latn", [ - "AS" + "AS", + "PA" ], "Bahasa Indonesia" ], @@ -1884,7 +1909,7 @@ [ "AF" ], - "Kabuverdianu" + "kabuverdianu" ], "kg": [ "Latn", @@ -2277,7 +2302,7 @@ [ "EU" ], - "lumbaart" + "lombard" ], "ln": [ "Latn", @@ -2986,6 +3011,13 @@ ], "Picard" ], + "pcm": [ + "Latn", + [ + "AF" + ], + "Naijá" + ], "pdc": [ "Latn", [ @@ -3129,6 +3161,13 @@ ], "português" ], + "pwn": [ + "Latn", + [ + "AS" + ], + "pinayuanan" + ], "qu": [ "Latn", [ @@ -3160,6 +3199,7 @@ "rap": [ "Latn", [ + "PA", "AM" ], "arero rapa nui" @@ -3568,6 +3608,13 @@ "skr": [ "skr-arab" ], + "srq": [ + "Latn", + [ + "AM" + ], + "mbia cheë" + ], "syc": [ "Syrc", [ @@ -4141,6 +4188,13 @@ ], "Mainfränkisch" ], + "vmw": [ + "Latn", + [ + "AF" + ], + "emakhuwa" + ], "vo": [ "Latn", [ @@ -4301,7 +4355,9 @@ "zh": [ "Hans", [ - "AS" + "AS", + "PA", + "AM" ], "中文" ], @@ -4318,14 +4374,18 @@ "zh-hans": [ "Hans", [ - "AS" + "AS", + "PA", + "AM" ], "中文(简体)" ], "zh-hant": [ "Hant", [ - "AS" + "AS", + "PA", + "AM" ], "中文(繁體)" ], @@ -4592,6 +4652,7 @@ "bn", "en", "syl", + "rhg", "ccp", "my", "mni" @@ -4750,7 +4811,7 @@ "ar", "ksf", "ha-arab", - "ha-latn" + "ha" ], "CN": [ "zh", @@ -4778,7 +4839,8 @@ ], "CO": [ "es", - "guc" + "guc", + "yrl" ], "CR": [ "es" @@ -5016,7 +5078,7 @@ "ee", "gur", "gaa", - "ha-latn", + "ha", "ff" ], "GI": [ @@ -5422,6 +5484,7 @@ "my", "shn", "kac", + "rhg", "mnw" ], "MN": [ @@ -5497,6 +5560,7 @@ ], "MZ": [ "pt", + "vmw", "ts", "ny", "sw", @@ -5515,7 +5579,7 @@ "fr" ], "NE": [ - "ha-latn", + "ha", "fr", "ar", "ff" @@ -5525,7 +5589,8 @@ ], "NG": [ "en", - "ha-latn", + "pcm", + "ha", "ig", "yo", "ha-arab", @@ -5768,7 +5833,7 @@ "ar", "en", "ha-arab", - "ha-latn" + "ha" ], "SE": [ "sv", @@ -6027,7 +6092,8 @@ "en" ], "VE": [ - "es" + "es", + "yrl" ], "VG": [ "en" diff --git a/MLEB/UniversalLanguageSelector/lib/jquery.uls/src/jquery.uls.data.utils.js b/MLEB/UniversalLanguageSelector/lib/jquery.uls/src/jquery.uls.data.utils.js index 0ddc407d..9c34f9b9 100644 --- a/MLEB/UniversalLanguageSelector/lib/jquery.uls/src/jquery.uls.data.utils.js +++ b/MLEB/UniversalLanguageSelector/lib/jquery.uls/src/jquery.uls.data.utils.js @@ -12,9 +12,8 @@ * header is left intact. See files GPL-LICENSE and MIT-LICENSE for details. * * @file - * @ingroup Extensions - * @licence GNU General Public Licence 2.0 or later - * @licence MIT License + * @license GNU General Public Licence 2.0 or later + * @license MIT License */ ( function ( $ ) { @@ -22,6 +21,7 @@ /** * Is this language a redirect to another language? + * * @param {string} language Language code * @return {string|boolean} Target language code if it's a redirect or false if it's not */ @@ -33,6 +33,7 @@ /** * Returns the script of the language. + * * @param {string} language Language code * @return {string} */ @@ -53,6 +54,7 @@ /** * Returns the regions in which a language is spoken. + * * @param {string} language Language code * @return {string|string[]} */ @@ -68,6 +70,7 @@ /** * Returns the autonym of the language. + * * @param {string} language Language code * @return {string} */ @@ -84,6 +87,7 @@ /** * Returns all language codes and corresponding autonyms + * * @return {string[]} */ $.uls.data.getAutonyms = function () { @@ -103,6 +107,7 @@ /** * Returns all languages written in script. + * * @param {string} script string * @return {string[]} languages codes */ @@ -112,6 +117,7 @@ /** * Returns all languages written in the given scripts. + * * @param {string[]} scripts * @return {string[]} languages codes */ @@ -138,6 +144,7 @@ /** * Returns an associative array of languages in a region, * grouped by script group. + * * @param {string} region Region code * @return {Object} */ @@ -147,6 +154,7 @@ /** * Get the given list of languages grouped by script. + * * @param {string[]} languages Array of language codes to group * @return {string[]} Array of language codes */ @@ -169,6 +177,7 @@ /** * Returns an associative array of languages in several regions, * grouped by script group. + * * @param {string[]} regions region codes * @return {Object} */ @@ -201,6 +210,7 @@ /** * Returns the script group of a script or 'Other' if it doesn't * belong to any group. + * * @param {string} script Script code * @return {string} script group name */ @@ -218,6 +228,7 @@ /** * Returns the script group of a language. + * * @param {string} language Language code * @return {string} script group name */ @@ -227,6 +238,7 @@ /** * Return the list of languages sorted by script groups. + * * @param {string[]} languages Array of language codes to sort * @return {string[]} Array of language codes */ @@ -247,6 +259,7 @@ /** * A callback for sorting languages by autonym. * Can be used as an argument to a sort function. + * * @param {string} a Language code * @param {string} b Language code * @return {number} @@ -260,6 +273,7 @@ /** * Check if a language is right-to-left. + * * @param {string} language Language code * @return {boolean} */ @@ -269,6 +283,7 @@ /** * Return the direction of the language + * * @param {string} language Language code * @return {string} */ @@ -278,6 +293,7 @@ /** * Returns the languages spoken in a territory. + * * @param {string} territory Territory code * @return {string[]} list of language codes */ diff --git a/MLEB/UniversalLanguageSelector/lib/jquery.uls/src/jquery.uls.languagefilter.js b/MLEB/UniversalLanguageSelector/lib/jquery.uls/src/jquery.uls.languagefilter.js index 8a2de4ab..6cbfebd6 100644 --- a/MLEB/UniversalLanguageSelector/lib/jquery.uls/src/jquery.uls.languagefilter.js +++ b/MLEB/UniversalLanguageSelector/lib/jquery.uls/src/jquery.uls.languagefilter.js @@ -12,9 +12,8 @@ * header is left intact. See files GPL-LICENSE and MIT-LICENSE for details. * * @file - * @ingroup Extensions - * @licence GNU General Public Licence 2.0 or later - * @licence MIT License + * @license GNU General Public Licence 2.0 or later + * @license MIT License */ /** @@ -224,6 +223,7 @@ /** * Handler method to be called once search is over. * Based on search result triggers resultsfound or noresults events + * * @param {string} query * @param {string[]} results * @param {string} [autofillLabel] @@ -306,6 +306,7 @@ * b) Language autonym 'starts with' search string. * c) ISO 639 code match with search string. * d) ISO 15924 code for the script match the search string. + * * @param {string} langCode * @param {string} searchTerm * @return {boolean} diff --git a/MLEB/UniversalLanguageSelector/lib/jquery.uls/src/jquery.uls.lcd.js b/MLEB/UniversalLanguageSelector/lib/jquery.uls/src/jquery.uls.lcd.js index 8462fa5d..7b542137 100644 --- a/MLEB/UniversalLanguageSelector/lib/jquery.uls/src/jquery.uls.lcd.js +++ b/MLEB/UniversalLanguageSelector/lib/jquery.uls/src/jquery.uls.lcd.js @@ -14,9 +14,8 @@ * header is left intact. See files GPL-LICENSE and MIT-LICENSE for details. * * @file - * @ingroup Extensions - * @licence GNU General Public Licence 2.0 or later - * @licence MIT License + * @license GNU General Public Licence 2.0 or later + * @license MIT License */ ( function ( $ ) { @@ -32,6 +31,7 @@ /** * Language category display + * * @param {Element} element The container element to which the languages to be displayed * @param {Object} [options] Configuration object * @cfg {Object} [languages] Selectable languages. Keyed by language code, values are autonyms. @@ -69,6 +69,7 @@ /** * Adds language to the language list. + * * @param {string} langCode * @param {string} [regionCode] * @return {boolean} Whether the language was known and accepted @@ -97,7 +98,9 @@ } for ( i = 0; i < regions.length; i++ ) { - this.regionLanguages[ regions[ i ] ].push( langCode ); + if ( this.regionLanguages[ regions[ i ] ] ) { + this.regionLanguages[ regions[ i ] ].push( langCode ); + } } // Work around the bad interface, delay rendering until we have got @@ -112,6 +115,7 @@ /** * Whether we should render languages grouped to geographic regions. + * * @return {boolean} */ isGroupingByRegionEnabled: function () { @@ -219,6 +223,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 {number} itemsPerColumn How many languages fit in a column. @@ -286,6 +291,7 @@ /** * Creates dom node representing one item in language list. + * * @param {string} code Language code * @return {Element} */ @@ -387,6 +393,7 @@ /** * No-results event handler + * * @param {Event} event * @param {Object} data Information about the failed search query */ |