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\LocaleSr; 24*52288ec7SGreg Roachuse Fisharebest\Webtrees\Encodings\UTF8; 2502086832SGreg Roach 2602086832SGreg Roach/** 2702086832SGreg Roach * Class LanguageSerbian (Cyrillic). 2802086832SGreg Roach */ 2902086832SGreg Roachclass LanguageSerbian extends AbstractModule implements ModuleLanguageInterface 3002086832SGreg Roach{ 3102086832SGreg Roach use ModuleLanguageTrait; 3202086832SGreg Roach 3302086832SGreg Roach /** 344a9a6095SGreg Roach * Phone-book ordering of letters. 354a9a6095SGreg Roach * 364a9a6095SGreg Roach * @return array<int,string> 374a9a6095SGreg Roach */ 384a9a6095SGreg Roach public function alphabet(): array 394a9a6095SGreg Roach { 40*52288ec7SGreg Roach return [ 41*52288ec7SGreg Roach UTF8::CYRILLIC_CAPITAL_LETTER_A, 42*52288ec7SGreg Roach UTF8::CYRILLIC_CAPITAL_LETTER_BE, 43*52288ec7SGreg Roach UTF8::CYRILLIC_CAPITAL_LETTER_VE, 44*52288ec7SGreg Roach UTF8::CYRILLIC_CAPITAL_LETTER_GHE, 45*52288ec7SGreg Roach UTF8::CYRILLIC_CAPITAL_LETTER_DE, 46*52288ec7SGreg Roach UTF8::CYRILLIC_CAPITAL_LETTER_DJE, 47*52288ec7SGreg Roach UTF8::CYRILLIC_CAPITAL_LETTER_IE, 48*52288ec7SGreg Roach UTF8::CYRILLIC_CAPITAL_LETTER_ZHE, 49*52288ec7SGreg Roach UTF8::CYRILLIC_CAPITAL_LETTER_ZE, 50*52288ec7SGreg Roach UTF8::CYRILLIC_CAPITAL_LETTER_I, 51*52288ec7SGreg Roach UTF8::CYRILLIC_CAPITAL_LETTER_JE, 52*52288ec7SGreg Roach UTF8::CYRILLIC_CAPITAL_LETTER_KA, 53*52288ec7SGreg Roach UTF8::CYRILLIC_CAPITAL_LETTER_EL, 54*52288ec7SGreg Roach UTF8::CYRILLIC_CAPITAL_LETTER_LJE, 55*52288ec7SGreg Roach UTF8::CYRILLIC_CAPITAL_LETTER_EM, 56*52288ec7SGreg Roach UTF8::CYRILLIC_CAPITAL_LETTER_EN, 57*52288ec7SGreg Roach UTF8::CYRILLIC_CAPITAL_LETTER_NJE, 58*52288ec7SGreg Roach UTF8::CYRILLIC_CAPITAL_LETTER_O, 59*52288ec7SGreg Roach UTF8::CYRILLIC_CAPITAL_LETTER_PE, 60*52288ec7SGreg Roach UTF8::CYRILLIC_CAPITAL_LETTER_ER, 61*52288ec7SGreg Roach UTF8::CYRILLIC_CAPITAL_LETTER_ES, 62*52288ec7SGreg Roach UTF8::CYRILLIC_CAPITAL_LETTER_TE, 63*52288ec7SGreg Roach UTF8::CYRILLIC_CAPITAL_LETTER_TSHE, 64*52288ec7SGreg Roach UTF8::CYRILLIC_CAPITAL_LETTER_U, 65*52288ec7SGreg Roach UTF8::CYRILLIC_CAPITAL_LETTER_EF, 66*52288ec7SGreg Roach UTF8::CYRILLIC_CAPITAL_LETTER_HA, 67*52288ec7SGreg Roach UTF8::CYRILLIC_CAPITAL_LETTER_TSE, 68*52288ec7SGreg Roach UTF8::CYRILLIC_CAPITAL_LETTER_CHE, 69*52288ec7SGreg Roach UTF8::CYRILLIC_CAPITAL_LETTER_DZHE, 70*52288ec7SGreg Roach UTF8::CYRILLIC_CAPITAL_LETTER_SHA, 71*52288ec7SGreg Roach ]; 724a9a6095SGreg Roach } 734a9a6095SGreg Roach 744a9a6095SGreg Roach /** 7502086832SGreg Roach * Should this module be enabled when it is first installed? 7602086832SGreg Roach * 7702086832SGreg Roach * @return bool 7802086832SGreg Roach */ 7902086832SGreg Roach public function isEnabledByDefault(): bool 8002086832SGreg Roach { 8102086832SGreg Roach return false; 8202086832SGreg Roach } 8302086832SGreg Roach 8402086832SGreg Roach /** 8502086832SGreg Roach * @return LocaleInterface 8602086832SGreg Roach */ 8702086832SGreg Roach public function locale(): LocaleInterface 8802086832SGreg Roach { 8902086832SGreg Roach return new LocaleSr(); 9002086832SGreg Roach } 9102086832SGreg Roach} 92