Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
crimeadispute.php
1<?php
2
4
7
8Loc::loadMessages(__FILE__);
9Loc::loadMessages(Path::combine(__DIR__, 'dispute.php'));
10
12{
16 protected function getInfo(): array
17 {
18 if (in_array($this->currentRegion, ['ru', 'by'], true))
19 {
20 $country = Loc::getMessage('LOCATION_ISTRUCTURE_DISPSRV_RUSSIA');
21 $state = Loc::getMessage('LOCATION_ISTRUCTURE_DISPSRV_REGION_CRIMEA_FOR_RUSSIA');
22 }
23 else
24 {
25 $country = Loc::getMessage('LOCATION_ISTRUCTURE_DISPSRV_UKRAINE');
26 $state = Loc::getMessage('LOCATION_ISTRUCTURE_DISPSRV_REGION_CRIMEA_FOR_UKRAINE');
27 }
28
29 return [
30 'country' => $country,
31 'state' => $state,
32 ];
33 }
34}
static loadMessages($file)
Definition loc.php:64
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29