N98\Magento\Command\Developer\Module\UpdateCommand::askTranslateOptions PHP Method

askTranslateOptions() protected method

Asks for translate node options
protected askTranslateOptions ( Symfony\Component\Console\Output\OutputInterface $output )
$output Symfony\Component\Console\Output\OutputInterface
    protected function askTranslateOptions(OutputInterface $output)
    {
        $this->initTranslateConfigNodes();
        $dialog = $this->getDialog();
        $area = trim($dialog->ask($output, '<question>Area (frontend|adminhtml):</question>'));
        $file = trim($dialog->ask($output, '<question>File:</question>'));
        if ($area != 'frontend' && $area != 'adminhtml') {
            throw new RuntimeException('Layout updates area must be either "frontend" or "adminhtml"');
        }
        $this->configNodes['translate_area'] = $area;
        $this->configNodes['translate_files_default'] = $file;
    }