102086832SGreg Roach<?php 23976b470SGreg Roach 302086832SGreg Roach/** 402086832SGreg Roach * webtrees: online genealogy 55bfc6897SGreg Roach * Copyright (C) 2022 webtrees development team 602086832SGreg Roach * This program is free software: you can redistribute it and/or modify 702086832SGreg Roach * it under the terms of the GNU General Public License as published by 802086832SGreg Roach * the Free Software Foundation, either version 3 of the License, or 902086832SGreg Roach * (at your option) any later version. 1002086832SGreg Roach * This program is distributed in the hope that it will be useful, 1102086832SGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of 1202086832SGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1302086832SGreg Roach * GNU General Public License for more details. 1402086832SGreg Roach * You should have received a copy of the GNU General Public License 1589f7189bSGreg Roach * along with this program. If not, see <https://www.gnu.org/licenses/>. 1602086832SGreg Roach */ 17fcfa147eSGreg Roach 1802086832SGreg Roachdeclare(strict_types=1); 1902086832SGreg Roach 2002086832SGreg Roachnamespace Fisharebest\Webtrees\Module; 2102086832SGreg Roach 2202086832SGreg Roachuse Fisharebest\Localization\Locale\LocaleInterface; 2302086832SGreg Roachuse Fisharebest\Localization\Locale\LocaleTt; 2402086832SGreg Roach 2502086832SGreg Roach/** 2602086832SGreg Roach * Class LanguageTatar. 2702086832SGreg Roach */ 2802086832SGreg Roachclass LanguageTatar extends AbstractModule implements ModuleLanguageInterface 2902086832SGreg Roach{ 3002086832SGreg Roach use ModuleLanguageTrait; 3102086832SGreg Roach 3202086832SGreg Roach /** 33*4a9a6095SGreg Roach * Phone-book ordering of letters. 34*4a9a6095SGreg Roach * 35*4a9a6095SGreg Roach * @return array<int,string> 36*4a9a6095SGreg Roach */ 37*4a9a6095SGreg Roach public function alphabet(): array 38*4a9a6095SGreg Roach { 39*4a9a6095SGreg Roach return ['А', 'Б', 'В', 'Г', 'Д', 'Е', 'Ё', 'Ж', 'З', 'И', 'Й', 'К', 'Л', 'М', 'Н', 'О', 'П', 'Р', 'С', 'Т', 'У', 'Ф', 'Х', 'Ц', 'Ч', 'Ш', 'Щ', 'Ъ', 'Ы', 'Ь', 'Э', 'Ю', 'Я']; 40*4a9a6095SGreg Roach } 41*4a9a6095SGreg Roach 42*4a9a6095SGreg Roach /** 4302086832SGreg Roach * Should this module be enabled when it is first installed? 4402086832SGreg Roach * 4502086832SGreg Roach * @return bool 4602086832SGreg Roach */ 4702086832SGreg Roach public function isEnabledByDefault(): bool 4802086832SGreg Roach { 4902086832SGreg Roach return false; 5002086832SGreg Roach } 5102086832SGreg Roach 5202086832SGreg Roach /** 5302086832SGreg Roach * @return LocaleInterface 5402086832SGreg Roach */ 5502086832SGreg Roach public function locale(): LocaleInterface 5602086832SGreg Roach { 5702086832SGreg Roach return new LocaleTt(); 5802086832SGreg Roach } 5902086832SGreg Roach} 60