Commit graph

96 commits

Author SHA1 Message Date
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
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
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
Jon Harald Søby
120dec6c36 [Languages] Add Nyoro (nyo)
Also add Swahili to the list of fallback languages for the
related Orutooro (ttj) language.

Bug: T354926
Change-Id: I76e901e3fa370f5f245b747beef9f7a5d3b90bca
2024-01-16 01:51:52 +00:00
Jon Harald Søby
a58151885b [Languages] Add Tooro (ttj)
Bug: T354519
Change-Id: I920e0e00ffa7f500d24cdbec1b4085f058f49495
2024-01-08 13:36:32 +00:00
Amir E. Aharoni
f5ba121261 Rename Mon language (mnw)
Bug: T352776
Change-Id: I95b009263bb0161f8f6f221543c671f535169803
2024-01-02 14:01:57 -05:00
Jon Harald Søby
440c8add85 Add Arbëresh to Names.php
Bug: T353058
Change-Id: Ia0175008f3b586b3314d9ccec6483b9c20afdd3a
2023-12-25 11:14:29 -05:00
Amir E. Aharoni
33d5ef6a70 Add Southeastern Kolami language (nit)
Bug: T353500
Change-Id: Idf8bb32620cdbda4daf62694aed0f69550780969
2023-12-15 11:47:13 -05:00
Jon Harald Søby
3b4b6c00f8 Add Guadeloupean Creole to Names.php
Bug: T353307
Change-Id: I8389b7d02befcd664f121b962ef010bc90b972d3
2023-12-14 10:11:21 +01:00
Jon Harald Søby
2c59203cb1 Add Rutul to Names.php
Bug: T352954
Change-Id: I6bc28005100fc78bc880a645a78abe443da9cfb1
2023-12-08 14:31:37 +01:00
Amir E. Aharoni
d8b8d9d058 Add Efik to Names.php
Bug: T351992
Change-Id: Ia38dd08fd9d2f8a1051ac5cdd3e2dd6e9260d0b3
2023-11-27 02:18:13 -05:00
Jon Harald Søby
9def82250e Add Komering language (kge)
Bug: T351874
Change-Id: Ia5a175d33c070c169914b42dcda218ff63986bf8
2023-11-23 22:56:29 +01:00
Winston Sung
0d2ca044f2 Languages: Add mnc/mnc-* (Manchu) to Names.php
Bug: T284043
Change-Id: Ic12d8654319c07d3541bf77a9bb4783b526184a6
2023-10-06 02:30:54 +00:00
Srishakatux
5a843fe438 Add language Karekare (kai)
* Added language code to `Names.php`
* Added namespace translations provided in incubator:
https://incubator.wikimedia.org/wiki/Talk:Wp/kai#Namespace_translations
* Added language code to release notes

Bug: T345807
Change-Id: I4ec9b2cb6c981f6e2f89b26427bbdbe7b8820ad9
2023-09-11 12:22:30 -07:00
Srishakatux
bd31b57245 Remove ak from core
- Removed ak from `Names.php`, `LanguageConvertorFactoryTest.php` files
- Deleted `MessagesAk.php` file

Bug: T333765
Change-Id: Ic43b4a556158c60a9f429023b0d9b78666642680
2023-08-21 18:46:33 -07:00
Winston Sung
86cf0dbd93 Languages: Add cpx / cpx-* (Pu-Xian Min) to Names.php
Pu-Xian Min (Puxian Min / Putian-Xianyou Min)

Added to core with I0f17091f3963a7fb7a3f32084d7ec739378321de

Bug: T343865
Change-Id: I0298132e796afd8315e0083cb9629ccfb9844ecc
2023-08-09 16:09:42 +00:00
Amir E. Aharoni
0a37637d13 Update autonym for Buginese
Bug: T341942
Change-Id: I1470d65a61d9a65d41681d4a6a49a1d78b399b0a
2023-07-16 15:41:51 +03:00
Amir E. Aharoni
3a3d0e3ae9 Add the West Coast Bajau (Sama) language (bdr)
Bug: T341545
Change-Id: If5560dad3868dcec711951c5f5b080fff4ed6ace
2023-07-11 16:03:11 +03:00
Amir E. Aharoni
a924ec5ac5 Add Betawi language (bew)
See also
https://translatewiki.net/w/i.php?title=User_talk:Bangrapip&oldid=11652488

Bug: T338416
Change-Id: Id199cb260668c3a886697ed55790a73079a232b3
2023-06-12 12:48:37 +03:00
Amir E. Aharoni
390445b343 Languages: Add language crh-ro
Only Romanian is defined as fallback. See:
https://translatewiki.net/w/i.php?title=User_talk:Amire80&oldid=11617782#Add_Fallback_language

Bug: T336919
Change-Id: Ibe5a8227f30e78b04d4ed3a1476c06fc9e725422
2023-05-27 09:21:29 +00:00
Amir E. Aharoni
54df5533fa Fix autonym for Choctaw
The capital letter in "anumpa" is unnecessary,
according to "New Choctaw Dictionary", 2016, page 40
https://choctawschool.com/media/369055/New%20Choctaw%20Dictionary.pdf

Follow-up to:
I7a277d2d39f5c737a88ecaba9ba8d0fa05ed9fda

Change-Id: Ia33645766f6e53da295a82a81d407f01e07662d6
2023-05-27 08:53:59 +00:00
Amir E. Aharoni
97fdd8bfe8 Update the documentation at the top of Names.php
Change-Id: Ib5352fd1b3655e39f7f560279c918422afa7df18
2023-05-27 11:25:04 +03:00
Liangent
504c1a9faf Implement Language Converter for yue (Cantonese)
This only implement unidirectional yue-Hant => yue-Hans per community consensus.

Bug: T59106
Change-Id: Iee936baa0a42370a723b34b09a791bf0917dcdf4
2023-05-20 16:11:11 +00:00
Lt2818
e69ed0fee9 Implement Language Converter for wuu (Wu)
Bug: T59138
Change-Id: I62507198ad4e467bf4c09f3545ce77188f47903e
2023-05-20 15:14:41 +00:00
Amir E. Aharoni
8594a7d5bf Add Iraqi (Mesopotamian) Arabic (acm)
MessagesAcm.php is mostly copied from MessagesAr.php.

Bug: T333425
Change-Id: I8bf3ff8ec555e0768c779ff669a7c677f6edaa27
2023-03-29 13:44:56 +03:00
Amir E. Aharoni
292654d65a Add Hindko language (hno)
Bug: T332113
Change-Id: I5e4751dcec6fe92081c0961b7d424ed3012c85c6
2023-03-20 09:58:33 +02:00
Amir E. Aharoni
72bfa1cd96 Add Obolo (ann), Nogai (nog), and Wolaytta (wal) languages
Bug: T331596
Bug: T331597
Bug: T331599
Change-Id: Ie651c47304ce385dae7ef525143ea56424a52da8
2023-03-09 10:27:57 +02:00
Amir E. Aharoni
03eba334b1 Add support for the Southern Dagaare language (dga)
Bug: T330266
Change-Id: Idecf74ad2d3f2f6f4bf9fd250daa21b38a05ddb9
2023-03-02 10:39:48 +00:00
C. Scott Ananian
5ef248173f ParserTestRunner: set the user language to variant when present (take 2)
In production the user language is set to the variant code, not the base
language code, and the parser test runner should match that.  Similarly,
we don't need to explicitly ::setLanguage() in the RequestContext; let
it pick up the appropriate language (actually, variant) from ::setUser().

This exposes a bug in the way ToC conversion is done, which results in
double-conversion of the ToC title.  This will be fixed in
I321cd31dae64bbf845d53282e5d28a55bc4ec319.

Some of the variant tests use Pig Latin as the target variant.  But in
order to have good results from parser tests with Pig Latin as a
variant, it needs to be "supported" aka have at least one localized
message, so we can verify that the correct localization is being done.
Some tweaks were needed to LanguageNameUtils in order to ensure that
Pig Latin is supported if (and only if) the UsePigLatinVariant is
enabled in the site configuration.

This is a revision of Ia72c960b2c7914342eb4d5e3e63f2d6af14719ad, which
had to be reverted when it broke Parsoid CI: the ParserTestRunner
used $context->getLanguage() in some places (which is the *user*
language) where it ought to have used the *page* language.

Depends-On: I318c2fb8694c90efef07f1e2951c6d9aa6b3e82f
Change-Id: I0c9c9fec920f7cb028d935e552a8f11475a23ba7
2023-02-21 17:59:34 -05:00
Amir E. Aharoni
2c9b5880ca Add Kusaal language (kus)
Bug: T329476
Change-Id: Ie3c9d5c71b3b39270e8de229277090e788e918b2
2023-02-13 09:24:23 +02:00
C. Scott Ananian
2430df0a6b Revert "ParserTestRunner: properly set the user language when a variant is present"
This reverts commit 7bc46b3335.

Reason for revert: This seems to regress parser tests involving language converter, which are included in the parsoid repository but not (for some reason) in core.  Since this breaks Parsoid CI, I'm reverting this patch until I can investigate and fix those issues.

Change-Id: I6bc8e425ea35de4e9237895d48ed0178f8641500
2023-02-01 23:01:16 +00:00
C. Scott Ananian
7bc46b3335 ParserTestRunner: properly set the user language when a variant is present
In production the user language is set to the variant code, not the base
language code, and the parser test runner should match that.  Similarly,
we don't need to explicitly ::setLanguage() in the RequestContext; let
it pick up the appropriate language (actually, variant) from ::setUser().

This exposes a bug in the way ToC conversion is done, which results in
double-conversion of the ToC title.  This will be fixed in
I321cd31dae64bbf845d53282e5d28a55bc4ec319.

Some of the variant tests use Pig Latin as the target variant.  But in
order to have good results from parser tests with Pig Latin as a
variant, it needs to be "supported" aka have at least one localized
message, so we can verify that the correct localization is being done.
Some tweaks were needed to LanguageNameUtils in order to ensure that
Pig Latin is supported if (and only if) the UsePigLatinVariant is
enabled in the site configuration.

Depends-On: I318c2fb8694c90efef07f1e2951c6d9aa6b3e82f
Change-Id: Ia72c960b2c7914342eb4d5e3e63f2d6af14719ad
2023-02-01 13:17:22 -05:00
Winston Sung
99bc537548 Minor adjustments for Names.php and LanguageCode.php
kk has suppress-script: Cyrl in BCP 47, so kk-cyrl-kz won't be added,
 non-Cyrl kk-* would be converted kk-*-* to distinguish with
 kk(-Cyrl)-*.

Bug: T321639
Change-Id: I6e58628f912222f73f8e94c01d5a3b43c2f15c30
2023-01-29 16:46:48 +00:00
Amir E. Aharoni
145f2d488d Add support for the Igala language (igl)
There are several variants for the spelling of
the autonym, with and without diacritics.
After consultation with User:AgnesAbah,
who contributed articles to Wikimedia Incubator
and wrote all the translatewiki translations,
I'm defining it using a simple string, which
is identical to English and without any diacritics.
After a community forms, this can be reconsidered.

Bug: T326526
Change-Id: I7b97f1f7be2c6e00d5f2a4254baf2262d08465c0
2023-01-09 10:06:50 +00:00