Update jquery.uls and jquery.ime from upstream

jquery.uls:
* Make "ha" the primary code for Hausa (should address Bug T279269).
* Localisation updates: ms-arab, ce, fur.
* Minor whitespace fixes for eslint.
Updating to
9b879ca89b

jquery.ime:
* Minor whitespace and escaping fixes for eslint.
Updating to
1fd57c64b9

Bug: T279269
Change-Id: I46aeb0a8397ebd9dc8a5d68a9e92368d8156ae2d
This commit is contained in:
Amir Aharoni
2021-05-24 10:48:32 +03:00
committed by jenkins-bot
parent 53c076a736
commit 7c6a6b528b
77 changed files with 1294 additions and 1236 deletions

View File

@@ -1,4 +1,4 @@
/*! jquery.ime - v0.2.0+20210414 /*! jquery.ime - v0.2.0+20210524
* https://github.com/wikimedia/jquery.ime * https://github.com/wikimedia/jquery.ime
* Copyright (c) 2021 Santhosh Thottingal; License: (GPL-2.0-or-later OR MIT) */ * Copyright (c) 2021 Santhosh Thottingal; License: (GPL-2.0-or-later OR MIT) */
( function ( $ ) { ( function ( $ ) {
@@ -607,7 +607,10 @@
/** /**
* @inheritdoc SelectionWrapper * @inheritdoc SelectionWrapper
*/ */
ContentEditableEntry.prototype.replaceTextAtSelection = function ( precedingCharCount, newText ) { ContentEditableEntry.prototype.replaceTextAtSelection = function (
precedingCharCount,
newText
) {
var textNode, textOffset, newOffset, newRange, var textNode, textOffset, newOffset, newRange,
sel = window.getSelection(), sel = window.getSelection(),
range = this.getSelectedRange(); range = this.getSelectedRange();
@@ -1092,7 +1095,8 @@
this.selectIM( previousInputMethods[ 0 ] ); this.selectIM( previousInputMethods[ 0 ] );
} else { } else {
// Provide the default input method in this case. // Provide the default input method in this case.
firstInputmethod = $.ime.languages[ languageCode ].inputmethods[ 0 ]; firstInputmethod =
$.ime.languages[ languageCode ].inputmethods[ 0 ];
this.selectIM( firstInputmethod ); this.selectIM( firstInputmethod );
} }
} }
@@ -1423,7 +1427,9 @@
); );
if ( imeSelector.options.helpHandler ) { if ( imeSelector.options.helpHandler ) {
$inputMethod.append( imeSelector.options.helpHandler.call( imeSelector, inputmethod ) ); $inputMethod.append(
imeSelector.options.helpHandler.call( imeSelector, inputmethod )
);
} }
$imeList.append( $inputMethod ); $imeList.append( $inputMethod );
@@ -1600,7 +1606,8 @@
// Add to the previous languages, // Add to the previous languages,
if ( inputMethod !== 'system' ) { if ( inputMethod !== 'system' ) {
this.registry.previousInputMethods.unshift( inputMethod ); this.registry.previousInputMethods.unshift( inputMethod );
this.registry.previousInputMethods = this.registry.previousInputMethods.slice( 0, 5 ); this.registry.previousInputMethods =
this.registry.previousInputMethods.slice( 0, 5 );
} }
}, },

View File

@@ -38,7 +38,7 @@
[ 'P', 'ঝ' ], [ 'P', 'ঝ' ],
[ '\\}', 'ঞ' ], [ '\\}', 'ঞ' ],
[ '\'', 'ট' ], [ '\'', 'ট' ],
[ '\"', 'ঠ' ], [ '"', 'ঠ' ],
[ '\\[', 'ড' ], [ '\\[', 'ড' ],
[ '\\{', 'ঢ' ], [ '\\{', 'ঢ' ],
[ 'C', 'ণ' ], [ 'C', 'ণ' ],

View File

@@ -30,7 +30,7 @@
[ '\\(', '(' ], [ '\\(', '(' ],
[ '\\)', ')' ], [ '\\)', ')' ],
[ '0', '' ], [ '0', '' ],
[ '\"', 'ঠ' ], [ '"', 'ঠ' ],
[ '\'', 'ট' ], [ '\'', 'ট' ],
[ ',', ',' ], [ ',', ',' ],
[ '-', '-' ], [ '-', '-' ],

View File

@@ -1,7 +1,7 @@
( function ( $ ) { ( function ( $ ) {
'use strict'; 'use strict';
var azb_kbd = { var azbKbd = {
id: 'azb-kbd', id: 'azb-kbd',
name: 'تۆرکجه', name: 'تۆرکجه',
description: 'South Azerbaijani Keyboard Layout', description: 'South Azerbaijani Keyboard Layout',
@@ -104,5 +104,5 @@
] ]
}; };
$.ime.register( azb_kbd ); $.ime.register( azbKbd );
}( jQuery ) ); }( jQuery ) );

View File

@@ -47,7 +47,7 @@
[ '\\.', 'ю' ], [ '\\.', 'ю' ],
[ '/', '.' ], [ '/', '.' ],
[ '\\!', '!' ], [ '\\!', '!' ],
[ '\\@', '\"' ], [ '\\@', '"' ],
[ '\\#', '№' ], [ '\\#', '№' ],
[ '\\$', ';' ], [ '\\$', ';' ],
[ '\\%', '%' ], [ '\\%', '%' ],
@@ -81,7 +81,7 @@
[ 'K', 'Л' ], [ 'K', 'Л' ],
[ 'L', 'Д' ], [ 'L', 'Д' ],
[ ':', 'Ж' ], [ ':', 'Ж' ],
[ '\"', 'Э' ], [ '"', 'Э' ],
[ '\\|', '|' ], [ '\\|', '|' ],
[ 'Z', 'Я' ], [ 'Z', 'Я' ],
[ 'X', 'Ч' ], [ 'X', 'Ч' ],

View File

@@ -1,7 +1,7 @@
( function ( $ ) { ( function ( $ ) {
'use strict'; 'use strict';
var bgn_kbd = { var bgnKbd = {
id: 'bgn-kbd', id: 'bgn-kbd',
name: 'روچ کپتین بلوچی', name: 'روچ کپتین بلوچی',
description: 'Western Baluchi Keyboard Layout', description: 'Western Baluchi Keyboard Layout',
@@ -104,5 +104,5 @@
] ]
}; };
$.ime.register( bgn_kbd ); $.ime.register( bgnKbd );
}( jQuery ) ); }( jQuery ) );

View File

@@ -38,7 +38,7 @@
[ 'P', 'ঝ' ], [ 'P', 'ঝ' ],
[ '\\}', 'ঞ' ], [ '\\}', 'ঞ' ],
[ '\'', 'ট' ], [ '\'', 'ট' ],
[ '\"', 'ঠ' ], [ '"', 'ঠ' ],
[ '\\[', 'ড' ], [ '\\[', 'ড' ],
[ '\\{', 'ঢ' ], [ '\\{', 'ঢ' ],
[ 'C', 'ণ' ], [ 'C', 'ণ' ],

View File

@@ -30,7 +30,7 @@
[ '\\(', '(' ], [ '\\(', '(' ],
[ '\\)', ')' ], [ '\\)', ')' ],
[ '0', '' ], [ '0', '' ],
[ '\"', 'ঠ' ], [ '"', 'ঠ' ],
[ '\'', 'ট' ], [ '\'', 'ট' ],
[ ',', ',' ], [ ',', ',' ],
[ '-', '-' ], [ '-', '-' ],

View File

@@ -71,7 +71,7 @@
[ 'l', 'त' ], [ 'l', 'त' ],
[ ':', 'छ' ], [ ':', 'छ' ],
[ ';', 'च' ], [ ';', 'च' ],
[ '\"', 'ठ' ], [ '"', 'ठ' ],
[ '\'', 'ट' ], [ '\'', 'ट' ],
[ 'z', 'ʼ' ], [ 'z', 'ʼ' ],
[ 'X', 'ँ' ], [ 'X', 'ँ' ],

View File

@@ -70,7 +70,7 @@
[ 'Y', 'إ' ], [ 'Y', 'إ' ],
[ 'U', 'ۊ' ], [ 'U', 'ۊ' ],
[ 'I', '\'' ], [ 'I', '\'' ],
[ 'O', '\"' ], [ 'O', '"' ],
[ 'P', '؛' ], [ 'P', '؛' ],
[ '\\{', '>' ], [ '\\{', '>' ],
[ '\\}', '<' ], [ '\\}', '<' ],
@@ -84,7 +84,7 @@
[ 'J', 'ـ' ], [ 'J', 'ـ' ],
[ 'K', '،' ], [ 'K', '،' ],
[ 'L', '\\' ], [ 'L', '\\' ],
[ '\"', 'ط' ], [ '"', 'ط' ],
[ 'Z', 'ڎ' ], [ 'Z', 'ڎ' ],
[ 'X', 'وو' ], [ 'X', 'وو' ],

View File

@@ -1,7 +1,8 @@
// This Chuvash keyboard is a stripped version of latin Mercen // This Chuvash keyboard is a stripped version of latin Mercen
// https://sites.google.com/site/mercen77/ // https://sites.google.com/site/mercen77/
// http://cvlat.blogspot.com // http://cvlat.blogspot.com
// only Chuvash diacritics are used, no additional letters for Turkish or dead keys implemented (for now?) // Only Chuvash diacritics are used, no additional letters
// for Turkish or dead keys implemented (for now?)
( function ( $ ) { ( function ( $ ) {
'use strict'; 'use strict';

View File

@@ -71,7 +71,7 @@
[ 'l', 'त' ], [ 'l', 'त' ],
[ ':', 'छ' ], [ ':', 'छ' ],
[ ';', 'च' ], [ ';', 'च' ],
[ '\"', 'ठ' ], [ '"', 'ठ' ],
[ '\'', 'ट' ], [ '\'', 'ट' ],
[ 'z', 'ʼ' ], [ 'z', 'ʼ' ],
[ 'X', 'ँ' ], [ 'X', 'ँ' ],

View File

@@ -73,7 +73,7 @@
[ 'l', 'ત' ], [ 'l', 'ત' ],
[ ':', 'છ' ], [ ':', 'છ' ],
[ ';', 'ચ' ], [ ';', 'ચ' ],
[ '\"', 'ઠ' ], [ '"', 'ઠ' ],
[ '\\\'', 'ટ' ], [ '\\\'', 'ટ' ],
[ '\\|', 'ઑ' ], [ '\\|', 'ઑ' ],
[ '\\', 'ૉ' ], [ '\\', 'ૉ' ],

View File

@@ -10,7 +10,9 @@
author: 'Amir E. Aharoni (אָמִיר אֱלִישָׁע אַהֲרוֹנִי, [[User:Amire80]])', author: 'Amir E. Aharoni (אָמִיר אֱלִישָׁע אַהֲרוֹנִי, [[User:Amire80]])',
license: 'GPLv3', license: 'GPLv3',
version: '1.0', version: '1.0',
patterns: [], // Empty, because the assumption is that the user is using a Hebrew keyboard already // Empty, because the assumption is that
// the user is using a Hebrew keyboard already
patterns: [],
patterns_x: [ patterns_x: [
[ '\u05E9', 'ְ' ], // Sheva, ש [ '\u05E9', 'ְ' ], // Sheva, ש

View File

@@ -73,7 +73,7 @@
[ 'l', 'त' ], [ 'l', 'त' ],
[ ':', 'छ' ], [ ':', 'छ' ],
[ ';', 'च' ], [ ';', 'च' ],
[ '\"', 'ठ' ], [ '"', 'ठ' ],
[ '\'', 'ट' ], [ '\'', 'ट' ],
[ '\\|', 'ऑ' ], [ '\\|', 'ऑ' ],
[ '\\\\', 'ॉ' ], [ '\\\\', 'ॉ' ],

View File

@@ -23,7 +23,7 @@
[ '¨O', 'Ö' ], [ '¨O', 'Ö' ],
[ '¨u', 'ü' ], [ '¨u', 'ü' ],
[ '¨U', 'Ü' ], [ '¨U', 'Ü' ],
[ '\\@', '\"' ], [ '\\@', '"' ],
[ '\\^', '&' ], [ '\\^', '&' ],
[ '\\&', '/' ], [ '\\&', '/' ],
[ '\\*', '(' ], [ '\\*', '(' ],
@@ -44,7 +44,7 @@
[ ';', 'č' ], [ ';', 'č' ],
[ ':', 'Č' ], [ ':', 'Č' ],
[ '\'', 'ć' ], [ '\'', 'ć' ],
[ '\"', 'Ć' ], [ '"', 'Ć' ],
[ '\\\\', 'ž' ], [ '\\\\', 'ž' ],
[ '\\|', 'Ž' ], [ '\\|', 'Ž' ],
[ 'z', 'y' ], [ 'z', 'y' ],

View File

@@ -98,7 +98,7 @@
[ ';', 'թ' ], [ ';', 'թ' ],
[ ':', 'Թ' ], [ ':', 'Թ' ],
[ '\'', 'փ' ], [ '\'', 'փ' ],
[ '\"', 'Փ' ], [ '"', 'Փ' ],
[ 'z', 'զ' ], [ 'z', 'զ' ],
[ 'Z', 'Զ' ], [ 'Z', 'Զ' ],
[ 'x', 'ց' ], [ 'x', 'ց' ],
@@ -156,7 +156,7 @@
[ ';', ';' ], [ ';', ';' ],
[ '\\:', ':' ], [ '\\:', ':' ],
[ '\'', '\'' ], [ '\'', '\'' ],
[ '\"', '\"' ], [ '"', '"' ],
[ '\\<', '<' ], [ '\\<', '<' ],
[ '\\.', '.' ], [ '\\.', '.' ],
[ '\\>', '>' ], [ '\\>', '>' ],

View File

@@ -102,7 +102,7 @@
[ ';', ';' ], [ ';', ';' ],
[ ':', '։' ], [ ':', '։' ],
[ '\'', '՛' ], [ '\'', '՛' ],
[ '\"', '"' ], [ '"', '"' ],
[ 'z', 'զ' ], [ 'z', 'զ' ],
[ 'Z', 'Զ' ], [ 'Z', 'Զ' ],
[ 'x', 'ղ' ], [ 'x', 'ղ' ],
@@ -160,7 +160,7 @@
[ ';', ';' ], [ ';', ';' ],
[ '\\:', ':' ], [ '\\:', ':' ],
[ '\'', '\'' ], [ '\'', '\'' ],
[ '\"', '\"' ], [ '"', '"' ],
[ '\\<', '<' ], [ '\\<', '<' ],
[ '\\.', '.' ], [ '\\.', '.' ],
[ '\\>', '>' ], [ '\\>', '>' ],

View File

@@ -100,7 +100,7 @@
[ ';', ';' ], [ ';', ';' ],
[ ':', '։' ], [ ':', '։' ],
[ '\'', '՛' ], [ '\'', '՛' ],
[ '\"', '"' ], [ '"', '"' ],
[ 'z', 'զ' ], [ 'z', 'զ' ],
[ 'Z', 'Զ' ], [ 'Z', 'Զ' ],
[ 'x', 'ղ' ], [ 'x', 'ղ' ],
@@ -158,7 +158,7 @@
[ ';', ';' ], [ ';', ';' ],
[ '\\:', ':' ], [ '\\:', ':' ],
[ '\'', '\'' ], [ '\'', '\'' ],
[ '\"', '\"' ], [ '"', '"' ],
[ '\\<', '<' ], [ '\\<', '<' ],
[ '\\.', '.' ], [ '\\.', '.' ],
[ '\\>', '>' ], [ '\\>', '>' ],

View File

@@ -97,7 +97,7 @@
[ ';', 'պ' ], [ ';', 'պ' ],
[ ':', 'Պ' ], [ ':', 'Պ' ],
[ '\'', 'ր' ], [ '\'', 'ր' ],
[ '\"', 'Ր' ], [ '"', 'Ր' ],
[ 'z', 'ժ' ], [ 'z', 'ժ' ],
[ 'Z', 'Ժ' ], [ 'Z', 'Ժ' ],
[ 'x', 'դ' ], [ 'x', 'դ' ],
@@ -155,7 +155,7 @@
[ ';', ';' ], [ ';', ';' ],
[ '\\:', ':' ], [ '\\:', ':' ],
[ '\'', '\'' ], [ '\'', '\'' ],
[ '\"', '\"' ], [ '"', '"' ],
[ '\\<', '<' ], [ '\\<', '<' ],
[ '\\.', '.' ], [ '\\.', '.' ],
[ '\\>', '>' ], [ '\\>', '>' ],

View File

@@ -98,7 +98,7 @@
[ ';', 'թ' ], [ ';', 'թ' ],
[ ':', 'Թ' ], [ ':', 'Թ' ],
[ '\'', 'փ' ], [ '\'', 'փ' ],
[ '\"', 'Փ' ], [ '"', 'Փ' ],
[ 'z', 'զ' ], [ 'z', 'զ' ],
[ 'Z', 'Զ' ], [ 'Z', 'Զ' ],
[ 'x', 'ց' ], [ 'x', 'ց' ],
@@ -156,7 +156,7 @@
[ ';', ';' ], [ ';', ';' ],
[ '\\:', ':' ], [ '\\:', ':' ],
[ '\'', '\'' ], [ '\'', '\'' ],
[ '\"', '\"' ], [ '"', '"' ],
[ '\\<', '<' ], [ '\\<', '<' ],
[ '\\.', '.' ], [ '\\.', '.' ],
[ '\\>', '>' ], [ '\\>', '>' ],

View File

@@ -13,7 +13,7 @@
patterns: [ patterns: [
[ '`', '(' ], [ '`', '(' ],
[ '\\~', ')' ], [ '\\~', ')' ],
[ '1', '\"' ], [ '1', '"' ],
[ '2', 'ә' ], [ '2', 'ә' ],
[ '\\@', 'Ә' ], [ '\\@', 'Ә' ],
[ '3', 'і' ], [ '3', 'і' ],
@@ -81,7 +81,7 @@
[ ';', 'ж' ], [ ';', 'ж' ],
[ ':', 'Ж' ], [ ':', 'Ж' ],
[ '\'', 'э' ], [ '\'', 'э' ],
[ '\"', 'Э' ], [ '"', 'Э' ],
[ 'z', 'я' ], [ 'z', 'я' ],
[ 'Z', 'Я' ], [ 'Z', 'Я' ],
[ 'x', 'ч' ], [ 'x', 'ч' ],

View File

@@ -27,7 +27,8 @@
], ],
patterns: [ patterns: [
// NOTE: Contextual rules must appear before rules // NOTE:
// Contextual rules must appear before rules
// without context to avoid collisions. // without context to avoid collisions.
// Make sure contextLength is large enough for // Make sure contextLength is large enough for
// these rules. // these rules.
@@ -54,12 +55,12 @@
// Unicode 4.0: normalize consonant shifter before // Unicode 4.0: normalize consonant shifter before
// subscript consonants and their optional following // subscript consonants and their optional following
// robats: (SR?)+Z?C -> Z?C(SR?)+ // robats: (SR?)+Z?C -> Z?C(SR?)+
/* XXX: Not compatible with Unicode 3.0, which places // XXX:
consonant shifters after subscript consonants. // Not compatible with Unicode 3.0, which places
Make sure maxKeyLength is large enough for this rule. // consonant shifters after subscript consonants.
[ '((?:\u17d2.\u17cc?)+)((:?\u200c|\u200d)?)/', '$2\u17ca$1' ], // ៊ // Make sure maxKeyLength is large enough for this rule.
[ '((?:\u17d2.\u17cc?)+)((:?\u200c|\u200d)?)\"', '$2\u17c9$1' ], // ​៉ // [ '((?:\u17d2.\u17cc?)+)((:?\u200c|\u200d)?)/', '$2\u17ca$1' ], //
*/ // [ '((?:\u17d2.\u17cc?)+)((:?\u200c|\u200d)?)"', '$2\u17c9$1' ], // ​៉
// consonants // consonants
[ 'q', 'ឆ' ], [ 'q', 'ឆ' ],
@@ -130,7 +131,7 @@
[ ',', '\u17bb\u17c6' ], // ​ុា [ ',', '\u17bb\u17c6' ], // ​ុា
[ '/', '\u17ca' ], // ​៊ [ '/', '\u17ca' ], // ​៊
[ ':', '\u17c4\u17c7' ], // ​ោះ [ ':', '\u17c4\u17c7' ], // ​ោះ
[ '\"', '\u17c9' ], // ​៉ [ '"', '\u17c9' ], // ​៉
[ '<', '\u17bb\u17c7' ], // ​ុះ [ '<', '\u17bb\u17c7' ], // ​ុះ
[ '\\^', '\u17cd' ], // ​៍ [ '\\^', '\u17cd' ], // ​៍
[ '&', '\u17d0' ], // ​័ [ '&', '\u17d0' ], // ​័
@@ -160,7 +161,7 @@
[ '~', '»' ], [ '~', '»' ],
[ '\\!', '!' ], [ '\\!', '!' ],
[ '@', 'ៗ' ], [ '@', 'ៗ' ],
[ '#', '\"' ], [ '#', '"' ],
[ '\\$', '៛' ], [ '\\$', '៛' ],
[ '%', '%' ], [ '%', '%' ],
[ '\\(', '(' ], [ '\\(', '(' ],
@@ -252,7 +253,7 @@
[ 'K', '᧳' ], // shift-k [ 'K', '᧳' ], // shift-k
[ 'L', '᧴' ], // shift-l [ 'L', '᧴' ], // shift-l
[ ':', '᧵' ], // shift-; [ ':', '᧵' ], // shift-;
[ '\"', '᧶' ], // shift-' [ '"', '᧶' ], // shift-'
[ 'Z', '᧷' ], // shift-z [ 'Z', '᧷' ], // shift-z
[ 'X', '᧸' ], // shift-x [ 'X', '᧸' ], // shift-x
[ 'C', '᧹' ], // shift-c [ 'C', '᧹' ], // shift-c

View File

@@ -79,7 +79,7 @@
[ 'l', 'त' ], [ 'l', 'त' ],
[ ':', 'छ' ], [ ':', 'छ' ],
[ ';', 'च' ], [ ';', 'च' ],
[ '\"', 'ठ' ], [ '"', 'ठ' ],
[ '\'', 'ट' ], [ '\'', 'ट' ],
[ '\\|', 'ऑ' ], [ '\\|', 'ऑ' ],
[ '\\\\', 'ॉ' ], [ '\\\\', 'ॉ' ],

View File

@@ -75,7 +75,7 @@
[ 'l', 'ل' ], [ 'l', 'ل' ],
[ ':', ':' ], [ ':', ':' ],
[ ';', '؛' ], [ ';', '؛' ],
[ '\"', '\"' ], [ '"', '"' ],
[ '\'', 'ٰ' ], [ '\'', 'ٰ' ],
[ '\\|', 'أ' ], [ '\\|', 'أ' ],
[ '\\\\', '؎' ], [ '\\\\', '؎' ],

View File

@@ -12,7 +12,7 @@
version: '1.0', version: '1.0',
patterns: [ patterns: [
[ '\\!', '1' ], [ '\\!', '1' ],
[ '\"', '=' ], [ '"', '=' ],
[ '\\#', '3' ], [ '\\#', '3' ],
[ '\\$', '4' ], [ '\\$', '4' ],
[ '\\&', '5' ], [ '\\&', '5' ],
@@ -68,7 +68,7 @@
[ 'W', '0' ], [ 'W', '0' ],
[ 'X', '(' ], [ 'X', '(' ],
[ 'Y', 'ິ' ], [ 'Y', 'ິ' ],
[ 'Z', '\"' ], [ 'Z', '"' ],
[ '\\[', 'ບ' ], [ '\\[', 'ບ' ],
[ '\\]', 'ລ' ], [ '\\]', 'ລ' ],
[ '\\^', 'ຼ' ], [ '\\^', 'ຼ' ],

View File

@@ -1,7 +1,7 @@
( function ( $ ) { ( function ( $ ) {
'use strict'; 'use strict';
var lrc_kbd = { var lrcKbd = {
id: 'lrc-kbd', id: 'lrc-kbd',
name: 'لۊری شومالی', name: 'لۊری شومالی',
description: 'Northern Luri Keyboard Layout', description: 'Northern Luri Keyboard Layout',
@@ -104,5 +104,5 @@
] ]
}; };
$.ime.register( lrc_kbd ); $.ime.register( lrcKbd );
}( jQuery ) ); }( jQuery ) );

View File

@@ -30,7 +30,7 @@
[ '\\(', '(' ], [ '\\(', '(' ],
[ '\\)', ')' ], [ '\\)', ')' ],
[ '0', '' ], [ '0', '' ],
[ '\"', 'ঠ' ], [ '"', 'ঠ' ],
[ '\'', 'ট' ], [ '\'', 'ট' ],
[ ',', ',' ], [ ',', ',' ],
[ '-', '-' ], [ '-', '-' ],

View File

@@ -78,7 +78,7 @@
[ 'l', 'ल' ], [ 'l', 'ल' ],
[ ':', 'ई' ], [ ':', 'ई' ],
[ ';', 'इ' ], [ ';', 'इ' ],
[ '\"', 'ऊ' ], [ '"', 'ऊ' ],
[ '\'', 'उ' ], [ '\'', 'उ' ],
[ '\\|', 'ऒ' ], [ '\\|', 'ऒ' ],
[ '\\\\', 'ॊ' ], [ '\\\\', 'ॊ' ],

View File

@@ -85,7 +85,7 @@
[ ':', '\u1002' ], [ ':', '\u1002' ],
[ '\'', '\'' ], [ '\'', '\'' ],
[ '\"', '"' ], [ '"', '"' ],
[ 'z', '\u1016' ], [ 'z', '\u1016' ],
[ 'Z', '\u1007' ], [ 'Z', '\u1007' ],

View File

@@ -11,7 +11,7 @@
version: '1.0', version: '1.0',
patterns: [ patterns: [
[ '\\!', '!' ], [ '\\!', '!' ],
[ '\"', '"' ], [ '"', '"' ],
[ '\\#', '#' ], [ '\\#', '#' ],
[ '\\$', 'रु' ], [ '\\$', 'रु' ],
[ '\'', '\'' ], [ '\'', '\'' ],

View File

@@ -10,7 +10,7 @@
license: 'GPLv3', license: 'GPLv3',
version: '1.0', version: '1.0',
patterns: [ patterns: [
[ '\"', 'ू' ], [ '"', 'ू' ],
[ '\\#', 'घ' ], [ '\\#', 'घ' ],
[ '\'', 'ु' ], [ '\'', 'ु' ],
[ '\\(', 'ढ' ], [ '\\(', 'ढ' ],

View File

@@ -14,15 +14,15 @@
maxKeyLength: 4, maxKeyLength: 4,
patterns: [ patterns: [
[ '/([A-Za-z\\>_\\-\\!@#\\$\\^\\&\\%\\*\\~\\.\\|\\\\0-9])', '$1' ], [ '/([A-Za-z\\>_\\-\\!@#\\$\\^\\&\\%\\*\\~\\.\\|\\\\0-9])', '$1' ],
[ '\'([\'])','\"' ], // '' to " [ '\'([\'])', '"' ], // '' to "
[ '\"([\'])','\'\'\'' ], // ''' [ '"([\'])', '\'\'\'' ], // '''
[ '([କ-ହ]୍[କ-ହ])@@', 'ର୍\$1' ], // reph [ '([କ-ହ]୍[କ-ହ])@@', 'ର୍$1' ], // reph
[ '([କ-ହ])@@', 'ର୍\$1' ], // reph [ '([କ-ହ])@@', 'ର୍$1' ], // reph
[ '%%', 'ଙ୍କ' ], // Anka [ '%%', 'ଙ୍କ' ], // Anka
[ '"', 'ଁ' ], // chanda bindu [ '"', 'ଁ' ], // chanda bindu
[ '([ର])}', 'ର‍୍ୟ' ], // special case: Ja phala (ର + ZWJ + ୍ୟ) [ '([ର])}', 'ର‍୍ୟ' ], // special case: Ja phala (ର + ZWJ + ୍ୟ)
[ '\\}', '୍ୟ' ], // Ja phala [ '\\}', '୍ୟ' ], // Ja phala
[ '୍\ ', '୍‌ ' ], // ending with halant+zwnj [ '୍ ', '୍‌ ' ], // ending with halant+zwnj
[ '{', 'ୃ' ], // Ru kara [ '{', 'ୃ' ], // Ru kara
[ 'େk', 'ୋ' ], // l= ekar, lk = okar [ 'େk', 'ୋ' ], // l= ekar, lk = okar
[ 'ାl', 'ୋ' ], // l= ekar, kl = okar [ 'ାl', 'ୋ' ], // l= ekar, kl = okar
@@ -35,7 +35,7 @@
[ '([ର])##', 'ର‍୍ୱ' ], // special case ର + ZWJ + ୍ୱ [ '([ର])##', 'ର‍୍ୱ' ], // special case ର + ZWJ + ୍ୱ
[ '([କ-ହ])##', '$1୍ୱ' ], // [ '([କ-ହ])##', '$1୍ୱ' ], //
[ 'ଦQ', 'ହ' ], [ 'ଦQ', 'ହ' ],
[ '([କନପସମ])Q', 'ତ୍\$1' ], [ '([କନପସମ])Q', 'ତ୍$1' ],
[ '([ଖଥଧ])Q', '$1ି' ], [ '([ଖଥଧ])Q', '$1ି' ],
[ '([ନସ])_', '$1୍ତ୍ର' ], // ନ୍ତ୍ର , ସ୍ତ୍ର [ '([ନସ])_', '$1୍ତ୍ର' ], // ନ୍ତ୍ର , ସ୍ତ୍ର
[ '\\$', 'କ୍ଷ' ], [ '\\$', 'କ୍ଷ' ],

View File

@@ -71,7 +71,7 @@
[ 'l', 'ତ' ], [ 'l', 'ତ' ],
[ ':', 'ଛ' ], [ ':', 'ଛ' ],
[ ';', 'ଚ' ], [ ';', 'ଚ' ],
[ '\"', '' ], [ '"', '' ],
[ '\'', 'ଟ' ], [ '\'', 'ଟ' ],
[ 'X', 'ଁ' ], [ 'X', 'ଁ' ],
[ 'x', 'ଂ' ], [ 'x', 'ଂ' ],

View File

@@ -47,7 +47,7 @@
[ '\\.', 'ю' ], [ '\\.', 'ю' ],
[ '/', '.' ], [ '/', '.' ],
[ '\\!', '!' ], [ '\\!', '!' ],
[ '\\@', '\"' ], [ '\\@', '"' ],
[ '\\#', '№' ], [ '\\#', '№' ],
[ '\\$', ';' ], [ '\\$', ';' ],
[ '\\%', '%' ], [ '\\%', '%' ],
@@ -81,7 +81,7 @@
[ 'K', 'Л' ], [ 'K', 'Л' ],
[ 'L', 'Д' ], [ 'L', 'Д' ],
[ ':', 'Ж' ], [ ':', 'Ж' ],
[ '\"', 'Э' ], [ '"', 'Э' ],
[ '\\|', '|' ], [ '\\|', '|' ],
[ 'Z', 'Я' ], [ 'Z', 'Я' ],
[ 'X', 'Ч' ], [ 'X', 'Ч' ],

View File

@@ -69,7 +69,7 @@
[ 'l', 'त' ], [ 'l', 'त' ],
[ ':', 'छ' ], [ ':', 'छ' ],
[ ';', 'च' ], [ ';', 'च' ],
[ '\"', 'ठ' ], [ '"', 'ठ' ],
[ '\'', 'ट' ], [ '\'', 'ट' ],
[ 'z', 'ʼ' ], [ 'z', 'ʼ' ],
[ 'X', 'ँ' ], [ 'X', 'ँ' ],

View File

@@ -70,7 +70,7 @@
[ 'l', 'त' ], [ 'l', 'त' ],
[ ':', 'छ' ], [ ':', 'छ' ],
[ ';', 'च' ], [ ';', 'च' ],
[ '\"', 'ठ' ], [ '"', 'ठ' ],
[ '\'', 'ट' ], [ '\'', 'ट' ],
[ 'X', 'ँ' ], [ 'X', 'ँ' ],
[ 'C', 'ण' ], [ 'C', 'ण' ],

View File

@@ -1,7 +1,7 @@
( function ( $ ) { ( function ( $ ) {
'use strict'; 'use strict';
var sdh_kbd = { var sdhKbd = {
id: 'sdh-kbd', id: 'sdh-kbd',
name: 'کوردی خوارگ', name: 'کوردی خوارگ',
description: 'Southern Kurdish Keyboard Layout', description: 'Southern Kurdish Keyboard Layout',
@@ -104,5 +104,5 @@
] ]
}; };
$.ime.register( sdh_kbd ); $.ime.register( sdhKbd );
}( jQuery ) ); }( jQuery ) );

View File

@@ -81,7 +81,7 @@
[ 'K', 'ණ' ], [ 'K', 'ණ' ],
[ 'L', 'ඛ' ], [ 'L', 'ඛ' ],
[ '\\:', 'ථ' ], [ '\\:', 'ථ' ],
[ '\"', ',' ], [ '"', ',' ],
[ 'Z', '"' ], [ 'Z', '"' ],
[ 'X', 'ඃ' ], [ 'X', 'ඃ' ],
[ 'C', 'ඣ' ], [ 'C', 'ඣ' ],

View File

@@ -42,9 +42,9 @@
[ '\\\\', 'ň' ], [ '\\\\', 'ň' ],
[ '\\|', ')' ], [ '\\|', ')' ],
[ ';', 'ô' ], [ ';', 'ô' ],
[ ':', '\"' ], [ ':', '"' ],
[ '\'', '§' ], [ '\'', '§' ],
[ '\"', '!' ], [ '"', '!' ],
[ '\\<', '?' ], [ '\\<', '?' ],
[ '\\>', ':' ], [ '\\>', ':' ],
[ '/', '-' ], [ '/', '-' ],

View File

@@ -15,7 +15,7 @@
[ '\'G', 'Ѓ' ], [ '\'G', 'Ѓ' ],
[ '\'k', 'ќ' ], [ '\'k', 'ќ' ],
[ '\'K', 'Ќ' ], [ '\'K', 'Ќ' ],
[ '\\@', '\"' ], [ '\\@', '"' ],
[ '\\^', '&' ], [ '\\^', '&' ],
[ '\\&', '/' ], [ '\\&', '/' ],
[ '\\*', '(' ], [ '\\*', '(' ],
@@ -70,7 +70,7 @@
[ ';', 'ч' ], [ ';', 'ч' ],
[ ':', 'Ч' ], [ ':', 'Ч' ],
[ '\'', 'ћ' ], [ '\'', 'ћ' ],
[ '\"', 'Ћ' ], [ '"', 'Ћ' ],
[ '\\\\', 'ж' ], [ '\\\\', 'ж' ],
[ '\\|', 'Ж' ], [ '\\|', 'Ж' ],
[ 'z', 'ѕ' ], [ 'z', 'ѕ' ],

View File

@@ -34,7 +34,7 @@
[ 'K', 'ษ' ], [ 'K', 'ษ' ],
[ 'L', 'ศ' ], [ 'L', 'ศ' ],
[ ':', 'ซ' ], [ ':', 'ซ' ],
[ '\"', '.' ], [ '"', '.' ],
[ 'Z', '(' ], [ 'Z', '(' ],
[ 'X', ')' ], [ 'X', ')' ],
[ 'C', 'ฉ' ], [ 'C', 'ฉ' ],

View File

@@ -81,7 +81,7 @@
[ 'K', 'Л' ], [ 'K', 'Л' ],
[ 'L', 'Д' ], [ 'L', 'Д' ],
[ ':', 'Ж' ], [ ':', 'Ж' ],
[ '\"', 'Є' ], [ '"', 'Є' ],
[ '\\|', '|' ], [ '\\|', '|' ],
[ 'Z', 'Я' ], [ 'Z', 'Я' ],
[ 'X', 'Ч' ], [ 'X', 'Ч' ],

View File

@@ -16,11 +16,11 @@
/* Yeh with hamza above */ [ '\\$', 'ئ' ], /* Yeh with hamza above */ [ '\\$', 'ئ' ],
[ '\\(', ')' ], [ '\\(', ')' ],
[ '\\)', '(' ], [ '\\)', '(' ],
[ '\\_" "ّ' ], /* Shadda */ [ '_', 'ّ' ],
/* Alef with hamza above */ [ '\\-', 'أ' ], /* Alef with hamza above */ [ '\\-', 'أ' ],
/* Alef with madda above */ [ '\\+', 'آ' ], /* Alef with madda above */ [ '\\+', 'آ' ],
/* Waw with hamza above */ [ '\\=', 'ؤ' ], /* Waw with hamza above */ [ '\\=', 'ؤ' ],
[ 'Q', 'ْ' ], /* Sukun */ [ 'Q', 'ْ' ],
[ 'q', 'ق' ], [ 'q', 'ق' ],
[ 'W', 'ﷺ' ], [ 'W', 'ﷺ' ],
[ 'w', 'و' ], [ 'w', 'و' ],
@@ -34,23 +34,23 @@
[ 'y', 'ے' ], [ 'y', 'ے' ],
[ 'U', '،' ], [ 'U', '،' ],
[ 'u', 'ء' ], [ 'u', 'ء' ],
[ 'I', 'ٰ' ], /* superscript alef */ [ 'I', 'ٰ' ],
[ 'i', 'ی' ], [ 'i', 'ی' ],
/* Teh marbuta goal */ [ 'O', 'ۃ' ], /* Teh marbuta goal */ [ 'O', 'ۃ' ],
[ 'o', 'ہ' ], [ 'o', 'ہ' ],
[ 'P', 'ُ' ], /* damma */ [ 'P', 'ُ' ],
[ 'p', 'پ' ], [ 'p', 'پ' ],
[ '\\{', 'ٰ' ], /* superscript alef */ [ '\\{', 'ٰ' ],
[ '\\[', ']' ], [ '\\[', ']' ],
[ '\\}', 'ٰٰ' ], /* double superscript alef */ [ '\\}', 'ٰٰ' ],
[ '\\]', '[' ], [ '\\]', '[' ],
[ 'A', 'ٓ' ], /* madda */ [ 'A', 'ٓ' ],
[ 'a', 'ا' ], [ 'a', 'ا' ],
[ 'S', 'ص' ], [ 'S', 'ص' ],
[ 's', 'س' ], [ 's', 'س' ],
[ 'D', 'ڈ' ], [ 'D', 'ڈ' ],
[ 'd', 'د' ], [ 'd', 'د' ],
[ 'F', '' ], /* Empty */ [ 'F', '' ],
[ 'f', 'ف' ], [ 'f', 'ف' ],
[ 'G', 'غ' ], [ 'G', 'غ' ],
[ 'g', 'گ' ], [ 'g', 'گ' ],
@@ -64,12 +64,12 @@
[ 'l', 'ل' ], [ 'l', 'ل' ],
[ ':', ':' ], [ ':', ':' ],
/* Arabic semicolon */ [ ';', '؛' ], /* Arabic semicolon */ [ ';', '؛' ],
[ '\"', '؎' ], /* verse sign */ [ '"', '؎' ],
[ '\'', 'ٰ' ], /* superscript alef */ [ '\'', 'ٰ' ],
[ '\\|', 'ؔ' ], /* takhallus */ [ '\\|', 'ؔ' ],
[ '\\', '؎' ], /* verse sign */ [ '\\', '؎' ],
[ '\\~', 'ً' ], /* fathatan */ [ '\\~', 'ً' ],
[ '\\`', 'ٍ' ], /* kasratan */ [ '\\`', 'ٍ' ],
[ 'Z', 'ذ' ], [ 'Z', 'ذ' ],
[ 'z', 'ز' ], [ 'z', 'ز' ],
[ 'X', 'ژ' ], [ 'X', 'ژ' ],
@@ -78,20 +78,20 @@
[ 'c', 'چ' ], [ 'c', 'چ' ],
[ 'V', 'ظ' ], [ 'V', 'ظ' ],
[ 'v', 'ط' ], [ 'v', 'ط' ],
[ 'B', 'ؒ' ], /* rakhmatullah */ [ 'B', 'ؒ' ],
[ 'b', 'ب' ], [ 'b', 'ب' ],
[ 'N', 'ں' ], [ 'N', 'ں' ],
[ 'n', 'ن' ], [ 'n', 'ن' ],
[ 'M', '' ], /* Empty */ [ 'M', '' ],
[ 'm', 'م' ], [ 'm', 'م' ],
[ '\\<', 'ِ' ], /* kasra */ [ '\\<', 'ِ' ],
[ ',', '،' ], [ ',', '،' ],
[ '\\>', 'َ' ], /* fatha */ [ '\\>', 'َ' ],
/* Arabic full stop */ [ '\\.', '۔' ], /* Arabic full stop */ [ '\\.', '۔' ],
/* Arabic question mark */ [ '\\?', '؟' ], /* Arabic question mark */ [ '\\?', '؟' ],
[ '\\^', 'ۖ' ], /* sla */ [ '\\^', 'ۖ' ],
[ '\\&', 'ٔ' ], /* hamza above */ [ '\\&', 'ٔ' ],
[ '\\*', 'ٌ' ] ] /* dammatan */ [ '\\*', 'ٌ' ] ]
}; };
$.ime.register( urPhonetic ); $.ime.register( urPhonetic );

View File

@@ -35,7 +35,7 @@
[ 'P', 'خ' ], [ 'P', 'خ' ],
[ '\\}', '{' ], [ '\\}', '{' ],
[ '\'', '\'' ], [ '\'', '\'' ],
[ '\"', '\"' ], [ '"', '"' ],
[ '\\[', ']' ], [ '\\[', ']' ],
[ '\\{', '{' ], [ '\\{', '{' ],
[ 'C', 'ۓ' ], [ 'C', 'ۓ' ],

View File

@@ -47,7 +47,7 @@
[ '\\.', 'ю' ], [ '\\.', 'ю' ],
[ '/', '.' ], [ '/', '.' ],
[ '\\!', '!' ], [ '\\!', '!' ],
[ '\\@', '\"' ], [ '\\@', '"' ],
[ '\\#', '№' ], [ '\\#', '№' ],
[ '\\$', ';' ], [ '\\$', ';' ],
[ '\\%', '%' ], [ '\\%', '%' ],
@@ -83,7 +83,7 @@
[ 'K', 'Л' ], [ 'K', 'Л' ],
[ 'L', 'Д' ], [ 'L', 'Д' ],
[ ':', 'Ж' ], [ ':', 'Ж' ],
[ '\"', 'Э' ], [ '"', 'Э' ],
[ '\\|', '|' ], [ '\\|', '|' ],
[ 'Z', 'Я' ], [ 'Z', 'Я' ],
[ 'X', 'Ч' ], [ 'X', 'Ч' ],

View File

@@ -16,6 +16,6 @@
"uls-no-results-found": "Цакарийна", "uls-no-results-found": "Цакарийна",
"uls-common-languages": "Ша дӀанисбелла меттанаш", "uls-common-languages": "Ша дӀанисбелла меттанаш",
"uls-no-results-suggestion-title": "Хьуна хӀара меттанаш хьашта хила мега:", "uls-no-results-suggestion-title": "Хьуна хӀара меттанаш хьашта хила мега:",
"uls-search-help": "Хьа таро ю меттан я йозанан цӀарца лаха, меттан ISO-кодаца я регионаца хьажа.", "uls-search-help": "Хьа таро йу меттан йа йозанан цӀарца лаха, меттан ISO-кодаца йа регионаца хьажа.",
"uls-search-placeholder": "Лаха мотт" "uls-search-placeholder": "Лаха мотт"
} }

View File

@@ -13,8 +13,8 @@
"uls-region-ME": "Medi Orient", "uls-region-ME": "Medi Orient",
"uls-region-PA": "Pacjific", "uls-region-PA": "Pacjific",
"uls-no-results-found": "Nissun risultât", "uls-no-results-found": "Nissun risultât",
"uls-common-languages": "Lenghis comunis", "uls-common-languages": "Lenghis sugjeridis",
"uls-no-results-suggestion-title": "Tu puedis jessi interessât a:", "uls-no-results-suggestion-title": "Tu puedis jessi interessât a:",
"uls-search-help": "Tu pues cirî par non de lenghe, non dal alfabet, codis ISO de lenghe o tu puedis cirî intune regjon:", "uls-search-help": "Tu pues cirî par non de lenghe, non dal alfabet, codis ISO de lenghe o tu puedis cirî intune regjon.",
"uls-search-placeholder": "Ricercje de lenghe" "uls-search-placeholder": "Cîr une lenghe"
} }

View File

@@ -0,0 +1,21 @@
{
"@metadata": {
"authors": [
"Tofeiku"
]
},
"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": "اندا بوليه چاري مڠيکوت نام بهاس، نام توليسن، کود اءي. ايس. او. بهاس اتاو اندا بوليه لاير مڠيکوت رنتاو.",
"uls-search-placeholder": "چاري بهاس"
}

View File

@@ -13,9 +13,8 @@
* header is left intact. See files GPL-LICENSE and MIT-LICENSE for details. * header is left intact. See files GPL-LICENSE and MIT-LICENSE for details.
* *
* @file * @file
* @ingroup Extensions * @license GNU General Public Licence 2.0 or later
* @licence GNU General Public Licence 2.0 or later * @license MIT License
* @licence MIT License
*/ */
( function ( $ ) { ( function ( $ ) {
@@ -47,6 +46,7 @@
/** /**
* ULS Public class definition * ULS Public class definition
*
* @param {Element} element * @param {Element} element
* @param {Object} options * @param {Object} options
*/ */
@@ -112,6 +112,7 @@
/** /**
* Calculate the position of ULS * Calculate the position of ULS
* Returns an object with top and left properties. * Returns an object with top and left properties.
*
* @return {Object} * @return {Object}
*/ */
position: function () { position: function () {
@@ -292,6 +293,7 @@
/** /**
* 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 * @param {Object} event The jQuery click event
*/ */
@@ -304,6 +306,7 @@
/** /**
* On cancel handler for the uls menu * On cancel handler for the uls menu
*
* @param {Event} e * @param {Event} e
*/ */
cancel: function ( e ) { cancel: function ( e ) {
@@ -337,6 +340,7 @@
/** /**
* Get the panel menu width parameter * Get the panel menu width parameter
*
* @return {string} * @return {string}
*/ */
getMenuWidth: function () { getMenuWidth: function () {

View File

@@ -1470,6 +1470,13 @@
], ],
"Gaelg" "Gaelg"
], ],
"ha": [
"Latn",
[
"AF"
],
"Hausa"
],
"ha-arab": [ "ha-arab": [
"Arab", "Arab",
[ [
@@ -1478,14 +1485,7 @@
"هَوُسَ" "هَوُسَ"
], ],
"ha-latn": [ "ha-latn": [
"Latn", "ha"
[
"AF"
],
"Hausa"
],
"ha": [
"ha-latn"
], ],
"hai": [ "hai": [
"Latn", "Latn",
@@ -4750,7 +4750,7 @@
"ar", "ar",
"ksf", "ksf",
"ha-arab", "ha-arab",
"ha-latn" "ha"
], ],
"CN": [ "CN": [
"zh", "zh",
@@ -5016,7 +5016,7 @@
"ee", "ee",
"gur", "gur",
"gaa", "gaa",
"ha-latn", "ha",
"ff" "ff"
], ],
"GI": [ "GI": [
@@ -5515,7 +5515,7 @@
"fr" "fr"
], ],
"NE": [ "NE": [
"ha-latn", "ha",
"fr", "fr",
"ar", "ar",
"ff" "ff"
@@ -5525,7 +5525,7 @@
], ],
"NG": [ "NG": [
"en", "en",
"ha-latn", "ha",
"ig", "ig",
"yo", "yo",
"ha-arab", "ha-arab",
@@ -5768,7 +5768,7 @@
"ar", "ar",
"en", "en",
"ha-arab", "ha-arab",
"ha-latn" "ha"
], ],
"SE": [ "SE": [
"sv", "sv",

View File

@@ -12,9 +12,8 @@
* header is left intact. See files GPL-LICENSE and MIT-LICENSE for details. * header is left intact. See files GPL-LICENSE and MIT-LICENSE for details.
* *
* @file * @file
* @ingroup Extensions * @license GNU General Public Licence 2.0 or later
* @licence GNU General Public Licence 2.0 or later * @license MIT License
* @licence MIT License
*/ */
( function ( $ ) { ( function ( $ ) {
@@ -22,6 +21,7 @@
/** /**
* Is this language a redirect to another language? * Is this language a redirect to another language?
*
* @param {string} language Language code * @param {string} language Language code
* @return {string|boolean} Target language code if it's a redirect or false if it's not * @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. * Returns the script of the language.
*
* @param {string} language Language code * @param {string} language Language code
* @return {string} * @return {string}
*/ */
@@ -53,6 +54,7 @@
/** /**
* Returns the regions in which a language is spoken. * Returns the regions in which a language is spoken.
*
* @param {string} language Language code * @param {string} language Language code
* @return {string|string[]} * @return {string|string[]}
*/ */
@@ -68,6 +70,7 @@
/** /**
* Returns the autonym of the language. * Returns the autonym of the language.
*
* @param {string} language Language code * @param {string} language Language code
* @return {string} * @return {string}
*/ */
@@ -84,6 +87,7 @@
/** /**
* Returns all language codes and corresponding autonyms * Returns all language codes and corresponding autonyms
*
* @return {string[]} * @return {string[]}
*/ */
$.uls.data.getAutonyms = function () { $.uls.data.getAutonyms = function () {
@@ -103,6 +107,7 @@
/** /**
* Returns all languages written in script. * Returns all languages written in script.
*
* @param {string} script string * @param {string} script string
* @return {string[]} languages codes * @return {string[]} languages codes
*/ */
@@ -112,6 +117,7 @@
/** /**
* Returns all languages written in the given scripts. * Returns all languages written in the given scripts.
*
* @param {string[]} scripts * @param {string[]} scripts
* @return {string[]} languages codes * @return {string[]} languages codes
*/ */
@@ -138,6 +144,7 @@
/** /**
* Returns an associative array of languages in a region, * Returns an associative array of languages in a region,
* grouped by script group. * grouped by script group.
*
* @param {string} region Region code * @param {string} region Region code
* @return {Object} * @return {Object}
*/ */
@@ -147,6 +154,7 @@
/** /**
* Get the given list of languages grouped by script. * Get the given list of languages grouped by script.
*
* @param {string[]} languages Array of language codes to group * @param {string[]} languages Array of language codes to group
* @return {string[]} Array of language codes * @return {string[]} Array of language codes
*/ */
@@ -169,6 +177,7 @@
/** /**
* Returns an associative array of languages in several regions, * Returns an associative array of languages in several regions,
* grouped by script group. * grouped by script group.
*
* @param {string[]} regions region codes * @param {string[]} regions region codes
* @return {Object} * @return {Object}
*/ */
@@ -201,6 +210,7 @@
/** /**
* Returns the script group of a script or 'Other' if it doesn't * Returns the script group of a script or 'Other' if it doesn't
* belong to any group. * belong to any group.
*
* @param {string} script Script code * @param {string} script Script code
* @return {string} script group name * @return {string} script group name
*/ */
@@ -218,6 +228,7 @@
/** /**
* Returns the script group of a language. * Returns the script group of a language.
*
* @param {string} language Language code * @param {string} language Language code
* @return {string} script group name * @return {string} script group name
*/ */
@@ -227,6 +238,7 @@
/** /**
* Return the list of languages sorted by script groups. * Return the list of languages sorted by script groups.
*
* @param {string[]} languages Array of language codes to sort * @param {string[]} languages Array of language codes to sort
* @return {string[]} Array of language codes * @return {string[]} Array of language codes
*/ */
@@ -247,6 +259,7 @@
/** /**
* A callback for sorting languages by autonym. * A callback for sorting languages by autonym.
* Can be used as an argument to a sort function. * Can be used as an argument to a sort function.
*
* @param {string} a Language code * @param {string} a Language code
* @param {string} b Language code * @param {string} b Language code
* @return {number} * @return {number}
@@ -260,6 +273,7 @@
/** /**
* Check if a language is right-to-left. * Check if a language is right-to-left.
*
* @param {string} language Language code * @param {string} language Language code
* @return {boolean} * @return {boolean}
*/ */
@@ -269,6 +283,7 @@
/** /**
* Return the direction of the language * Return the direction of the language
*
* @param {string} language Language code * @param {string} language Language code
* @return {string} * @return {string}
*/ */
@@ -278,6 +293,7 @@
/** /**
* Returns the languages spoken in a territory. * Returns the languages spoken in a territory.
*
* @param {string} territory Territory code * @param {string} territory Territory code
* @return {string[]} list of language codes * @return {string[]} list of language codes
*/ */

View File

@@ -12,9 +12,8 @@
* header is left intact. See files GPL-LICENSE and MIT-LICENSE for details. * header is left intact. See files GPL-LICENSE and MIT-LICENSE for details.
* *
* @file * @file
* @ingroup Extensions * @license GNU General Public Licence 2.0 or later
* @licence GNU General Public Licence 2.0 or later * @license MIT License
* @licence MIT License
*/ */
/** /**
@@ -224,6 +223,7 @@
/** /**
* Handler method to be called once search is over. * Handler method to be called once search is over.
* Based on search result triggers resultsfound or noresults events * Based on search result triggers resultsfound or noresults events
*
* @param {string} query * @param {string} query
* @param {string[]} results * @param {string[]} results
* @param {string} [autofillLabel] * @param {string} [autofillLabel]
@@ -306,6 +306,7 @@
* b) Language autonym 'starts with' search string. * b) Language autonym 'starts with' search string.
* c) ISO 639 code match with search string. * c) ISO 639 code match with search string.
* d) ISO 15924 code for the script match the search string. * d) ISO 15924 code for the script match the search string.
*
* @param {string} langCode * @param {string} langCode
* @param {string} searchTerm * @param {string} searchTerm
* @return {boolean} * @return {boolean}

View File

@@ -14,9 +14,8 @@
* header is left intact. See files GPL-LICENSE and MIT-LICENSE for details. * header is left intact. See files GPL-LICENSE and MIT-LICENSE for details.
* *
* @file * @file
* @ingroup Extensions * @license GNU General Public Licence 2.0 or later
* @licence GNU General Public Licence 2.0 or later * @license MIT License
* @licence MIT License
*/ */
( function ( $ ) { ( function ( $ ) {
@@ -32,6 +31,7 @@
/** /**
* Language category display * Language category display
*
* @param {Element} element The container element to which the languages to be displayed * @param {Element} element The container element to which the languages to be displayed
* @param {Object} [options] Configuration object * @param {Object} [options] Configuration object
* @cfg {Object} [languages] Selectable languages. Keyed by language code, values are autonyms. * @cfg {Object} [languages] Selectable languages. Keyed by language code, values are autonyms.
@@ -69,6 +69,7 @@
/** /**
* Adds language to the language list. * Adds language to the language list.
*
* @param {string} langCode * @param {string} langCode
* @param {string} [regionCode] * @param {string} [regionCode]
* @return {boolean} Whether the language was known and accepted * @return {boolean} Whether the language was known and accepted
@@ -112,6 +113,7 @@
/** /**
* Whether we should render languages grouped to geographic regions. * Whether we should render languages grouped to geographic regions.
*
* @return {boolean} * @return {boolean}
*/ */
isGroupingByRegionEnabled: function () { isGroupingByRegionEnabled: function () {
@@ -219,6 +221,7 @@
/** /**
* Adds given languages sorted into rows and columns into given element. * Adds given languages sorted into rows and columns into given element.
*
* @param {jQuery} $region Element to add language list. * @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} itemsPerColumn How many languages fit in a column.
@@ -286,6 +289,7 @@
/** /**
* Creates dom node representing one item in language list. * Creates dom node representing one item in language list.
*
* @param {string} code Language code * @param {string} code Language code
* @return {Element} * @return {Element}
*/ */
@@ -387,6 +391,7 @@
/** /**
* No-results event handler * No-results event handler
*
* @param {Event} event * @param {Event} event
* @param {Object} data Information about the failed search query * @param {Object} data Information about the failed search query
*/ */