fix: [feeds] i18n some strings

pull/8025/head
iglocska 2021-11-30 15:04:48 +01:00
parent e905817768
commit 175a0b204f
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 3 additions and 3 deletions

View File

@ -125,7 +125,7 @@ class FeedsController extends AppController
]);
$this->loadModel('Event');
$distributionLevels = $this->Event->distributionLevels;
$distributionLevels[5] = 'Inherit from feed';
$distributionLevels[5] = __('Inherit from feed');
$this->set('distributionLevels', $distributionLevels);
$this->set('scope', $scope);
}
@ -288,7 +288,7 @@ class FeedsController extends AppController
$this->loadModel('Event');
$sharingGroups = $this->Event->SharingGroup->fetchAllAuthorised($this->Auth->user(), 'name', 1);
$distributionLevels = $this->Event->distributionLevels;
$distributionLevels[5] = 'Inherit from feed';
$distributionLevels[5] = __('Inherit from feed');
if (empty($sharingGroups)) {
unset($distributionLevels[4]);
}
@ -427,7 +427,7 @@ class FeedsController extends AppController
$this->loadModel('Event');
$sharingGroups = $this->Event->SharingGroup->fetchAllAuthorised($this->Auth->user(), 'name', 1);
$distributionLevels = $this->Event->distributionLevels;
$distributionLevels[5] = 'Inherit from feed';
$distributionLevels[5] = __('Inherit from feed');
if (empty($sharingGroups)) {
unset($distributionLevels[4]);
}