From b87c3bb0f6cc0b7aecc6ddcd3c937728487bf550 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Wed, 13 Sep 2017 11:01:45 +0200 Subject: [PATCH] TranslationDummy: remove unrelated code from form --- library/Director/TranslationDummy.php | 20 +++++++++++++++++++ .../Director/Web/Form/DirectorObjectForm.php | 10 ---------- 2 files changed, 20 insertions(+), 10 deletions(-) create mode 100644 library/Director/TranslationDummy.php diff --git a/library/Director/TranslationDummy.php b/library/Director/TranslationDummy.php new file mode 100644 index 00000000..b798c04e --- /dev/null +++ b/library/Director/TranslationDummy.php @@ -0,0 +1,20 @@ +translate('Host'); + $this->translate('Service'); + $this->translate('Zone'); + $this->translate('Command'); + $this->translate('User'); + $this->translate('Notification'); + } +} diff --git a/library/Director/Web/Form/DirectorObjectForm.php b/library/Director/Web/Form/DirectorObjectForm.php index fba59dab..d9845e22 100644 --- a/library/Director/Web/Form/DirectorObjectForm.php +++ b/library/Director/Web/Form/DirectorObjectForm.php @@ -1573,14 +1573,4 @@ abstract class DirectorObjectForm extends DirectorForm $set = new TypeFilterSet(); return $set->enumAllowedValues(); } - - private function dummyForTranslation() - { - $this->translate('Host'); - $this->translate('Service'); - $this->translate('Zone'); - $this->translate('Command'); - $this->translate('User'); - // ... TBC - } }