public function addToFormContainer(Nette\Forms\Container $container)
{
$form = $container->lookup('Nette\\Application\\UI\\Form');
$translator = $form->getTranslator();
if (!$this->translateOptions) {
$select = $this->addControl($container, $this->key, $translator->translate($this->name), $this->options);
$select->setTranslator(NULL);
} else {
$select = $this->addControl($container, $this->key, $this->name, $this->options);
}
}