Commit graph

198 commits

Author SHA1 Message Date
Timo Tijhof
e07a279a39 language: Add MediaWiki\Languages\Data namespace to PSR-4 autoloader
Bug: T225756
Change-Id: I7e30a5f5c9f3c36e8a9e3f1fb6ebebb3bbe727ab
2021-08-10 22:00:25 +00:00
Timo Tijhof
f3ef7f7f23 language: Autoload normalize data and remove transformUsingPairFile compat
* Turn normalize data into an autoloadable class and use the class name
  as key instead of a partial file name with a base directory.

* This protected function is not aimed at re-use in extensions,
  has no other usage known to Codesearch. Mark it internal,
  and remove the compat introduced by 31283f34bf.

* Update the now ten-year-old documentation comments that described
  this as "Temporary". The functionality and comment were introduced
  in 2010 by Tim with r60599 (ad19c032b0).
  Ref <https://bash.toolforge.org/search?p=0&q=temporary>.

* Replace the broken wikitech-l archive link with a working one,
  and describe the thread for easier future reference.

Bug: T225756
Change-Id: I004da1f25c19e1095d0917349f2ba8461f9f0715
2021-08-10 21:03:13 +00:00
Amir Aharoni
f523635a60 Add Baoule (bci) to Names.php
Bug: T287345
Change-Id: If1796a156a45046d43ecceb044718a2de27295e6
2021-07-26 10:21:22 +03:00
Amir Aharoni
58cef29d69 Add Gun (Gungbe, guw) to Names.php
Bug: T286460
Change-Id: I6e95d446faad3838f715fdfa2302ec0c9dc11c37
2021-07-13 06:08:49 +00:00
Fomafix
ea1b06c150 Fix various typos in documentation
Bug: T201491
Change-Id: Ifa1b84b28ea97dfb4212658b02f24ee6881c1cb0
2021-06-21 00:26:07 +00:00
Amir Aharoni
3d007ba9f6 Add the Carpathian Romani (rmc) language
Link trail is copied from Slovak, because
the necessary extra letters are the same, as can
be seen in the textbook "Amari romaňi čhib"
by Eva Gašparová and Ingrid Lukáčová
(Štátny pedagogický ústav Bratislava 2016)
https://www.statpedu.sk/files/sk/metodicky-portal/metodicke-podnety/amari_romani_chib.pdf

Fallback and namespaces will be added later
if needed.

Bug: T284044
Change-Id: Ide5170432fb2c456ff863c4ea34e3183547e2d63
2021-06-01 11:36:11 +03:00
Amir Aharoni
0bf5e74cdd Add the Paiwan (pwn) language
Bug: T284002
Change-Id: If39a561286f4fd504409078ee3fc7f7e3008ff41
2021-05-31 09:53:51 +03:00
jenkins-bot
d3099e280c Merge "Add namespace name translations and change autonym in the Kinyarwanda language" 2021-05-30 13:26:51 +00:00
Alexander Vorwerk
c3eb19e6cb Change lmo language name
Bug: T283423
Change-Id: I00ee11c23b1e688b01d7465225003f0f045985bf
2021-05-30 07:04:54 +00:00
Amir Aharoni
96fc7d6626 Add Wallisian (wls) to Names.php
Bug: T283480
Change-Id: If1cf94749f7bac721bf15d505f8e4368b2d3aaa2
2021-05-24 09:47:52 +00:00
Amir Aharoni
654e135392 Add namespace name translations and change autonym in the Kinyarwanda language
Contributed by Nimusenge Priscille, and verified by myself
with the Iriza Kinyarwanda Engish And English Kinyarwanda Dictionary.

Bug: T283422
Change-Id: Idfe383e2b5b6afdf205056eade3f9dfc82ddbf39
2021-05-24 09:14:01 +00:00
Amir Aharoni
5db1b563da Add the Ojibwe language (ojb)
Bug: T283053
Change-Id: Idd95e163ea876212ecbb7d2aaf0fe82168837cf2
2021-05-18 14:20:33 +03:00
Amir Aharoni
b06e06ae87 Add Malay (Arabic Jawi script, ms-arab) to Names.php
Bug: T282085
Change-Id: Ic118bdf1eba4cca7e037a78c969cd2247c1397c2
2021-05-06 13:18:43 +00:00
jenkins-bot
a4226b597a Merge "Remove RLM/LRM from Names.php" 2021-04-25 18:11:31 +00:00
jhsoby
1d485a7365 Fix dates and add plural support for Inari Sámi
Add date format for Inari Sámi; also add plural support.

There are four different forms for the plurals; nouns are inflected in
three numbers (1, 2–6 and 7+), while verbs are conjugated in singular,
dual and plural.

Change-Id: Ifa24c7e1718151517b43ded2427d5202b9e804b1
2021-04-22 17:42:01 +00:00
Amir Aharoni
c8caf26ffd Remove RLM/LRM from Names.php
This character is no longer required here.

It was added to ensure correct display of parentheses in mixed
LTR/RTL environment, for example an interlanguage link from
an RTL wiki to an LTR language with parentheses in its name.
However, the Unicode bidirectional algorithm was updated
to handle parentheses more cleverly and automatically,
making manual adjustment with RTL/LRM unnecessary.
This update was implemented years ago in all browsers and
operating systems. I've tested this in Firefox, Chrome, Edge,
and Internet Explorer 11, and it works correctly without
the RLM/LRM characters.

Parser tests are updated accordingly.

Bug: T280435
Change-Id: I63107f623ade3b8367eae579a8e96d7e2c18b747
2021-04-22 08:27:41 +00:00
Amir Aharoni
33440f23c6 Add Dagbani (dag) to Names.php
Namespace translations will be added later.

Bug: T279619
Change-Id: Icf012059e9b1913eb75479959b5fe94e4c87cbec
2021-04-08 11:52:21 +03:00
Amir Sarabadani
39d338a68f Add shy name (same as shy-latn)
Bug: T259360
Change-Id: Ieca724eceb0342c937ff3a2d64de61098b979412
2021-03-09 13:00:21 +02:00
Amir Aharoni
7f7dfebd3d Add Wayuu to Names.php
The autonym is different from the current definition in translatewiki.
The name "Wayúu" was added to translatewiki configuration in 2009,
and it's unclear what is its source. All the sources that I can
find say that autonym is "wayuunaiki", for example Ethnologue,
Diccionario básico ilustrado wayuunaiki-español español-wayuunaiki
(Editorial Fundación para el Desarrollo de los Pueblos Marginados,
Bogotá, D.C., 2005), and the Incubator Wikipedia in this language.
I also verified this with User:Maor_X, who is familiar
with the Wayuu culture.

Spanish is added as fallback, as it was in translatewiki, and it
generally makes sense, because the language is spoken in
Spanish-speaking countries and many speakers are literate
in Spanish.

Bug: T276745
Change-Id: I04d698e7c27d96f7e58c62f6f71e76142a30630d
2021-03-08 14:35:43 +02:00
jenkins-bot
04626a940f Merge "Add converter for the Talysh language (tly)" 2021-02-23 12:45:31 +00:00
jenkins-bot
41784a5f5c Merge "Chinese Conversion Table Update 2020-2" 2021-02-21 17:24:51 +00:00
Amir Aharoni
14d363c29f Add converter for the Talysh language (tly)
Mostly copied from UzConverter.

This is a very simple converter, with bidirectional one to one
correspondence: for every Latin letter there is a corresponding
Cyrillic letter and vice versa. There are no digraphs or punctuation
to convert.

The Latin alphabet is the primary one used for this language today,
and will probably remain so for the foreseeable future, so "tly" remains
the usual code, and "tly-cyrl" is added for Cyrillic.

Language name is changed:
* The main language name is now Latin.
* The word "language" ("зывон") is removed.
* The spelling of the word "Talysh" is based on the Pireyko dictionary.

Bug: T258975
Change-Id: I552e07967ea82e03c413a0b10b129a846aa007c7
2021-02-17 13:49:36 +00:00
Amir Aharoni
b025479670 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ḥiyt, 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.
They asked to define the Latin script as the primary.

The name of the variants are updated in the i18n file:
* The Latin names are changed to Taclḥit, as the Latin autonym.
* The Tifinagh name is added: it was missing, which caused
  the item in the dropdown to be invisible.

Change-Id: I23689a90460110570c54a05587e5084607268035
2021-01-01 10:17:44 +02:00
Amir Aharoni
ad12bd92d8 Add Tyap to Names.php
Bug: T270365
Change-Id: I342318fb170339c8d80c66d08a1018ed15a47dca
2020-12-17 13:45:46 +00:00
Pikne
dbb1a9ef64 Decapitalize autonyms for Võro, Livvi-Karelian and Komi-Permyak
Võro speaker reports that language names in Võro are not
capitalized, just like in Estonian:
https://et.wikipedia.org/w/index.php?diff=5771671
Also decapitalizing Livvinkarjala and Перем Коми, respectively
per usage at https://olo.wikipedia.org/wiki/Piäsivu and
https://koi.wikipedia.org/wiki/Коми-пермяцкӧй_кыв

Change-Id: Ic5c5237f101ffde70990c388bacb202d1af26a79
2020-12-13 08:40:33 +00:00
Amir Aharoni
fa5013dadb Change the autonym of the Altai language
Making it the same as in language-data. This is the main
variety, so there's no need to call it "Southern".

Change-Id: I8c667b55d59b9c40b00e835f5ff1da6dbdf9bdf7
2020-12-09 10:29:58 +00:00
Umherirrender
c85a43561e Improve class property documentation
Reformat existing documentation to match the format

Change-Id: I190b54b5e962f17bab6502dd1b3c02f11dc926d2
2020-10-30 10:38:58 +01:00
Amir Aharoni
605ff51bf1 Add accusative case to Russian language GRAMMAR
Bug: T257500
Change-Id: I30a892a936c0ed9247bc6b63be747697cb9f3e26
2020-10-10 18:03:52 +03:00
MarcoAurelio
57322997cb Add language support for Madurese (mad)
Bug: T264582
Change-Id: I5f112a8cdd1d441b73c044dfa9363db41cc4597a
2020-10-05 10:13:33 +00:00
MarcoAurelio
c5b6d7901d Names.php: Add support for Nias/Li Niha language
Bug: T263968
Change-Id: Idf8922e80c386a9f22e6e8b0ead19817b118fc38
2020-09-28 08:49:11 +00:00
jenkins-bot
1d85e0df83 Merge "Add mrh Mara to Names.php" 2020-09-15 16:22:49 +00:00
David Kamholz
a7d7c2c7db Add ban-bali to list of known language codes
This change adds ban-bali (Balinese language in Balinese script), falling back to ban (Balinese language in Latin script).

The language code ban-bali is already known to UniversalLanguageSelector and will be used on Balinese Wikisource (currently in development, hosted on Multilingual Wikisource). ban-bali will likely be used as a page language only for now, or for pieces of text within pages. It's important to make it available as a page language so that ULS can apply the correct font.

Bug: T245359
Change-Id: Icaff92904e9d1250c8c84bfcc6cfa3ebcb5230bd
2020-08-18 14:46:32 -07:00
Jon Harald Søby
75d22c7659 Add mrh Mara to Names.php
Bug: T259330
Change-Id: I21eb638434a3ca77d55491c08b881383c89911ed
2020-08-07 12:28:15 +02:00
Chiefwei
249ce4ef1f Chinese Conversion Table Update 2020-2
Update the Chinese conversion table routinely to fix bugs reported at
https://zh.wikipedia.org/wiki/Wikipedia:字词转换/修复请求.

It is only data changes and only works for Chinese WikiProjects.

Change-Id: Ife8aa010d7b1d77c2fe05df4bea856c4f36c464b
2020-08-02 18:14:47 +08:00
Base
1f44fd171a Adding default locative rule for Ukrainian
Prepending a default preposition to locative GRAMMAR forms
in Ukrainian language

Bug: T149550
Change-Id: I4649549dc3c722e53c7ea3accb6747df420e56f7
2020-06-12 09:49:03 +03:00
MarcoAurelio
9604fd92d3 languages: Add Southern Altay (alt)
Bug: T254854
Change-Id: I62c5c4a7115d0d9d3a08f038ae90b274934930a2
2020-06-09 09:53:53 +00:00
jenkins-bot
073dbe9ad3 Merge "Fix native sty name from cебертатар to себертатар" 2020-05-21 22:16:06 +00:00
Reedy
5f1000f7bd Fix languages/ PSR12.Properties.ConstantVisibility.NotFound
Change-Id: I6f88f2eaf2fc69016b99124eeb9f6e2616c148d2
2020-05-16 21:49:02 +01:00
Amir Aharoni
62642ffb49 Add Seediq (trv) to Names.php
Also known as Taroko, e.g. at
https://iso639-3.sil.org/code/trv

Bug: T215023
Change-Id: I1da162c7b996e430b5d636d3f7a7c30321262fac
2020-05-11 09:46:44 +03:00
Reedy
12a3883a7b Fix SingleSpaceBeforeSingleLineComment
Change-Id: I285af438ce484af40741489797f20455726ec110
2020-05-11 00:57:11 +00:00
RhinosF1
0bdcc942fc Add Ladin (lld) to Names.php
Bug: T251369
Change-Id: I238c50d5f667c1989c37caf11865e4d9546f4135
2020-04-29 07:49:54 +00:00
jenkins-bot
9ff388923d Merge "Change Moroccan Arabic (ary) to Arabic script" 2020-04-27 13:42:37 +00:00
Amir Aharoni
99f7e85ef9 Change Moroccan Arabic (ary) to Arabic script
Requested in bug T237672, and the Language committee
doesn't object.

Bug: T237672
Change-Id: I09925647aa03b736c95aaf34c22d16dc7ea4d102
2020-04-23 10:10:57 +03:00
Amir Aharoni
80f5d9a8bd Add Amis (ami) to Names.php
Bug: T201269
Change-Id: Icae6ccd9d67491eceef22418ae078fe08cc680d5
2020-04-17 14:16:36 +03:00
Fomafix
3dcb9d26a1 Add Inari Sami (smn) to Names.php
Autonym in lower case: anarâškielâ

https://iso639-3.sil.org/code/smn
https://www.ethnologue.com/language/smn

Also change the autonym of Southern Sami (sma) from upper case
(Åarjelsaemien) to lower case (åarjelsaemien) to be consistent to
langdb.yaml

Bug: T248299
Change-Id: I69f3322b1414a22dfa707792779d9d59cd7b837d
2020-03-26 14:01:52 +01:00
Reedy
97c6b8db99 Fix native sty name from cебертатар to себертатар
Bug: T247170
Change-Id: Iafd3d5d2de970d53fa90280bd021c594f930eb15
2020-03-07 19:52:46 +00:00
Chiefwei
2a9f94203d Chinese Conversion Table Update 2020-1
Update the Chinese conversion table routinely to fix bugs reported at
https://zh.wikipedia.org/wiki/Wikipedia:字词转换/修复请求.

It is only data changes and only works for Chinese WikiProjects.

Change-Id: Ia51d3b51e28bedffd8a8d800409e3dbe82f95187
2020-03-03 23:26:43 +00:00
Umherirrender
844c6db2b6 Set method visibility on languages classes
Change-Id: I5db62d8243ce3abd7c442de10d6143de6dd1aad3
2019-12-09 16:37:38 +00:00
Jon Harald Søby
bd66771202 Fix Shawiya's autonym in Names.php
Change from "tachawit" to "tacawit" per the community.

Bug: T194047
Change-Id: I63c8ae88a341760f6754e7f9716956f3bc33e153
2019-11-25 12:10:44 +01:00
Jon Harald Søby
8ae6125e17 Add genitive grammar for Swedish
Add file for Swedish (sv) to enable {{GRAMMAR:genitive}} in that language.

Change-Id: I6175b53a882f8fe6a9ed88e16c7464593c5ce5d3
2019-11-08 10:32:54 +00:00