Commit graph

175 commits

Author SHA1 Message Date
Amir E. Aharoni
3846622d03 Add Central Kanuri (knc), deprecate Kanuri (kr)
Should be merged only when appropriate for
migrating from "kr" to "knc" on translatewiki.
See bug T356144.

The autonym is from Ethnologue.

The namespace translations are by User:MohammedBama123
(Mohammed Mustapha Bulama), shared at:
https://incubator.wikimedia.org/w/index.php?title=Talk:Wp/knc/Main_Page&oldid=6416513#Namespaces

Bug: T356144
Change-Id: Ifa1a692619d3b12e279cc74482b6327262fcb20f
2024-10-20 19:18:46 +00:00
NMW03
4059ae0ffc Change name of dtp language
Bug: T375891
Change-Id: Ic3def3ecfce481f5a35615182e3acfcecf911f12
2024-10-17 17:01:38 +00:00
Umherirrender
e662614f95 Use explicit nullable type on parameter arguments
Implicitly marking parameter $... as nullable is deprecated in php8.4,
the explicit nullable type must be used instead

Created with autofix from Ide15839e98a6229c22584d1c1c88c690982e1d7a

Break one long line in SpecialPage.php

Bug: T376276
Change-Id: I807257b2ba1ab2744ab74d9572c9c3d3ac2a968e
2024-10-16 20:58:33 +02:00
James D. Forrester
91a37f53b4 Switch over a bunch of class_alias uses to actuals
Change-Id: Id175a83e71cc910eaee5d5890a9106872a3ca3b8
2024-10-03 17:09:36 +00:00
Amir E. Aharoni
5c1765fc21 Add Southern Ndebele language (nr)
This is done experimentally, with only a Names.php entry and
namespace translations, before we have actual localized strings.
For details, see https://www.mediawiki.org/wiki/Future_of_Language_Incubation.

I've tested it on my local MediaWiki instance, and it works
as expected: no user interface translations, but the namespaces
appear corretly in page titles, Special:AllPages, etc.,
when `$wgLanguageCode = 'nr'` is set in LocalSettings.php,
and the language name appears correctly in the dropdown in the
"Internationalisation" section in the Preferences.

Bug: T375377
Change-Id: I44cf6a6dabf2ade873506a78573db4f7783a9c99
2024-10-02 17:57:34 +00:00
jenkins-bot
659914b47b Merge "Add Duala language (dua)" 2024-10-02 16:33:19 +00:00
Amir E. Aharoni
0e08e6a999 Update autonym for Komering (kge)
Bug: T375947
Change-Id: I6c343a277630fbf2da3214ab7191172dda465c15
2024-10-02 12:55:58 +00:00
Amir E. Aharoni
6e9637a7ec Add Duala language (dua)
Bug: T376248
Change-Id: I70a4b323cbf1b6e34b9a079799daa8e33240cb30
2024-10-02 07:35:54 -04:00
jenkins-bot
5e4b3cfd3a Merge "Fix Manchu language configuration" 2024-09-30 18:32:58 +00:00
jenkins-bot
ffb4d6b26c Merge "Add Luba-Lulua (lua) to Names.php" 2024-09-30 15:58:55 +00:00
Amir E. Aharoni
d4921ec7aa Add Luba-Lulua (lua) to Names.php
Bug: T375999
Change-Id: I7eb614c7fd968f245e60b644a4c87028d2fe3fcb
2024-09-30 10:10:04 -04:00
Amir E. Aharoni
045a561d6e Fix Manchu language configuration
This reflects the actual situation on translatewiki
and in the i18n json files:
* mnc is the main code, and it is in the Latin script
* mnc-mong is in the Mongolian script
* mnc-latn is a compatibility redirect to mnc

In the future, we may swap between mnc and mnc-latn,
but for now, let's at least make sure that the two
variants are supported in core properly.

This also adds namespace translations
given by User:MiiCii at
https://translatewiki.net/w/i.php?title=User_talk:MiiCii&oldid=12654825
(Note the different "Category" translation towards
the end.)

Bug: T284043
Change-Id: I3998d84aa51f3fced5642f611ba235687f4fe003
2024-09-30 00:50:25 -04:00
Umherirrender
78da6c88f1 languages: Use const in Language::segmentByWord overrides
Keep the string once,
no need to build the regex each time the function is called
Use single quote strings, remove extra slash escape

Change-Id: I525c2bd287f4dc70d7423b19e2164044acf3d95e
2024-09-28 23:21:29 +02:00
Amir E. Aharoni
fe485a0135 Add Interslavic (Cyrillic; isv-cyrl)
Also add gender aliases to Interslavic (Latin)
and custom plural rules for isv-cyrl.

Bug: T375360
Change-Id: I1ea5e36b09a4eecbc0edf085deb50a392f7fcca5
2024-09-23 10:15:53 -04:00
jenkins-bot
c22e07fd1e Merge "Update English langauge name of Puxian (cpx) in comments" 2024-09-22 13:28:22 +00:00
Winston Sung
2bcd8f66c7 Update English langauge name of Puxian (cpx) in comments
Change-Id: I6b3a57958e1626f5ee7c1d8ac24ab87ff84c8dc8
2024-09-22 06:31:15 +00:00
Winston Sung
a60faebdbd Languages: Fix written script for Xiang (hsn)
The Xiang on translatewiki and Wikimedia Incubator Wikipedia-hsn were written in Traditional Han script (Hant) instead of Simplified Han script (Hans):

https://translatewiki.net/wiki/Portal:Hsn
https://incubator.wikimedia.org/wiki/Wp/hsn

Change-Id: I2b0566cb6f13556002b38f6bc9df08f7b9c6d2a4
2024-09-22 06:26:49 +00:00
Amir E. Aharoni
91074b8726 Add Tigre (tig) to Names.php
Bug: T375052
Change-Id: Ie7b2db805386e6eb3d3603f6d0686f27450bbf76
2024-09-20 17:24:01 +00:00
jenkins-bot
b2398e7d27 Merge "language: More use of const and cleanup" 2024-09-17 23:19:49 +00:00
Umherirrender
79a9d81418 languages: Convert Names::$names to constant
Deprecate the old static variable as it is used in some extensions

Change-Id: Ifddb6a95d0d81fef4c480ef96dbc1fc9cbb93401
2024-09-17 22:25:10 +00:00
Umherirrender
2f0d2b327f language: More use of const and cleanup
php allows to combine strings and arrays in const,
use this to move more code in the converter to const.
Use typed properties
Also cleanup whitespaces a bit

Change-Id: I7b7796b48aacf76dce658364d17cdc84d644e40d
2024-09-17 18:26:42 +00:00
Umherirrender
eb28edd84e language: Add missing documentation to class properties
Add doc-typehints to class properties found by the PropertyDocumentation
sniff to improve the documentation.

Once the sniff is enabled it avoids that new code is missing type
declarations. This is focused on documentation and does not change code.

Change-Id: I73c413727a63d14efb5028b27128784c98724110
2024-09-17 18:25:25 +00:00
Umherirrender
f1804bd6d4 language: Use const keyword for mapping of strings
The variables on the converter are not usable outside of the class,
so making the public ones also private.

Change-Id: I6087dcdac761916359009548beb5210671a32ee5
2024-09-17 18:24:55 +00:00
Amir E. Aharoni
1447542bb2 Fix comment spelling in Names.php
Change-Id: I5a989a1ad35f4459c96fc12f74cb1e17894fcb0a
2024-09-13 18:03:53 -04:00
Amir E. Aharoni
3a275a80aa Add Haryanvi language (bgc)
Bug: T364737
Change-Id: Ic88ea60db67ed32dd8ac4534025f71537b1d0e11
2024-08-28 14:12:16 +00:00
Winston Sung
e037af51b8 Languages: Add nan-latn-tailo (Minnan - Tâi-lô) to Names.php
First export in commit 5c6b75659f
(Change-Id Ied5002d2ca82a05d69e55442561f254f610e0d5c ).

Language codes nan, nan-hani, nan-latn will be used for language
converter codes.

Bug: T354937
Bug: T369899
Change-Id: If68512a24cac67daa033a634b1fb57d872d0039c
2024-08-22 03:56:56 +00:00
Chiefwei
7816d3e4e8 Chinese Conversion Table Update 2024-3.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: I02396a408fb00ef32ddf6d9b164f37dffc3e0dab
2024-08-18 13:35:42 +08:00
Chiefwei
3f579dd6e4 Chinese Conversion Table Update 2024-3
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: I50920b1be658741bfb3643e3992b3ebd6727e0ec
2024-08-11 15:16:55 +00:00
jenkins-bot
c4293309e9 Merge "Chinese Conversion Table Update 2024-2" 2024-08-09 13:35:28 +00:00
jenkins-bot
e2fe610284 Merge "Languages: Add nan-latn-pehoeji (Minnan - Pe̍h-ōe-jī) to Names.php" 2024-07-29 09:16:52 +00:00
Amir E. Aharoni
180082f968 Add Saint Lucian Creole (acf)
Bug: T371051
Change-Id: I1ebd651aa9a4bd15a1f4dc898abdae7a8efb4406
2024-07-26 09:23:40 +00:00
Winston Sung
3a453c1446
Languages: Add nan-latn-pehoeji (Minnan - Pe̍h-ōe-jī) to Names.php
First export in commit 754c37901f
(Change-Id Ie16c8fbd777a51cebafd32cd1406907c763be975 ).

Language codes nan, nan-hani, nan-latn will be used for language
converter codes.

Bug: T354937
Bug: T370987
Change-Id: Ia87cfa3ec3a71e554ba767bacdb970549454aa93
2024-07-25 19:03:12 +08:00
Amir E. Aharoni
fbdfae31b0 Add Nupe language (nup)
MessagesNup.php will be added later when we have namespaces.

Bug: T370123
Change-Id: I2504d4005a5a706448a0f784d38987e693254bbe
2024-07-17 18:51:37 -04:00
Winston Sung
f8251387cf Languages: Add hak-* (Hakka) to Names.php
This included hak-hans, hak-hant, hak-latn.

Change-Id: If464fafeaa2360e31971f75c3c234bc4a6e694aa
2024-07-16 16:23:25 +00:00
Srishakatux
e3df001920 Add Interslavic (isv-latn) to Names.php
Bug: T367688
Change-Id: I86ff1887eab5a259e1d8b310cfdd508440b4d619
2024-07-10 11:51:08 -07:00
Amir E. Aharoni
089ef48379 Remove a wrong comment about Eastern Pwo language
Change-Id: If288155053798fe8d7232ff711e4967e4178d21a
2024-07-06 17:37:43 -04:00
Amir E. Aharoni
ced0a26571 Add Iban language
MessagesIba.php will come later, when I get
the fallbacks and namespace names.

Bug: T367991
Change-Id: I181f29469a3880a3192f33042b026a20e889d5f1
2024-06-30 05:00:56 +00:00
Amir E. Aharoni
0fa5be8d22 Update the autonym for Tai Nuea
Change-Id: I90adc5e7d1057b4172c82d7cc66da683fc332d30
2024-06-29 19:13:45 -04:00
Amir E. Aharoni
17a5a0c666 Replace a comment in Names.php with a Phabricator reference
Bug: T368698
Change-Id: I5982fc6d7fba062c312346d15e85f709a3f4582a
2024-06-28 07:44:51 +00:00
Amir E. Aharoni
766edbd483 Clean up comments in Names.php
1. Remove "ruq-grek", which was commented long ago
   and doesn't have any localization or content on
   Wikimedia projects. (No prejudice against
   supporting it on translatewiki.net if there
   is demand.)
2. For consistency, move a comment about cpx
   to the end of the line. Also remove the old
   unused name of the language.

Change-Id: Iee2ed3d3d85bd16b92c429365b5e5a7bcd75eeb1
2024-06-28 03:24:30 +00:00
Chiefwei
d4ed98177c Chinese Conversion Table Update 2024-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: I4da56d4083406639a41a15de6ed9263411217ac3
2024-06-10 10:09:20 +08:00
Amir E. Aharoni
7db25be607 Update the autonym for language ku-arab
Bug: T360021
Change-Id: I8eac135ffbcc68901c1a00b7219f43087af1850c
2024-05-30 10:27:15 -04:00
Amir E. Aharoni
7619137919 Add the Chakma language
A little history: This is the first time that the $linkTrail
regular expression uses \p with a script name and not explicit
characters or code point numbers.

Bug: T365365
Change-Id: Ia3cf06b8241f74772608179605f1fd7f08a08f8c
2024-05-20 10:44:45 -04:00
Amir E. Aharoni
2ebd610140 Add support for the Musi language (mui)
Autonym according to Ethnologue is "Baso Palembang".
This is also the name most commonly used by the
language's speakers according to the article
Alsamadani, Mardheya; Taibah, Samar (2019).
"Types and Functions of Reduplication in Palembang".
Journal of the Southeast Asian Linguistics Society.

Bug: T364291
Change-Id: I4a867a8671ab32366aa459d49361682305b67dcb
2024-05-06 11:34:54 +00:00
Derk-Jan Hartman
12fc918b4c Add apc autonym to MediaWiki
MessagesApc.php is mostly copied from MessagesAr.php.

Bug: T290657
Change-Id: I10c94ca1bbb168c2d8ec0825a9b9e13cd854d284
2024-04-30 20:54:38 +03:00
Taavi Väänänen
ed7e787f32
Ignore/fix MediaWiki.Commenting.PropertyDocumentation.WrongStyle
Fix the real issues found by this sniff, and convert the remaining
false positive ignores to per-line ignores so that any more real issues
won't be added.

Change-Id: I18e75d59df327e2d93a3a487c115e92b9f268722
2024-04-22 18:26:14 +03:00
Winston Sung
0e4684b4e5 Languages: Add nan-hant (Minnan - Traditional Han script) to Names.php
First export in commit d00df6b018
(Change-Id Ie05945912bfed800b5627a306559f21109ccafd2 ).

Language codes nan, nan-hani, nan-latn will be used for language
converter codes.

Bug: T354937
Bug: T362041
Change-Id: Id78405dea23858ea8369fbfc1e655e98d827e89a
2024-04-19 14:08:20 +00:00
Jon Harald Søby
1df54ce20e Implement language converter for Standard Moroccan Amazigh (zgh)
Requested by the zgh community in the Wikimedia Incubator at [1];
the converter is the same as for Shilha (`shi`); the main difference
between the two languages is that the main script for `zgh` is
Tifinagh, which can't be losslessly converted to the Latin script
(the former is unicameral, the latter is bicameral), so the
converter and configuration added here is essentially one-directional.

[1] https://incubator.wikimedia.org/wiki/Special:PermaLink/6060805

Change-Id: I483a1594f001226439497f0870176e9a1e447458
2024-04-11 16:40:50 +02:00
Jon Harald Søby
4ea723b5ab [Languages] Add Ibibio (ibb)
Bug: T357879
Change-Id: Ic66ce8ff32523e05d40b99dda7a48bc5c60b146c
2024-02-19 15:32:22 +00:00
Amir E. Aharoni
36501ad5b6 Languages: Add Chinook Jargon (chn) to Names.php
There's nothing to add to MessagesChn.php for now.
linkTrail will be needed, but I'm discussing this at
https://translatewiki.net/wiki/User_talk:POSSUM_chowg?oldid=12212474

Bug: T356616
Change-Id: Ifb21c5237adeeb900fa25974a31b49bb63aea253
2024-02-13 19:03:16 +00:00