From 0a65dfd550d6c65be6bea51a97d04c1d16462f03 Mon Sep 17 00:00:00 2001 From: zauberfisch Date: Thu, 19 Oct 2017 05:03:47 +0000 Subject: [PATCH] Fixed i18n call --- src/Form/ArrayListField.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Form/ArrayListField.php b/src/Form/ArrayListField.php index 6a62546..68ae6bb 100644 --- a/src/Form/ArrayListField.php +++ b/src/Form/ArrayListField.php @@ -108,7 +108,7 @@ public function Field($properties = []) { /** @noinspection PhpParamsInspection */ return (new \CompositeField([ (new \CompositeField($fields))->addExtraClass('record-list'), - (new \FormAction('addRecord', _t(self::class . '.AddRecord', 'add record'))) + (new \FormAction('addRecord', _t('zauberfisch\SerializedDataObject\Form\ArrayListField.AddRecord', 'add record'))) ->setUseButtonTag(true) ->addExtraClass('font-icon-plus') ->addExtraClass('add-record'), @@ -137,7 +137,7 @@ protected function getRecordFields($index, AbstractDataObject $record = null) { ->setUseButtonTag(true) ->addExtraClass('delete-record') ->addExtraClass('font-icon-cancel-circled') - ->setAttribute('data-confirm', _t(self::class . '.ConfirmDelete', 'Are you sure you want to delete this record?')), + ->setAttribute('data-confirm', _t('zauberfisch\SerializedDataObject\Form\ArrayListField.ConfirmDelete', 'Are you sure you want to delete this record?')), ]; if ($this->orderable) { $controls [] = new \LiteralField('ArrayListFieldControlsOrderableHandle', '
');