Commit Graph
100 Commits
Author SHA1 Message Date
Amir E. AharoniandKartik Mistry b2ed2ffc02 Update language-data from upstream
Adding Ibibio (ibb).

Updating to
https://github.com/wikimedia/language-data/commit/7c53b11762b1bd6ca33f1ac65ba9943e4817d58a
2023-04-04 08:45:47 +05:30
Amir E. AharoniandNiklas Laxström 94f9001a4f Update language-data from upstream
Updating to
https://github.com/wikimedia/language-data/commit/2585a1835db759f441281e16500373dccd621d85
2023-04-03 18:49:37 +03:00
Amir E. AharoniandGitHub 5128f8f164 Update language-data from upstream (#447)
Add:
* Haryanvi (bgc)
* Tausug (tsg)

Updating to
https://github.com/wikimedia/language-data/commit/52c9e2971432dd6c08d95aea38e49081425a268d
2023-03-08 18:30:52 +05:30
Amir E. AharoniandNiklas Laxström f5779eceb1 Update language-data from upstream
* Replace ajp with apc for Levantine Arabic.
* Add variants: en-us, nrf-gg, nrf-je
* Add Láadan (ldn)
* Add CQ region (backwards compatibility)
2023-02-27 08:33:20 +02:00
Amir E. AharoniandNiklas Laxström 0627f0ef32 Update language-data from upstream
Add Hassaniya (mey).

Updating to
https://github.com/wikimedia/language-data/commit/f1c2a81bebe8f39d689b1d1ad627057e4797b0f3
2023-01-29 11:23:06 +02:00
Amir E. AharoniandNiklas Laxström 33ded5382c Update language-data from upstream
Add Hindko (hno).

Updating to:
https://github.com/wikimedia/language-data/commit/16db71c2bc397fef0e2b6b0e47765b952d735b6a
2023-01-25 13:59:34 +02:00
Amir E. AharoniandGitHub b23041a2a3 Update language-data from upstream (#442)
* Add Arbëresh language (aae)

https://github.com/wikimedia/language-data/commit/66e804116b68c87c7d162ee5535b2ee052621a20
2023-01-11 16:37:52 +05:30
Amir E. AharoniandKartik Mistry 78d3abcd8d Update language-data from upstream
* Use turned comma in the autonym of Hawaii (haw)
* Add Igala (igl)

Updating to
https://github.com/wikimedia/language-data/commit/f95b5fe6758d5d9a1d899392e39bc6c6ff4c45f1
2023-01-11 13:24:24 +05:30
Amir E. AharoniandKartik Mistry ea2197b73d Update jquery.uls from upstream
Add:
* Monegasque (lij-mc)
* Norwegian Hognorsk (nn-hognorsk)
* Varieties of Rhetoromanian (rm-puter, rm-rumgr,
  rm-surmiran, rm-sursilv, rm-sutsilv, rm-vallader)
* Manado (xmm)
2022-12-07 17:10:16 +05:30
Amir E. AharoniandGitHub 3b55092a29 Merge pull request #438 from wikimedia/updates-2022-12-05
Add Berom and Nzema languages
2022-12-05 11:17:45 +02:00
Amir E. AharoniandGitHub 45299800c5 Merge pull request #437 from wikimedia/update-ldata-2022-12-01
Update language-data from upstream
2022-12-02 21:08:57 +02:00
Amir E. AharoniandKartik Mistry 3332d5fc81 Auto-update package-lock.json
Done using `npm audit fix`.

Bumps minimatch version to 3.0.8.
2022-11-22 18:57:39 +05:30
Amir E. AharoniandKartik Mistry ce15e82ad8 Update language-data from upstream
Add Magahi (mag).

Updating to
https://github.com/wikimedia/language-data/commit/af77a5dc50a8c995197ac3586ff21415319641bd
2022-10-13 13:35:47 +05:30
Amir E. AharoniandKartik Mistry 4b07e4fe64 Update language-data from upstream
Add Iraqi Arabic.

Updating to
https://github.com/wikimedia/language-data/commit/7de21c489f564008103f668da1587059c1be0ca4
2022-09-07 16:39:09 +05:30
Amir E. AharoniandKartik Mistry cd13f0af75 Update language-data from upstream
* Update Iñupiaq (ik) autonym.
* Add Esan (ish).
* Add Makassarese (mak) in Latin and Buginese.
* Updates in regional data.

Updating to
https://github.com/wikimedia/language-data/commit/80b389b48ddbf4b69d93bba089c195e09f354a04
2022-08-29 18:35:48 +05:30
Amir E. AharoniandKartik Mistry 677d9c5ae2 Update language-data from upstream
* Add Kalanga (kck), Wolaytta (wal), Yonaguni (yoi)
* Fix capitalization for Bunun (bnn).

Updating to
https://github.com/wikimedia/language-data/commit/0d800daf30c84732984763b93eabe1326dfd4b23
2022-07-20 12:16:52 +05:30
Amir E. AharoniandKartik Mistry 9584756187 Update language-data from upstream
* Add Bura (bwr)
* Add Tai Nua (tdd), with Thai Le writing system (Tale)
* Change autonym of Kanuri (kr)
* Add Occitan (oc) as a language of Spain
* Remove Tajik Cyrillic (tg-cyrl) as a language of Pakistan

Updating to
https://github.com/wikimedia/language-data/commit/0a7203ca51b4e5e56dab29daa03efd77a730411c
2022-06-13 12:40:25 +05:30
Amir E. AharoniandGitHub 1b208966ad Merge pull request #427 from wikimedia/T308688
For language links, use full space in <li> elements
2022-06-13 09:26:34 +03:00
Amir E. AharoniandKartik Mistry 1995aeb868 Update language-data
* Add Tai Nüa (tdd).
* Add Occitan to Spain.

Updating to
https://github.com/wikimedia/language-data/commit/5163dfcfe785289293ecf7df3e61393191c89828
2022-05-31 10:14:32 +05:30
Amir E. AharoniandGitHub 110b3f6204 Merge pull request #425 from wikimedia/dependabot/npm_and_yarn/grunt-1.5.3
Bump grunt from 1.5.2 to 1.5.3
2022-05-26 10:32:11 +03:00
Amir E. AharoniandKartik Mistry 6fc0e736d9 Update language-data from upstream
Updating Efik (efi) autonym.

Updating to
https://github.com/wikimedia/language-data/commit/e5abc089ffba354edfeb20ec3dc85725b14f3051
2022-05-23 17:30:05 +05:30
Amir E. AharoniandKartik Mistry 54864601fa Update language-data
* Add Campidanese Sardinian (sro)
* Auto-update territory info: add Obolo (ann) to Nigeria
  and Pijin (pis) to Solomon Islands.

Updating to
https://github.com/wikimedia/language-data/commit/627d49561e9d1728c2a82d09a4be40a665231c9a
2022-05-18 20:14:51 +05:30
Amir E. AharoniandKartik Mistry f422273d0f Update language-data from upstream
* Fix location for Karay-a (krj) and Livvi-Karelian (olo)
* Fix autonyms for Kinyarwanda (rw), Okinawan (ryu),
  and Kokborok (trp)
* Remove Eastern Yiddish (ydd), which is practically
  identical to Yiddish (yi).
* Remove "Kana" as a separate writing systems, and merge it with "Jpan".

Updating to
https://github.com/wikimedia/language-data/commit/35f37b6c5fa14881bb9e107edc3d52c20272636e
2022-05-05 12:46:29 +05:30
Amir E. AharoniandKartik Mistry d450b52a15 Bump grunt to 1.5.2
Suggest by `npm audit`.
2022-04-28 17:58:10 +05:30
Amir E. AharoniandKartik Mistry 62bcddbd8f Update language-data
Add Efik (efi).

Updating to
https://github.com/wikimedia/language-data/commit/fcb78913c6f220e0699b768b4bfde24bb4aab674
2022-04-13 13:00:57 +05:30
Amir E. AharoniandGitHub 5d13a173f8 Merge pull request #417 from wikimedia/dependabot/npm_and_yarn/minimist-1.2.6
Bump minimist from 1.2.5 to 1.2.6
2022-03-24 13:42:20 +02:00
Amir E. AharoniandKartik Mistry 85c3341aec Update language-data
* Add rsk, fat
* Update Kirundi autonym
* Automatically reorder some language codes in region info

Updating to
https://github.com/wikimedia/language-data/commit/abc5ad4b4ec0055fbde6da676ed22e7e19cea292
2022-03-07 21:37:46 +05:30
Amir E. AharoniandKartik Mistry d0a5b92e57 Update language-data
* Add ken, bum
* Update region data for Canada and U.K.
  (automatically from CLDR)

Updating to
https://github.com/wikimedia/language-data/commit/eb467ffa0f812ccc6d02c1c8028d26c3bddd525b
2022-02-24 18:14:29 +05:30
Amir E. AharoniandKartik Mistry cad826ffef Update stylelint packages
Recommended by `npm audit fix`.
2022-02-14 20:20:56 +05:30
Amir E. AharoniandNiklas Laxström fe46a2f7ce Update language-data
* Added: fvr, mos, se-fi, se-no, se-se
* Added shy-latn, uz-cyrl, and uz-latn
  for compatibility with MediaWiki.
* Added standard code for "Toki Pona" (tok),
  keeping the non-standard "tokipona" as redirect
  for backwards compatibility.
* Renamed "Sediq Taroko" to "Seediq".
* Added English as one of the languages of Maldives
  (automatically from CLDR).

Updating to
https://github.com/wikimedia/language-data/commit/ed481a74378fa9aac7da82d36e238de2a29778d7
2022-02-02 16:22:57 +02:00
Amir E. AharoniandNiklas Laxström c10140c12b Upgrade eslint-config-wikimedia to 0.21.0
JavaScript code and comments changes:
* Remove no-multi-str disabling.
* Document $ parameter.
* Replace .substring() with .slice().
* Change assert.ok() to assert.strictEqual() in a test.
2022-01-31 11:13:58 +02:00
Amir E. AharoniandNiklas Laxström 27a8471816 Update npm packages using npm audit fix 2022-01-28 09:56:21 +02:00
Amir E. AharoniandNiklas Laxström 817b4a4318 Update grunt-eslint versions
This was suggested by `npm audit`.

Also changing the configuration: the "syntax" option
is no longer needed.
2022-01-28 09:56:21 +02:00
Amir E. AharoniandNiklas Laxström 5cb466eaae Remove Node 10 and add Node 16 in GitHub actions 2022-01-27 15:59:42 +02:00
Amir E. Aharoni c16a7dbdab Change font-size from 1.2em to 1.143em
Also remove the unit from line-height.

Based on Volker's review of the previous change.
2022-01-26 15:17:01 +02:00
Amir E. Aharoni f91700b77b Change font-size unit from px to em
The convention to avoid px in font-size and use em instead was
added to Wikimedia coding conventions was added in December 2020:
https://www.mediawiki.org/wiki/Manual:Coding_conventions/CSS#Don't_rely_on_px_unit_based_values

Now it's also enforced using stylelint.

This commit changes all CSS font-size values that were still in px
to em units.
2022-01-24 11:19:29 +02:00
Amir E. AharoniandKartik Mistry 04ec45d5fd Update language-data from upstream
* Fix Angika autonym to "अंगिका"
* Add Nkore (nyn)

Updating to
https://github.com/wikimedia/language-data/commit/064aebfbda2e77bc6e36a4a3c1b80592d6078713
2022-01-17 18:05:10 +05:30
Amir E. AharoniandKartik Mistry 57b52268d2 Update language-data from upstream
* Change autonyms for Nheengatu (yrl) and Abkhaz (ab)
* Add Aleut language (ale, ale-cyrl)

Updating to
https://github.com/wikimedia/language-data/commit/868370a287452e2a02cb8183c5691ca83da8ae4b
2022-01-03 14:19:55 +05:30
Amir E. AharoniandKartik Mistry 09c410877d Update language-data from upstream
Add:
* Aja (ajg)
* Logooli (rag)

Updating to
https://github.com/wikimedia/language-data/commit/2ea97c8bd4ad2f56f47824a942b2fb6bdac4b17a
2021-11-15 17:27:14 +05:30
Amir E. AharoniandNiklas Laxström bc2f80a811 Update language-data from upstream
* Add: agq, gpe, mcn, nmz
* Split nod to nod (Tai Tham) and nod-thai, and add Tai Tham support
* Change Cyrillic-alphabet languages to lowercase
* Update autonym: ksw
2021-11-09 17:05:24 +02:00
Amir E. AharoniandNiklas Laxström c51e88eb22 Update package-lock.json by npm audit fix
Addresses several auto-reported security issues.
2021-10-11 12:58:48 +03:00
Amir E. AharoniandNiklas Laxström 1b3e4265e6 Update language-data from upstream
Add:
* Levantine Arabic (ajp, ajp-latn, ajp-arab)
* Pa'O (blk)
* Nigerian Pidgin (pcm)
* Paiwan (pwn)
* Sirionó (srq)
* Makhuwa (vmw)

Changed configuration:
* Add Pacific region to Indonesian (id) and Rapanui (rap)
* Add Pacific and America regions to Chinese (zh, zh-hans, zh-hant)
* Remove uppercase from Cape Verdian autonym (kea)
* Change autonym for Lombard (lmo)
* Change autonym of gur to "farefare"

Updating to:
https://github.com/wikimedia/language-data/commit/ceb18ea4dd2efb86c1bb4f7aef2a49bf0c6fbb18
2021-10-11 11:37:17 +03:00
Amir AharoniandNiklas Laxström ab929b81d8 Update language-data from upstream
Make 'ha' the primary code for Hausa
instead of ha-latn.

Updating to:
https://github.com/wikimedia/language-data/commit/d56debb089c61c019c77b1c63dc37ae2cf198791
2021-05-11 17:17:55 +03:00
Amir AharoniandNiklas Laxström a76f12a543 Update package-lock.json
Generated by `npm audit fix`. Resolves security issues.
2021-05-10 10:13:05 +03:00
Amir AharoniandNiklas Laxström 4c124f2d71 Update language-data from upstream
Split ciw to ciw and ojb

Updating to
https://github.com/wikimedia/language-data/commit/4e45e0cd80091f9f45038e81178114fae7bc8cca

For more info see downstream task
https://phabricator.wikimedia.org/T280461
2021-04-27 16:09:23 +03:00
Amir AharoniandNiklas Laxström 67e4d46f6a Update language-data from upstream
Add the Dargin (Dargwa) language (dar).

Updating to
https://github.com/wikimedia/language-data/commit/06fe4cd2711d6b504ddada85fb7ca9789b9bdf68
2021-04-14 14:29:36 +03:00
Amir AharoniandKartik Mistry 4495850b9c Update language-data from upstream
* Add languages bas, bkm, bzj

Updating to
https://github.com/wikimedia/language-data/commit/2ddadd3a7f791f3a4f81911ff8847ec5a313916a
2021-03-31 18:13:07 +05:30
Amir AharoniandKartik Mistry 3153ae0fc2 Update language-data from upstream
* Add nan-hani
* Update autonym for guc, cjy, cdo

Updating to
https://github.com/wikimedia/language-data/commit/29025c63f2111fa09f9fb47fe7f0ab290b307678
2021-03-08 18:36:22 +05:30
Amir E. AharoniandGitHub 1bed61638b Update language-data (#380)
* Add languages: nus, rhg, rmc
* Add variants: pap-aw, tly-cyrl
* Add script: Rohg
* Update data about Talysh

Updating to
https://github.com/wikimedia/language-data/commit/7181b2ecb77421cf400d78c52c86f195cebd101e
2021-03-01 15:57:18 +05:30
Amir AharoniandKartik Mistry 5ccc75a8cf Update language-data
Add language gld and guw.

Updating to
https://github.com/wikimedia/language-data/commit/c0f628fb15d9910982829904c17597583828cd9c
2021-01-18 18:20:29 +05:30
Amir AharoniandNiklas Laxström bf23ab9f3a Update language-data from upstream
Fixed the autonum for the Shilha language.

Updating to
https://github.com/amire80/language-data/commit/4b7cee6c3d4c5ae67f1e4b80f9594fafc92cf8d1
2020-12-31 15:57:19 +02:00
Amir AharoniandNiklas Laxström ed6d31d7ff Update language-data from upstream
* Add languages: elm, izh, nia, nog
* Change capitalization for koi, olo, vro
2020-12-23 12:33:35 +02:00
Amir E. AharoniandGitHub 9f68962126 Merge pull request #375 from wikimedia/action
Switch from Travis to Github Actions
2020-12-23 12:21:10 +02:00
Amir AharoniandNiklas Laxström db0c6e9764 Update package versions in package.json
Recommended by npm audit.
2020-12-16 13:53:02 +02:00
Amir E. AharoniandGitHub 93aafb7d16 Merge pull request #371 from wikimedia/language-data-update
Update language-data
2020-12-09 12:16:55 +02:00
Amir AharoniandNiklas Laxström 9a1f5c0e5a Return an empty array if there are no languages in territory
Downstream bug:
https://phabricator.wikimedia.org/T265158
2020-11-16 10:19:11 +02:00
Amir AharoniandKartik Mistry 5b615109ea Update language-data from upstream
Changes:
* Update autonyms for Altay languages (alt, atv)
* Add redirect from cbk-zam to cbk.
  (Addresses downstream bug https://phabricator.wikimedia.org/T263717 .)

Updating to
https://github.com/wikimedia/language-data/commit/51685b542b325d181b163451f8cf6a8404d54a9b
2020-09-29 13:29:25 +05:30
Amir AharoniandNiklas Laxström d4b728ee12 Update stylelint-config-wikimedia version 2020-07-24 20:37:51 +03:00
Amir AharoniandNiklas Laxström 8ba1d8e9a0 Update language-data
Adding languages:
* Altay (alt)
* Obolo (ann)
* Southern Altay (atv)
* Baoule (bci)
* Nuxalk (blc)
* Mara (mrh)

Also update autonym for Madurese.

Updating to
https://github.com/wikimedia/language-data/commit/762dd9c5f0f5efd48494a7b6d2ddac0acc136fb6
2020-07-24 16:35:26 +03:00
Amir AharoniandNiklas Laxström b332a6587e Update language-data
* Add Madurese (mad) and Vertical Mongolian (mvf)
* Add America region to Venetian

Updating to
https://github.com/wikimedia/language-data/commit/d60d8bd62964d13a55bb6194f6ed8dd9964de484
2020-05-26 12:09:45 +03:00
Amir AharoniandKartik Mistry 9d8b9cb69c Update language-data
* Add syl
* Update moe autonym
* Change script and update autonym for ary

Updating to
https://github.com/wikimedia/language-data/commit/4a6e18a1379e5b37cd006e3b3657f3753b25345f
2020-04-28 19:23:08 +05:30
Amir E. AharoniandGitHub d7cbd0a03d Fixes for fetch-language-data.sh (#360)
* Fixes for fetch-language-data.sh

* Portable path function, instead of `readlink -f`, which doesn't
  work on mac.
* Remove extra '/' character from DEST. It is added again later.
* Change "wrote" to "written" — clearer meaning of what was done.

* Update language-data

* Update sjd autonym
* Move ms-arab a few lines (automatic change from CLDR)

Updating to
https://github.com/wikimedia/language-data/commit/b485f5a1343ba6348faca8e4f4994fefe6c195e6
2020-04-08 20:16:23 +05:30
Amir AharoniandNiklas Laxström d97c2e9d8d Update language-data
* Update sjd autonym
* Move ms-arab a few lines (automatic change from CLDR)

Updating to
https://github.com/wikimedia/language-data/commit/b485f5a1343ba6348faca8e4f4994fefe6c195e6
2020-04-07 16:35:13 +03:00
Amir E. AharoniandGitHub ea874fad1a Merge pull request #358 from santhoshtr/language-data-folder-fix
Fix the path to language-data.json in @wikimedia/language-data
2020-04-02 10:30:49 +03:00
Amir AharoniandNiklas Laxström 343a43e0f9 Update package-lock
Auto-created by npm install. This resolves npm audit warnings.
2020-04-01 14:23:45 +03:00
Amir AharoniandNiklas Laxström d6c11a2f05 Update grunt to version 1.1.0 and update package-lock.json
These were done automatically by npm audit fix
2020-03-31 22:47:36 +03:00
Amir AharoniandKartik Mistry 0b4357621b Update language-data
* Add Chuckhi (ckt)
* Remove shy and szy, which are not standard in CLDR for the territories.

Updating to
https://github.com/wikimedia/language-data/commit/6ca93c0966d9fddbd98f7891a6a8e5605ef679f1
2019-12-17 09:25:06 +05:30
Amir AharoniandNiklas Laxström 783ee39251 Update language-data
* Rename ais to szy
* Add shy-latn

Updating to
https://github.com/wikimedia/language-data/commit/ecb14194d929ac1dae14f674c185406d6e69ae6f
2019-11-26 23:09:42 +02:00
Amir AharoniandKartik Mistry c4f0fdab15 Update language-data
Adding languages:
* Bajau (bdr)
* Cakma (ccp); also adds support for the Chakma script
* Jeju (jje)

Also adds Aragonese as a language of Spain.

Updating to
https://github.com/wikimedia/language-data/commit/d7a5e8db99c61771ce54c11bdd1744f93583283d
2019-11-08 08:14:33 +05:30
Amir AharoniandKartik Mistry eade6bdf4e Run npm audit fix
Only an update of an internal grunt-contrib-qunit dependency.
2019-11-08 08:13:22 +05:30
Amir AharoniandNiklas Laxström e79ea4b4e6 Update language-data 2019-09-03
* Change autonyms for Sunda and Banjar
* Add Osing

Updating to
https://github.com/wikimedia/language-data/commit/c77e9014985b5827a67e17a811fa27a4370768f0
2019-09-03 15:26:15 +03:00
Amir E. AharoniandSanthosh Thottingal 0d0bd11860 Update language-data (#347)
* Add awa and mrv
* Update autonyms for min, mni, and sju

Updating to
https://github.com/wikimedia/language-data/commit/ac6fc6786e3caf065191efd43efd011485cc4477
2019-08-29 16:51:33 +05:30
Amir E. AharoniandGitHub 5cb48e7d48 Merge pull request #346 from santhoshtr/npm-no-save-browserify
Installing browserify should not update package.json
2019-08-29 14:03:29 +03:00
Amir AharoniandKartik Mistry 80c72856fa Update grunt-contrib-qunit to 3.1.0 and add package-lock.json
This resolves lodash vulnerabilities.
2019-08-09 21:18:33 +05:30
Amir AharoniandNiklas Laxström f959eb2730 Update dependencies versions
* Update grunt and stylelint according to `npm audit` security suggestion.
* Update grunt-stylelint and stylelint-config-wikimedia according
  to `npm install` suggestion.
2019-07-08 15:01:37 +03:00
Amir Aharoni d9405c9839 Update language-data from upstream
* Revert the BCP 47 standardization patch. Will be restored some time soon.
* Update autonyms: ban, gcr, hyw, jv
* Add languages: ksw, pov, rej, vai

Updating to
https://github.com/wikimedia/language-data/commit/6313c6a9f8bf9d0efbe967d21fa77be89e8ca3ac
2019-05-21 13:06:45 +03:00
Amir AharoniandNiklas Laxström 9ab4deeb4e Update language-data from upstream
Add Montenegrin (cnr).
2018-09-05 17:05:18 +03:00
Amir AharoniandNiklas Laxström 248e43a76a Update language-data from upstream
* Remove capital letter from the  Armenian autonym
* Update Santali autonym to the Ol Chiki script
* Add Eastern Pwo (kjp)
* Add Fula language to several countris in regions data

Updating to
5e8bf8b95f6123ab7522ec7876c8399ffd3f6e04
2018-09-03 09:07:53 +03:00
Amir E. AharoniandGitHub c4323800df Merge pull request #320 from jhsoby/master
Update language-data from upstream
2018-08-07 15:10:49 +03:00
Amire80andNiklas Laxström 37651ed7c1 Update language-data from upstream
* Fixing the Fon autonym
* Adding Kaqchikel
* Fixing es-419 spelling

Updating to
https://github.com/wikimedia/language-data/commit/d52eb59fd8149a345b43f4323ec87e927b43e174
2018-06-24 21:54:53 +03:00
Amire80andNiklas Laxström 2c1b2dd1b8 Group languages in each region by script group
sortByScriptGroup and getLanguagesByScriptGroup are updated from language-data.
(jquery.uls.data.utils should be merged to language-data.)

This resolves downstream bug
https://phabricator.wikimedia.org/T189090
2018-05-22 17:50:44 +03:00
Amire80andNiklas Laxström 4088411430 Update language-data with the Fon language 2018-05-18 20:03:10 +03:00
Amire80andKartik Mistry f4f2808f49 Update language-data from upstream
* Add gor and btm
* Update autonym for brx

Updating to
https://github.com/wikimedia/language-data/commit/057affa5a121b2d74e75264fbd45ce885402ae69
2018-04-30 13:51:03 +05:30
Amire80andKartik Mistry 78a0b4bf78 Add language-data updating instructions to README 2018-04-02 15:54:10 +05:30
Amir E. AharoniandSanthosh Thottingal e5ec92f35c Update language-data from upstream (#311)
Add the following languages:
* Northern Ndebele (nd)
* Okanagan (oka)

Update autonyms for the following languages:
* Kurdish (ku)
* Korean (DPRK variant, ko-kp)

Updating to
https://github.com/wikimedia/language-data/commit/aab40a4f6f805261f1afeeda60fc273db26ee464
2018-04-02 14:25:37 +05:30
Amire80andNiklas Laxström 31696b4074 Add maxlength to the languagefilter input
This input field is only for language names. There's no reason for it
to have something longer. Looking at the logs of searches,
people sometimes write very long things there: gibberish,
URLs, inappropriate search strings, mistaken pastes from other places,
and so on.

So it should be limited by maxlength.

It's practically never useful after 20 characters, but setting at 40
just to be on the safe side. The longest language name in langdb is 34.
2018-03-26 15:13:15 +03:00
Amire80andNiklas Laxström 274f7b15a1 Add documentation for the event argument 2018-03-26 11:41:54 +03:00
Amire80andNiklas Laxström 119f3565f1 Pass the event to ULS core select()
Follow up to #305.
2018-03-26 11:41:54 +03:00
Amire80 99c979edcf Update options defaults and documentation
* Add ulsPurpose to README
* Add default undefined for noResultsTemplate
* Reorder options in the README according to defaults in jquery.uls.core.js
2018-03-21 11:04:43 +02:00
Amire80 1120ab276c Update the argument for noResults in lcd
Follow up to #306.
2018-03-15 17:05:01 +02:00
Amire80 970d073efa Send a data object in $.trigger
There was a mistake in #299: the $.trigger() must take only one argument
for extraParameters. Sending another parameter causes NULL to be logged in
EventLogging for ulsPurpose.
2018-03-15 11:57:02 +02:00
Amire80 f11634e6d3 Pass the event object when calling the click handler
This will allow distinguishing Click and Ctrl/Command-Click.
See downstream bug https://phabricator.wikimedia.org/T189582
2018-03-13 14:34:11 +02:00
Amire80 00ff49e190 Convert ulsPurpose from a data attribute to an languagefilter option 2018-03-05 12:58:00 +02:00
Amire80 ddb691a918 Allow identifying the context of the different ULS panels within one app
Add the ulsPurpose option. Empty string by default.

This is useful for web application that use ULS in several different context,
and need to distinguish what was the purpose of the particular ULS panel.

An example of usage can be found at
https://phabricator.wikimedia.org/T179402
2018-03-04 23:01:35 +02:00
Amire80 c6c08537f7 Redirect skr to skr-arab in langdb
This language is being added to MediaWiki, so we need to make
sure it will be identified.
2017-07-22 10:46:13 +03:00
Amire80 308ca1bea7 Add the Coptic language to langdb 2017-07-21 15:40:54 +03:00
Amire80 9cd578cec6 Change ckb autonym to just "کوردی"
This was requested by the Wikipedia community,
and it is the practice on other websites, too.

More details at
https://phabricator.wikimedia.org/T116761
2017-07-09 18:16:42 +03:00
Amire80 f3469f25c8 Add the Ho language (hoc) and the Warang Citi script (Wara) to langdb 2017-07-05 15:34:53 +03:00
Amir E. AharoniandGitHub 387534ff0a Merge pull request #266 from wikimedia/code-of-conduct
Create CODE_OF_CONDUCT.md
2017-06-12 18:09:06 +03:00
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