Commit Graph

192 Commits

Author SHA1 Message Date
Abijeet
f692c69a9f Update Node.js versions to 1.0.2 2021-04-01 11:28:45 +03:00
Abijeet
48afd1c4ac Fix y18n (required by mocha) related security warning
Fixes CVE-2020-7774

Not a major issue for us since it's only a dev dependency.
2021-04-01 11:04:08 +03:00
Amir Aharoni
2ddadd3a7f Add the Kom language (bkm)
Requested at
https://translatewiki.net/wiki/Thread:Support/Please_add_the_Kom_language

Autonym as used in the introduction to
Provisional Kom - English Lexicon by Randy Jones (2001),
and confirmed by a native speaker.
2021-03-31 17:34:57 +05:30
Amir Aharoni
8cb7a35b3a Add the Basaa language (bas)
Requested at
https://translatewiki.net/wiki/Thread:Talk:Support/Ajouter_la_langue_bassa%27a

Autonym according to
Hyman, Larry M. (2003). "Basaá (A.43)".
In Nurse, Derek; Philippson, Gérard (eds.).
The Bantu Languages. Routledge. pp. 257–282.
2021-03-31 17:23:47 +05:30
Amir E. Aharoni
bd6c26cdf2 Add Belizean Creole (bzj) (#150)
Requested at
https://translatewiki.net/wiki/Thread:Template_talk:Disabled_language/Enabling_Belizean_Creole
2021-03-30 16:14:41 +05:30
Amir Aharoni
29025c63f2 Add nan-hani
Requested downstream:
https://phabricator.wikimedia.org/T180771
2021-03-08 18:05:53 +05:30
Amir E. Aharoni
349589fc1f Consistently use parentheses in Chinese-script autonyms (#148)
Addresses #141.

Co-authored-by: Kartik Mistry <kartikm@users.noreply.github.com>
2021-03-08 17:55:27 +05:30
Amir Aharoni
a73375d0df Add a newline to the end of language-data.json
This helps Git and Vim be less confused about diffs.
It somehow sometimes happens that a newline is added to
the end of language-data.json, but sometimes it is not added,
and then Git diff shows it as removed or added. This change
ensures that it's always added.
2021-03-08 17:30:07 +05:30
Amir Aharoni
06865e7f19 Update the autonym for guc
The name "Wayúu" appeared a long time ago in translatewiki,
and it's unclear what is its source. All the sources that I can
find say that autonym is "wayuunaiki", for example Ethnologue and
Diccionario básico ilustrado wayuunaiki-español español-wayuunaiki
(Editorial Fundación para el Desarrollo de los Pueblos Marginados, Bogotá, D.C., 2005)
2021-03-08 16:54:39 +05:30
Amir Aharoni
7181b2ecb7 Add Nuer language (nus)
Requested at https://translatewiki.net/wiki/Support ,
but I cannot link to the request as it had to be
deleted because of a LiquidThreads bug.
2021-02-25 17:14:29 +05:30
Amir Aharoni
e60f8f5c9b Add Aruba Papiamento
Requested at
https://translatewiki.net/wiki/Support#Activate_new_language-code:_Papiamento_(pap-aw)_58665

The name "Papiamento" (with -o) is used in the standard Aruba
spelling, and the -o in the end in enough for speakers to recognize
as the Aruban variant.
2021-02-25 17:12:46 +05:30
Amir Aharoni
c8f3512df5 Cleanup the data for the Talysh language
In the years that have passed since I wrote a comment saying
that this language is "complicated", I found sources that clearly
show that the primary alphabet for this language now is Latin.
See https://en.wikipedia.org/wiki/Talysh_language#Scripts

MediaWiki's Names.php was updated, too.
2021-02-25 17:11:31 +05:30
Amir Aharoni
56c2163547 Add Rohg to rtlscripts
This is added automatically by `php ulsdata2json.php`.
It should have been added in #137, but for some reason wasn't.
2021-02-25 10:59:45 +02:00
Amir Aharoni
d2c3ea7e21 Add Carpathian Romani
Requested for translatewiki at
https://translatewiki.net/wiki/Thread:Support/Activate_new_language:_rmc_carpathian_romani-roma%C5%88i_%C4%8Dhib
2021-02-23 20:22:28 +02:00
Niklas Laxström
07efae50c5 Update PHP development dependencies (#139) 2021-01-28 14:35:10 +05:30
Abijeet
3a0ca41914 Update node package.json version 2021-01-28 10:40:22 +02:00
Abijeet Patro
52038262e7 Add MLEB notes 2021.01 2021-01-28 10:40:22 +02:00
Amir E. Aharoni
f8bc4b8cd4 Add Rohingya language (rhg) (#137)
There's a Wikimedia Incubator in it, so it may become useful.
2021-01-25 11:24:36 +05:30
Amir Aharoni
c0f628fb15 Add Nanai and Gungbe languages
Requested at translatewiki:
https://translatewiki.net/wiki/Thread:Support/please_add_Nanai_language
https://translatewiki.net/wiki/Thread:Support/_guw_Activate_new_language:_Gun_-_%27Gun

Nanai autonym according to Chemyshev and Onenko dictionary, as well as xisango.ru.

Gun autonym according to Ethnologue.
2021-01-15 16:01:17 +02:00
Amir Aharoni
4b7cee6c3d Update the autonym of language shi
This language is known in English as Shilha, Tashelhit,
Tachelhit, and also by some other names.

The most authoritative modern name in the language itself
is Taclḥit, with the letter c. It appears in the textbook
"Méthode de tachelhit, langue amazighe (berbère) du sud du Maroc"
by Abdallah El Mountassir and also in the online
"Dictionnaire Général de la Langue Amazighe Informatisé"
( https://tal.ircam.ma/dglai/lexieam.php ). It also directly
corresponds to the spelling in the Tifinagh script.

This change was requested by the localizers in translatewiki
and authors in the Wikipedia Incubator in this language.
2020-12-31 14:32:52 +02:00
Amir Aharoni
4a61360950 Return an empty array if there are no languages in territory
Only JavaScript is modified here. The corresponding PHP function
is unchanged to preserve consistency with other PHP functions.

Corresponding pull request in jquery.uls:
https://github.com/wikimedia/jquery.uls/pull/370

Downstream bug:
https://phabricator.wikimedia.org/T265158
2020-12-23 15:01:28 +02:00
Amir E. Aharoni
7093fe88cf Add languages elm, izh, nog (#131)
They appear in translatewiki's local configuration,
but not here in language-data. The data about all of these
is stable enough to be here.

Co-authored-by: Niklas Laxström <niklas.laxstrom@gmail.com>
2020-12-23 11:56:46 +05:30
Amir Aharoni
762b7c5e0c Add the Nias (nia) language 2020-12-22 20:16:51 +02:00
Amir E. Aharoni
4901f51ee5 Add a simple test for validity of language codes (#132)
The reason I'm adding it is that recently I almost submitted
a patch in which I wrote a language code with the Cyrillic letter о
instead of the corresponding Latin letter. It's not a perfect test,
but it's good enough for a basic check.
2020-12-22 16:17:19 +02:00
Niklas Laxström
3d3f06592b Fix PHP builds (#134)
Pin image to specific version so that we don't get surprise failures
down the line.

Use common action to configure the default PHP version (the matrix
versions only affect test running).

Update PHP versions to supported versions in this image.
2020-12-21 20:28:18 +05:30
Amir Aharoni
17280471cc Change capitalization for koi, olo, and vro
Corresponds to MediaWiki change:
https://gerrit.wikimedia.org/r/c/mediawiki/core/+/648536
2020-12-14 12:19:43 +05:30
Amir Aharoni
69074e2475 Add the Tyap language (kcg)
Requested at
https://translatewiki.net/wiki/Thread:Category_talk:User_languages/New_Language_Addition

Autonym spelling according to
https://www.sil.org/resources/archives/53626
2020-12-09 12:38:39 +05:30
Amir E. Aharoni
190423dd29 Update Min Dong Chinese languages (#127)
Originally written by yjfvictor at
https://github.com/wikimedia/language-data/pull/58

Updated more conservatively by Amir E. Aharoni.
This is probably a transition to allow the splitting
to two variants. "cdo" will be reconfigured later
once the transition in other MediaWiki-related
properties will be over.

Co-authored-by: yjfvictor <yjf_victor@hotmail.com>
2020-12-01 20:48:15 +05:30
Abijeet
a9e9bd5640 Fix review comments 2020-10-27 15:17:12 +02:00
Abijeet
da6be2240d Update Changelog for 2020.10 release
Bug: T266462
2020-10-27 15:17:12 +02:00
Abijeet Patro
6c6d02b153 Bump Node.js package version to 1.0.0 (#123)
Update the major version as we are dropping support for Node 8.x

Bug: T266462
2020-10-27 17:16:31 +05:30
Abijeet Patro
61d3d26e4c Bump eslint-config-wikimedia to 0.17.0 (#120)
Had to update eslint to ^7.9.0 since we are using new rules:
* no-loss-of-precision
* no-unreachable-loop

Bug: T266462
2020-10-27 17:09:39 +05:30
Abijeet Patro
3ef31ed26a Bump minimum Node.js version to 10.x (#122)
In a subsequent patch #120, we bump eslint-config-wikimedia to
0.17.0, which also requires bumping eslint to 7.9.0 which drops
support for Node.js 8.x

Bug: T266462
2020-10-27 17:03:00 +05:30
Abijeet
90acf1ca7e Update mediawiki-codesniffer to 31.0.0
Bug: T266462
2020-10-26 17:15:38 +02:00
Amir E. Aharoni
51685b542b Add a redirect from cbk-zam to cbk (#119)
Other Chavacano varieties don't have codes. The have very few speakers,
and aren't expected to be used distinctly. In such cases we usually
redirect the specific code to a general standard code.

Addresses downstream bug:
https://phabricator.wikimedia.org/T263717
2020-09-29 12:14:29 +05:30
Amir Aharoni
843f44bcaf Reorder language code "ko"
Automatically generated by ulsdata2json.php
2020-09-24 13:19:32 +05:30
Santhosh Thottingal
e7be264b43 Version update: 0.2.2 (#117) 2020-07-28 10:55:19 +05:30
Abijeet Patro
6e978475da Add entrypoint in package.json
Fixes: #115
2020-07-28 10:08:08 +05:30
Amir Aharoni
0796ffdb04 Update autonyms for Altai languages
Requested by the speakers. "alt" is the main literary language,
so it's called just "Altai", and the word "language" is necessary,
similarly to how it's done in the related Sakha and Tuvan languages.
2020-07-24 20:39:25 +03:00
Abijeet
762dd9c5f0 Add Changelog for 2020-07 release
Also update npm package version to 0.2.1

Few tweaks to the CHANGELOG introduction section
2020-07-23 17:40:55 +03:00
Abijeet Patro
da729f4635 Update lodash to 4.17.19 (#111)
See: https://github.com/advisories/GHSA-p6mc-m468-83gw

Co-authored-by: James D. Forrester <jforrester@wikimedia.org>
2020-07-23 13:39:32 +02:00
Abijeet Patro
6358181403 Fix link in README to PHP API documentation (#112) 2020-07-23 13:37:57 +02:00
Amir Aharoni
224f37347a Add Baoule (bci) 2020-07-22 19:38:53 +03:00
Amir Aharoni
b5bc1371f4 Add Obolo (ann) and Mara (mrh)
Requested at:
* https://translatewiki.net/wiki/Thread:Support/Obolo_language_localizations
* https://translatewiki.net/wiki/Thread:Support/Request_for_a_new_language.
  (The full stop is a part of the URL.)
2020-07-01 14:05:32 +05:30
Amir Aharoni
49884742e0 Add Altay languages
Used in the Wikimedia Incubator and in translatewiki.
2020-06-22 17:00:16 +05:30
Amir Aharoni
4b99afb807 Add Nuxalk language
Requested at
https://lists.wikimedia.org/pipermail/wikipedia-l/2020-June/031951.html
2020-06-22 16:57:57 +05:30
Amir Aharoni
d99a1a8177 Change Madurese autonym to capital
According to "Pedoman Umum Ejaan Bahasa Madura yang Disempurnakan" (2008, page 8),
names of languages are supposed to be written with capital letters.

Online book:
http://repositori.kemdikbud.go.id/1761/1/Ejaan%20Bahasa%20Madura%20Yang%20Disempurnakan%20%282008%29.pdf
2020-05-28 15:40:44 +03:00
Abijeet Patro
0cb3a0f06d Update release date and language changes 2020-05-26 11:05:07 +03:00
Amir E. Aharoni
d60d8bd629 Add Madurese (mad) (#104)
This is needed for better support of the Wikipedia Incubator
( https://incubator.wikimedia.org/wiki/Wp/mad )
and translatewiki.

Autonym spelling according to this dictionary:
Adrian Pawitra, "Kamus lengkap bahasa madura—indonesia"
(The title is in Indonesian and hence spelled differently.)
2020-05-26 13:21:43 +05:30
Abijeet Patro
62f05a46f2 Remove indications / comments that we use CLDR data only (#103) 2020-05-26 10:49:56 +03:00