wiki.techinc.nl/languages/messages/MessagesTyv.php
C. Scott Ananian 450fe7fcd8 Make {{#language}} consistent with {{#dir}} and {{#bcp47}}
Add the same no-arg options for language code that
{{#dir}} and {{#bcp47}} have, for consistency:
* `{{#language}}` will return the name of the *target language*
  (for articles, the content language; for messages, the user language)

The default value for the "in language" argument should be the autonym.
This was working previously but only via a baroque code flow path for
invalid language codes.  Make this a bit clearer and add tests.

Since non-autonym language code translations are added via the
[[Extension:CLDR]] in production, hook LanguageGetTranslatedLanguageNames
in the ParserTestRunner to ensure that we can test this.

Followup-To: Ice1c671c5b3cc077d2bb80ea5dc25c5eabbfeb36
Followup-To: I19c3e91a924e080f37dc95a0d4e61493583b533e
Change-Id: Ibf6e7f194cc056eadb48a5ad8e6d01a761d9351c
2024-07-30 20:27:17 +00:00

127 lines
8.2 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/** Tuvinian (тыва дыл)
*
* @file
* @ingroup Languages
*
* @author Agilight
* @author Andrijko Z.
* @author Kaganer
* @author Krice from Tyvanet.com
* @author Sborsody
* @author friends at tyvawiki.org
* @author לערי ריינהארט
*/
$fallback = 'ru';
$fallback8bitEncoding = "windows-1251";
$namespaceNames = [
NS_MEDIA => 'Медиа',
NS_SPECIAL => 'Тускай',
NS_TALK => 'Чугаа',
NS_USER => 'Ажыглакчы',
NS_USER_TALK => 'Ажыглакчы_чугаа',
NS_PROJECT_TALK => '$1_чугаа',
NS_FILE => 'Файл',
NS_FILE_TALK => айл_чугаа',
NS_MEDIAWIKI => 'МедиаВики',
NS_MEDIAWIKI_TALK => 'МедиаВики_чугаа',
NS_TEMPLATE => 'Майык',
NS_TEMPLATE_TALK => 'Майык_чугаа',
NS_HELP => 'Дуза',
NS_HELP_TALK => узаугаа',
NS_CATEGORY => 'Аңгылал',
NS_CATEGORY_TALK => 'Аңгылал_чугаа',
];
$namespaceAliases = [
'Aжыглакчы' => NS_USER,
'Aжыглакчы_чугаа' => NS_USER_TALK,
'Aжыглакчы_чугаазы' => NS_USER_TALK,
'$1_чугаазы' => NS_PROJECT_TALK,
айл_чугаазы' => NS_FILE_TALK,
'МедиаВики_чугаазы' => NS_MEDIAWIKI_TALK,
'Майык_чугаазы' => NS_TEMPLATE_TALK,
узаугаазы' => NS_HELP_TALK,
'Категория' => NS_CATEGORY,
'Категория_чугаазы' => NS_CATEGORY_TALK,
];
$namespaceGenderAliases = []; // T259003
/** @phpcs-require-sorted-array */
$specialPageAliases = [
'Activeusers' => [ 'Идекпейжилер' ],
'Allmessages' => [ уптуедеглелдер' ],
'AllMyUploads' => [ уптуайлдарым' ],
'Allpages' => [ упту_арыннар' ],
'Badtitle' => [ 'Хоржок_ат-сып' ],
'Blankpage' => [ 'Куруг_арын' ],
'Block' => [ 'Дуглаар' ],
'Booksources' => [ 'Ном_үндезини' ],
'BrokenRedirects' => [ 'Үзүлген_көжүрүглер' ],
'Categories' => [ 'Аңгылалдар' ],
'ChangeEmail' => [ 'Э-шуудаң_солуур' ],
'ChangePassword' => [ 'Уруң_солуур' ],
'ComparePages' => [ 'Арыннареңнээр' ],
'Confirmemail' => [ 'Э-шуудаң_бадыткаар' ],
'MyLanguage' => [ 'Дылым' ],
];
/** @phpcs-require-sorted-array */
$magicWords = [
'currentday' => [ '1', 'АМГЫХҮН', 'ТЕКУЩИЙ_ДЕНЬ', 'CURRENTDAY' ],
'currentday2' => [ '1', 'АМГЫХҮН2', 'ТЕКУЩИЙ_ДЕНЬ_2', 'CURRENTDAY2' ],
'currentdayname' => [ '1', 'АМГЫХҮННҮҢАДЫ', 'НАЗВАНИЕ_ТЕКУЩЕГОНЯ', 'CURRENTDAYNAME' ],
'currentdow' => [ '1', 'АМГЫЧЕДИХОНУКТУҢХҮНҮ', 'ТЕКУЩИЙ_ДЕНЬ_НЕДЕЛИ', 'CURRENTDOW' ],
'currenthour' => [ '1', 'АМГЫШАК', 'ТЕКУЩИЙ_ЧАС', 'CURRENTHOUR' ],
'currentmonth' => [ '1', '__АМГЫ_АЙ', '__АМГЫ_АЙ_2__', 'ТЕКУЩИЙ_МЕСЯЦ', 'ТЕКУЩИЙ_МЕСЯЦ_2', 'CURRENTMONTH', 'CURRENTMONTH2' ],
'currentmonth1' => [ '1', '__АМГЫ_АЙ_1__', 'ТЕКУЩИЙ_МЕСЯЦ_1', 'CURRENTMONTH1' ],
'currentmonthname' => [ '1', 'АМГЫАЙНЫҢАДЫ', 'НАЗВАНИЕ_ТЕКУЩЕГО_МЕСЯЦА', 'CURRENTMONTHNAME' ],
'currenttime' => [ '1', 'АМГЫҮЕ', 'ТЕКУЩЕЕ_ВРЕМЯ', 'CURRENTTIME' ],
'currentweek' => [ '1', 'АМГЫЧЕДИХОНУК', 'ТЕКУЩАЯ_НЕДЕЛЯ', 'CURRENTWEEK' ],
'currentyear' => [ '1', 'АМГЫЧЫЛ', 'ТЕКУЩИЙ_ГОД', 'CURRENTYEAR' ],
'forcetoc' => [ '0', '__АЛБАН_ЭГЕ__', '__ОБЯЗАТЕЛЬНОЕ_ОГЛАВЛЕНИЕ__', '__ОБЯЗ_ОГЛ__', '__FORCETOC__' ],
'hiddencat' => [ '1', '__ЧАЖЫТ_АҢГЫЛАЛ__', '__СКРЫТАЯ_КАТЕГОРИЯ__', '__HIDDENCAT__' ],
'img_center' => [ '1', 'төп', 'центр', 'center', 'centre' ],
'img_left' => [ '1', 'солагай', 'слева', 'left' ],
'img_right' => [ '1', 'оң', 'справа', 'right' ],
'language' => [ '0', '#ДЫЛ', '#ЯЗЫК', '#LANGUAGE' ],
'namespace' => [ '1', 'АТТАРДЕЛГЕМИ', РОСТРАНСТВОМЁН', 'NAMESPACE' ],
'namespacee' => [ '1', 'АТТАРДЕЛГЕМИ2', РОСТРАНСТВОМЁН_2', 'NAMESPACEE' ],
'namespacenumber' => [ '1', 'АТТАРДЕЛГЕМИНИҢСАНЫ', 'НОМЕРРОСТРАНСТВАМЁН', 'NAMESPACENUMBER' ],
'noeditsection' => [ '0', '__ҮЛЕГ_ЭДИЛГЕЗИ_ЧОК__', '__БЕЗ_РЕДАКТИРОВАНИЯ_РАЗДЕЛА__', '__NOEDITSECTION__' ],
'nogallery' => [ '0', '__ГАЛЕРЕЯ_ЧОК__', '__БЕЗАЛЕРЕИ__', '__NOGALLERY__' ],
'notoc' => [ '0', '__ЭГЕОК__', '__БЕЗ_ОГЛАВЛЕНИЯ__', '__БЕЗ_ОГЛ__', '__NOTOC__' ],
'ns' => [ '0', 'АД:', 'ПИ:', 'NS:' ],
'nse' => [ '0', 'АД2:', 'ПИК:', 'NSE:' ],
'numberofarticles' => [ '1', 'ЧҮҮЛДЕРНИҢСАНЫ', 'КОЛИЧЕСТВО_СТАТЕЙ', 'NUMBEROFARTICLES' ],
'numberofedits' => [ '1', 'ӨСКЕРЛИИШКИННЕРНИҢСАНЫ', 'КОЛИЧЕСТВОРАВОК', 'NUMBEROFEDITS' ],
'numberoffiles' => [ '1', 'ФАЙЛДАРНЫҢСАНЫ', 'КОЛИЧЕСТВОАЙЛОВ', 'NUMBEROFFILES' ],
'numberofpages' => [ '1', 'АРЫННАРНЫҢСАНЫ', 'КОЛИЧЕСТВО_СТРАНИЦ', 'NUMBEROFPAGES' ],
'numberofusers' => [ '1', 'АЖЫГЛАКЧЫЛАРНЫҢСАНЫ', 'КОЛИЧЕСТВО_УЧАСТНИКОВ', 'NUMBEROFUSERS' ],
'pagename' => [ '1', 'АРЫННЫҢАДЫ', 'НАЗВАНИЕ_СТРАНИЦЫ', 'PAGENAME' ],
'pagesincategory' => [ '1', '__АҢГЫЛАЛ_АРЫННАРЫ__', 'СТРАНИЦ_В_КАТЕГОРИИ', 'PAGESINCATEGORY', 'PAGESINCAT' ],
'pagesincategory_all' => [ '0', 'шупту', 'все', 'all' ],
'pagesincategory_files' => [ '0', 'файлдар', 'файлы', 'files' ],
'pagesincategory_pages' => [ '0', 'арыннар', 'страницы', 'pages' ],
'raw' => [ '0', 'ЧИГ:', 'НЕОБРАБ:', 'RAW:' ],
'redirect' => [ '0', '#көжүрүлге', '#ШИГЛЕДИР', '#перенаправление', '#перенапр', '#REDIRECT' ],
'sitename' => [ '1', 'САЙТТЫҢАДЫ', 'НАЗВАНИЕ_САЙТА', 'SITENAME' ],
'special' => [ '0', 'тускай', 'служебная', 'special' ],
'tag' => [ '0', 'демдек', 'метка', 'тег', 'тэг', 'tag' ],
'talkspace' => [ '1', 'ЧУГААДЕЛГЕМИ', РОСТРАНСТВО_ОБСУЖДЕНИЙ', 'TALKSPACE' ],
'talkspacee' => [ '1', УГААДЕЛГЕМИ2', РОСТРАНСТВО_ОБСУЖДЕНИЙ_2', 'TALKSPACEE' ],
'toc' => [ '0', '__ДОПЧУ__', '__ОГЛАВЛЕНИЕ__', '__ОГЛ__', '__TOC__' ],
];
$bookstoreList = [
'ОЗОН' => 'http://www.ozon.ru/?context=advsearch_book&isbn=$1',
'Books.Ru' => 'http://www.books.ru/shop/search/advanced?as%5Btype%5D=books&as%5Bname%5D=&as%5Bisbn%5D=$1&as%5Bauthor%5D=&as%5Bmaker%5D=&as%5Bcontents%5D=&as%5Binfo%5D=&as%5Bdate_after%5D=&as%5Bdate_before%5D=&as%5Bprice_less%5D=&as%5Bprice_more%5D=&as%5Bstrict%5D=%E4%E0&as%5Bsub%5D=%E8%F1%EA%E0%F2%FC&x=22&y=8',
'Яндекс.Маркет' => 'http://market.yandex.ru/search.xml?text=$1',
'Amazon.com' => 'https://www.amazon.com/exec/obidos/ISBN=$1',
'AddALL' => 'http://www.addall.com/New/Partner.cgi?query=$1&type=ISBN',
'Barnes & Noble' => 'http://shop.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=$1'
];