Add Xiang Chinese to Names.php

Also, we have well over 400 languages now, and RELEASE-NOTES
are updated accordingly.

Bug: T291899
Change-Id: I90877b5f0cde678537eed1a68e0a8fbdddb326ff
This commit is contained in:
Amir E. Aharoni 2021-09-28 10:16:38 +03:00
parent e8fe4ec8a4
commit 441be18a7c
3 changed files with 42 additions and 2 deletions

View file

@ -86,11 +86,11 @@ For notes on 1.36.x and older releases, see HISTORY.
* …
=== Languages updated in 1.38 ===
MediaWiki supports over 350 languages. Many localisations are updated regularly.
MediaWiki supports over 400 languages. Many localisations are updated regularly.
Below only new and removed languages are listed, as well as changes to languages
because of Phabricator reports.
*
* (T291899) Added language support for Xiang Chinese (hsn).
=== Breaking changes in 1.38 ===
* (T291008) The IP class, deprecated since 1.35 in favor of the IPUtils library,

View file

@ -201,6 +201,7 @@ class Names {
'hr' => 'hrvatski', # Croatian
'hrx' => 'Hunsrik', # Riograndenser Hunsrückisch
'hsb' => 'hornjoserbsce', # Upper Sorbian
'hsn' => '湘语', # Xiang Chinese
'ht' => 'Kreyòl ayisyen', # Haitian Creole French
'hu' => 'magyar', # Hungarian
'hu-formal' => "magyar (formal)", # Hungarian formal address

View file

@ -0,0 +1,39 @@
<?php
/** Xiang Chinese (湘语)
*
* To improve a translation please visit https://translatewiki.net
*
* @ingroup Language
* @file
*
* @author Amir E. Aharoni
*/
$fallback = 'zh-hans';
$linkTrail = '/^()(.*)$/sD';
// Copied from Chinese (Simplified)
$datePreferences = [
'default',
'ISO 8601',
];
$defaultDateFormat = 'zh';
$dateFormats = [
'zh time' => 'H:i',
'zh date' => 'Y年n月j日 (l)',
'zh both' => 'Y年n月j日 (D) H:i',
];
// Copied from Chinese (Simplified)
$bookstoreList = [
'AddALL' => 'http://www.addall.com/New/Partner.cgi?query=$1&type=ISBN',
'Barnes & Noble' => 'http://search.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=$1',
'亚马逊' => 'https://www.amazon.com/exec/obidos/ISBN=$1',
'卓越亚马逊' => 'https://www.amazon.cn/mn/advancedSearchApp?isbn=$1',
'当当网' => 'http://search.dangdang.com/search.aspx?key=$1',
'博客来书店' => 'http://www.books.com.tw/exep/prod/booksfile.php?item=$1',
'三民书店' => 'http://www.sanmin.com.tw/page-qsearch.asp?ct=search_isbn&qu=$1',
'天下书店' => 'http://www.cwbook.com.tw/search/result1.jsp?field=2&keyWord=$1',
'新丝路书店' => 'http://www.silkbook.com/function/Search_list_book_data.asp?item=5&text=$1'
];