Commit Graph

28 Commits

Author SHA1 Message Date
Amire80
777d71e0d2 Make all autonyms unique and add a test for this
In a list of languages to select autonyms must be unique so that
every user would know what to select.

* Batak Toba language in the Batak writing variant (bbc-batk) has
  an autonum in the right script now. This is taken from the Indonesian
  Wikipedia article "Surat Batak".
* Similarly to the practice with pa -> pa-guru:
  * iu for Inuktitut in the Canadian script redirects to ike-cans.
  * ks for Kashmiri in the Arabic writing redirects to ks-arab.
  * tg for Tajik in the Cyrillic script redirects to tg-cyrl.
* zgh has an updated autonym, taken from Ethologue.
* zh-classical redirects to lzh, similarly to zh-yue -> yue.
2017-06-09 20:45:43 +03:00
Santhosh Thottingal
ed2427ba2d Remove regionfilter related utility methods
Change-Id: I1ab96280fa71cac3745eb7e7210b15a1e5bc78f8
2016-05-17 15:25:53 +05:30
Santhosh Thottingal
8b3d77dae1 Support language codes that are redirects
Addressing issue #207

Such language codes were not listed in ULS language list.

Root cause was $.uls.data.getLanguagesByScriptGroup was returning
a map of script groups, which contained only resolved language codes.
And later in append method of jquery.uls.lcd.js, there is a check if
that language code is part of languages list passed as option to uls()
call. This test fails and the language code does not get added to display.

Change-Id: Iec914a9694a46eef5750ef3af7346d66e052ab77
2016-04-05 09:17:09 +05:30
Robin van der Vliet
2a0911ef10 Fixes unit test by adding "tzl". 2015-04-20 14:38:38 +02:00
Amir E. Aharoni
eb4f8ff251 Make language count calculation only in core.js 2015-03-31 10:20:34 +03:00
Amir E. Aharoni
c81561b3fc Refactor the object keys counter function 2015-03-14 23:20:09 +02:00
Santhosh Thottingal
d1e0b30e5f Fix broken tests while adding more languages
Change-Id: I8c180e96bc2fb40582e0fedfd9c8eab430961c59
2014-11-17 10:32:24 +05:30
Santhosh Thottingal
859bccd589 Test: Add lut to the list of languages in AM region
Change-Id: Ic21bf47945e5501880bc221b47d128f6bd0fbbf6
2014-03-03 15:09:45 +05:30
Siebrand Mazeland
84d763620f Use a single var statement 2013-12-03 13:56:54 +01:00
Amir E. Aharoni
986831b124 Add Zyyy for an undetermined script and use it accordingly 2013-04-25 18:10:45 +03:00
Amir E. Aharoni
1112f423a7 Suppress "dot notation" warnings in JSHint 2013-01-13 23:13:04 +02:00
Amir E. Aharoni
9695cc1b68 Better adherence to coding conventions 2013-01-13 23:05:40 +02:00
Amir E. Aharoni
bbc7190384 Add 'frc' to AM region test 2013-01-09 13:16:02 +02:00
Amir E. Aharoni
66a50931a5 Prevent appearance of redirects in the rendered list
utils.getLanguagesByScriptGroup() runs on the object's languages
property and not on all the langdb languages. This caused
the redirects to be counted as languages. I fixed this,
and added a test to prevent it.

Also update JS langdb, because it went out of sync in of
the previous commits.
2013-01-09 12:59:58 +02:00
Santhosh Thottingal
0e61876af5 Merge branch 'extra_languages' of git://github.com/amire80/jquery.uls into amire80-extra_languages
Conflicts:
	src/jquery.uls.data.js
	src/jquery.uls.data.utils.js

Change-Id: I9c321891707b0d68328f4e4c8be1bd451794072d
2013-01-07 15:45:48 +05:30
Siebrand Mazeland
c109c46962 Merge pull request #60 from amire80/small_test_improvements
Test for Zulu
2013-01-04 09:40:06 -08:00
Amir E. Aharoni
829c827483 Adding a special region
This is supposed to allow adding special languages.

This region's section is hidden by default and can be enabled by
passing different options to the lcd object.
2013-01-02 12:58:29 +02:00
Amir E. Aharoni
5455000f38 Fixed test title 2012-12-30 21:18:04 +02:00
Amir E. Aharoni
a7f90c69d3 Add test for Zulu
Just to make sure that the last language in the list
is processed.

Also fixed a comment.
2012-12-30 21:12:21 +02:00
Amir E. Aharoni
2ce57b37fe Test for double redirects 2012-12-30 19:27:36 +02:00
Amir E. Aharoni
683ad727e1 Add aliases to the languages that need them 2012-12-30 19:14:51 +02:00
Amir E. Aharoni
c127247178 Test that all redirects have valid targets 2012-12-17 10:45:30 +02:00
Amir E. Aharoni
13e249907a Skip redirects in util functions 2012-12-17 10:45:30 +02:00
Amir E. Aharoni
8f75d69997 Add aliases and tests for isRedirect 2012-12-17 10:45:30 +02:00
Amir E. Aharoni
bdb1ef3b47 Add isRedirect (from an old Gerrit commit) 2012-12-17 10:45:30 +02:00
Amir E. Aharoni
c40caf4a29 Update the remaining calls to deprecated functions 2012-10-08 08:27:50 +02:00
Amir E. Aharoni
427c3bf39d Added RTL tests from Gerrit and fixed another test 2012-10-08 07:43:41 +02:00
Santhosh Thottingal
fc28cfeb3b Add qunit tests
Importing the tests from MediaWiki gerrit

Change-Id: I2aec075b5ea04f927e2ee0a0e747334ba9efb4a0
2012-10-08 07:43:41 +02:00