TranslationDummy: remove unrelated code from form

This commit is contained in:
Thomas Gelf 2017-09-13 11:01:45 +02:00
parent 9be31df544
commit b87c3bb0f6
2 changed files with 20 additions and 10 deletions

View File

@ -0,0 +1,20 @@
<?php
namespace Icinga\Module\Director;
use ipl\Translation\TranslationHelper;
class TranslationDummy
{
use TranslationHelper;
protected function dummyForTranslation()
{
$this->translate('Host');
$this->translate('Service');
$this->translate('Zone');
$this->translate('Command');
$this->translate('User');
$this->translate('Notification');
}
}

View File

@ -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
}
}