$table->
render();
return -1;
} $questionHelper =
$this->
getHelper('question'
);
foreach ($missingSnippetsCollection->
getIterator() as $missingSnippetStruct) { $question =
sprintf( "<info>Available translation: '%s' in locale '%s'.</info>\n<question>Please enter translation for locale '%s':</question>",
$missingSnippetStruct->
getAvailableTranslation(),
$missingSnippetStruct->
getAvailableISO(),
$missingSnippetStruct->
getMissingForISO() );
$missingSnippetStruct->
setTranslation($questionHelper->
ask($input,
$output,
new Question($question)) ?? ''
);
} $this->snippetFixer->
fix($missingSnippetsCollection);
return self::SUCCESS;
}