Skip to content

Commit 987224f

Browse files
committed
ContactGroupsController: Minor adjustments
1 parent a28c52d commit 987224f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

application/controllers/ContactGroupsController.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ public function indexAction(): void
5050
$sortControl = $this->createSortControl(
5151
$groups,
5252
[
53-
'name' => t('Group Name'),
54-
'changed_at' => t('Changed At')
53+
'name' => $this->translate('Group Name'),
54+
'changed_at' => $this->translate('Changed At')
5555
]
5656
);
5757

@@ -129,7 +129,7 @@ public function indexAction(): void
129129
$this->sendMultipartUpdate();
130130
}
131131

132-
$this->setTitle(t('Contact Groups'));
132+
$this->setTitle($this->translate('Contact Groups'));
133133
$this->getTabs()->activate('contact-groups');
134134
}
135135

@@ -151,15 +151,15 @@ public function addAction(): void
151151
->on(Form::ON_SUCCESS, function (ContactGroupForm $form) {
152152
$groupIdentifier = $form->addGroup();
153153

154-
Notification::success(t('New contact group has been successfully added'));
154+
Notification::success($this->translate('New contact group has been successfully added'));
155155
$this->sendExtraUpdates(['#col1']);
156156
$this->getResponse()->setHeader('X-Icinga-Container', 'col2');
157157
$this->redirectNow(Links::contactGroup($groupIdentifier));
158158
})
159159
->handleRequest($this->getServerRequest());
160160

161161
$this->addContent($form);
162-
$this->setTitle(t('Add Contact Group'));
162+
$this->setTitle($this->translate('Add Contact Group'));
163163
}
164164

165165
public function completeAction(): void
@@ -196,19 +196,19 @@ public function getTabs(): Tabs
196196
{
197197
return parent::getTabs()
198198
->add('schedules', [
199-
'label' => t('Schedules'),
199+
'label' => $this->translate('Schedules'),
200200
'url' => Links::schedules(),
201201
'baseTarget' => '_main'
202202
])->add('event-rules', [
203-
'label' => t('Event Rules'),
203+
'label' => $this->translate('Event Rules'),
204204
'url' => Links::eventRules(),
205205
'baseTarget' => '_main'
206206
])->add('contacts', [
207-
'label' => t('Contacts'),
207+
'label' => $this->translate('Contacts'),
208208
'url' => Links::contacts(),
209209
'baseTarget' => '_main'
210210
])->add('contact-groups', [
211-
'label' => t('Contact Groups'),
211+
'label' => $this->translate('Contact Groups'),
212212
'url' => Links::contactGroups(),
213213
'baseTarget' => '_main'
214214
]);

0 commit comments

Comments
 (0)