Introduce languages options to ULS
Default value of this option will be $.uls.data.autonyms(). It can be set to limit language selection to a set of languages. Updated examples, used a config variable wgULSLanguages to set this. Change-Id: Ia322cbdcdb14f08619d2e4df5b23e2702841d147
This commit is contained in:
committed by
Amir E. Aharoni
parent
bce461b980
commit
8f7382b242
@@ -61,7 +61,9 @@ test( "-- Initial check", function() {
|
||||
} );
|
||||
|
||||
test( "-- $.uls.data testing", function() {
|
||||
expect( 20 );
|
||||
expect( 21 );
|
||||
|
||||
strictEqual( $.uls.data.autonyms()['he'], 'עברית', 'Correct autonym is returned for Hebrew using autonyms().' );
|
||||
|
||||
// This test assumes that we don't want any scripts to be in the 'Other'
|
||||
// group. Actually, this may become wrong some day.
|
||||
|
||||
Reference in New Issue
Block a user