Commit Graph
100 Commits
Author SHA1 Message Date
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
Amire80 5f67e82192 Fix the autonym for tkr
Source: Русско-цахурский разговорник под редакцией А.Г. Гюльмагомедова, Махачкала 2004
2017-06-07 11:14:19 +03:00
Amire80 01520ea6bb Add the Xibe language (sjo) 2017-06-02 16:35:58 +03:00
Amire80 791a924981 Add languages byn, dag, doi, gaa, tig to langdb
These languages are already used in jquery.ime,
but if they are not in ULS, they cannot be selected
in translatewiki.
2017-06-01 11:56:20 +03:00
Amir E. AharoniandGitHub 544bca5ac2 Merge pull request #257 from nemobis/master
Add Hakka variants (hak-hans, hak-hant)
2017-05-31 18:57:31 +03:00
Amire80 7d24e6766a Add the Rangi language (lag)
Requested at
https://translatewiki.net/wiki/Thread:Support/add_Rangi_(lag)
2017-05-03 19:49:30 +03:00
Amire80 691c11f990 Add five languages of Taiwan
ais, ami, tay, trv, xsy

For reference, see
https://translatewiki.net/wiki/Thread:Support/Request_4_languages_of_Indigenous_Taiwanese
2017-05-02 23:25:05 +03:00
Amire80 4d7795eea2 Add the Nyungar language (nys) 2017-03-31 20:12:10 +02:00
Amire80 0da43bab16 Add the Guambiano language
Requested at
https://translatewiki.net/wiki/Thread:Support/Add_new_language_to_translate

Follow up to
https://gerrit.wikimedia.org/r/#/c/344984/
2017-03-28 10:56:43 +03:00
Amir E. AharoniandGitHub 819047b4b0 Merge pull request #244 from hhm0/patch-1
Add Jewish Babylonian Aramaic (tmr) to langdb
2017-03-27 22:27:11 +03:00
Amir E. AharoniandGitHub 1604bbc1e7 Merge branch 'master' into patch-1 2017-03-27 22:25:02 +03:00
Amire80 cafe908d07 Move the message attribute to the correct element
Follow up to https://github.com/wikimedia/jquery.uls/pull/243 ,
addressing a comment by @Nikerabbit.
2016-12-04 11:40:45 +02:00
Amire80 1ce349475e Remove the left-to-right mark from the lki autonym
This character produces a JSHint warning,
and it's definitely unnecessary.
It was possibly added as a copy-paste error in 6650db2.
2016-12-03 21:10:43 +02:00
Amire80 7d9d2b7947 Using the message uls-search-help in the code
The translatable message uls-search-help was available in
the i18n files, but it was not actually used in the code,
so it was always shown in English.

This patch adds it to the JS code.
2016-11-28 15:53:55 +02:00
Amire80 0441c1eedb Add Siberian Tatar (sty) to langdb 2016-11-27 16:55:43 +02:00
Amire80 d191a1f6e6 Change "Language search" to "Search for a language"
Suggested at https://phabricator.wikimedia.org/T138235 .
This brings ULS closer to the mobile language search interface
in MediaWiki.
2016-09-13 10:46:41 +03:00
Amir E. AharoniandGitHub d77da03dbf Merge pull request #238 from mariushoch/bug/T144871
Use an empty array for quickList everywhere, not false/null
2016-09-07 11:49:10 +03:00
Amir E. AharoniandGitHub a9dc11b6ef Merge pull request #237 from wikimedia/narrow
In narrow mode, print "All languages" heading if suggested languages …
2016-09-05 15:41:45 +03:00
Amire80 9c8f9fcf77 Add a redirect from chm to mhr
CLDR uses chm instead of mhr, so for practical purposes
it should be a redirect, until https://phabricator.wikimedia.org/T136164
is resolved.
2016-07-19 15:38:15 +03:00
Amir E. AharoniandGitHub 3a6727aa94 Merge pull request #231 from Nikerabbit/bft
Add bft
2016-07-19 15:37:02 +03:00
Amir E. Aharoni 48501f7dca Merge pull request #201 from Mjbmr/master
Add Livvi-Karelian language
2015-08-31 21:30:59 +03:00
Amir E. Aharoni aeea1211fb Add 'sudo: false' to upgrade to new Travis infrastructure
This is done according to
http://docs.travis-ci.com/user/migrating-from-legacy/

As far as I know we don't need sudo of any kind,
and the performance advantages listed there sound good.
2015-08-04 17:29:53 +03:00
Amir E. Aharoni b4f87fb011 Update Azerbaijani varieties in langdb
CLDR now uses only az-arab and az-latn,
so they must both appear in langdb.
2015-08-02 20:36:20 +03:00
Amir E. Aharoni 5f35b1805e Merge pull request #198 from Mjbmr/patch-1
Update Southern Luri name from MediaWiki
2015-08-02 18:15:36 +03:00
Amir E. Aharoni d81867a7fb Change the autonym of ady
Similar to https://gerrit.wikimedia.org/r/#/c/223783/

This was pointed out to me at translatewiki.net,
and I verified it in a dictionary.
2015-07-10 16:24:18 +03:00
Amir E. Aharoni ae30317d7e Merge pull request #194 from wikimedia/Mjbmr-patch-1
Mjbmr patch 1
2015-07-10 16:21:48 +03:00
Amir E. Aharoni 54ec06e40d Merge branch 'patch-1' of https://github.com/Mjbmr/jquery.uls into Mjbmr-patch-1 2015-07-10 16:18:45 +03:00
Amir E. Aharoni f4b9bcf8ea Merge pull request #193 from Mjbmr/patch-2
Add Tunisian variants
2015-07-10 16:16:11 +03:00
Amir E. Aharoni f724e4a289 Remove unnecessary semicolon 2015-04-08 09:41:17 +03: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
Amir E. Aharoni da9a849b42 Show the Common language section only if the list is long enough 2015-03-14 00:48:18 +02:00
Amir E. Aharoni b6a30c3d44 Restore support for IE8
IE8 does not support Object.keys.

https://phabricator.wikimedia.org/T86516

Copying the patch from Gerrit:
https://gerrit.wikimedia.org/r/#/c/184316/
2015-02-26 10:46:35 +02:00
Amir E. AharoniandSanthosh Thottingal f44302106b For narrow ULS show one column without separators 2014-12-22 11:09:48 +05:30
Amir E. Aharoni 6d72638d6f A more explicit support for valid columns number
Only 1, 2 or 4.
2014-12-15 11:27:44 +02:00
Amir E. Aharoni f21f103de3 Simplify getMenuWidth() 2014-12-09 13:57:03 +02:00
Amir E. Aharoni 3c93da564c Select the menu width automatically
A follow-up to https://phabricator.wikimedia.org/T76196 .
2014-12-09 13:18:21 +02:00
Amir E. Aharoni dd59d4d0c8 CSS tweaks for narrow ULS 2014-12-04 00:39:57 +02:00
Amir E. Aharoni b55bc61dc7 Grid-compatible adjustable columns 2014-12-02 22:16:09 +02:00
Amir E. Aharoni 752a295ee2 Allow sending the number of lcd columns as a parameter
This is needed for https://phabricator.wikimedia.org/T76196
and may also nbe useful for many other features.
2014-12-02 13:23:22 +02:00
Amir E. Aharoni c6e26c4a4c Update the Arabic script autonym for aeb
This is consistent with
https://gerrit.wikimedia.org/r/175972
2014-11-26 12:40:25 +02:00
Amir E. Aharoni 987acc1996 Change smn back to lowercase like other Sami languages 2014-11-25 21:18:42 +02:00
Amir E. Aharoni 8cdb2262f9 Update langdb JSON with the latest yaml changes 2014-11-16 17:44:50 +02:00
Amir E. Aharoni 1007d94462 Add languages to langdb: Bari, Dinka, Songhay 2014-11-16 17:41:58 +02:00
Amir E. Aharoni abe3dd3a0d Merge pull request #163 from siebrand/mw2
Update langdb with codes and autonyms
2014-11-16 17:15:51 +02:00
Amir E. Aharoni a31872d729 Merge pull request #164 from siebrand/mw3
Update langdb with codes and autonyms used in translatewiki.net
2014-11-16 17:15:09 +02:00
Amir E. Aharoni b345da64af Change the autonym for Algerian Arabic
The incubator at https://incubator.wikimedia.org/wiki/Wp/arq uses
the Arabic script and this name.
2014-08-07 12:23:13 +01:00
Amir E. Aharoni 78589aef15 Adding Rutul language
Requested in the Russian Wikipedia for the Rutul incubator.

https://ru.wikipedia.org/wiki/Обсуждение_проекта:Разделы_Википедии_на_региональных_языках_России
2014-06-16 15:06:39 +03:00
Amir E. Aharoni 1b41a31dc6 Add the Khakas language (kjh) 2014-06-09 16:55:54 +03:00
Amir E. Aharoni bdbff7919e Changing the writing system and the autonym for Ottoman Turkish 2014-04-25 17:07:27 +03:00
Amir E. Aharoni d8fc3d4b9e Remove double scrollTop call 2014-01-06 13:30:53 +02:00
Amir E. Aharoni 2d93a37019 When clicking a region, scroll only the list and not the whole page
Downstream bug:
https://bugzilla.wikimedia.org/show_bug.cgi?id=59175
2014-01-06 11:45:29 +02:00
Amir E. Aharoni 09aeb8e29a Update the Autonym for 'cu'
Reported downstream in the Autonym repository:
https://github.com/santhoshtr/AutonymFont/issues/44
2013-12-03 20:19:21 +02:00
Amir E. Aharoni d8fdcd4baf Corrected the Unicode character in the Arab Kazakh autonym 2013-10-02 21:57:15 -07:00
Amir E. Aharoni 601a5256b8 Add missing semicolon 2013-07-08 00:23:54 +03:00
Amir E. Aharoni 0e0098fc3b Redirect fil language (Filipino) to tl (Tagalog) 2013-06-19 11:30:29 -07:00
Amir E. Aharoni 452994efa5 Added the Syriac language 2013-05-21 10:00:52 +03:00
Amir E. Aharoni 482d1beacd Merge pull request #92 from siebrand/jshint
Add .jshintrc, .jshintignore and update .gitignore
2013-04-28 03:42:38 -07:00
Amir E. Aharoni 64cc7969a7 Use the supplied position values instead of hardcoded 2013-04-26 16:11:12 +03: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 6309d1889b Comments format 2013-04-25 14:48:37 +03:00