Skip to content

Commit

Permalink
Merge branch 'GabLeRoux-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
PhiloNL committed Nov 12, 2014
2 parents 71c5ef9 + 8c16bf1 commit 48af5f0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Philo/Translate/Console/DiggCommand.php
Expand Up @@ -62,6 +62,7 @@ public function __construct(TranslateManager $manager)
*/
public function fire()
{
$htmlentities = !$this->input->getOption('no-entities');
$this->info("It's time to DIGG for some translations!");
$this->info(' ');
foreach ($this->manager->getDiggFiles() as $file) {
Expand All @@ -85,7 +86,7 @@ public function fire()
if(Lang::get($lang_query, $parameters) == $lang_query)
{
if(is_null($translation = $this->ask("Translate '$lang_query'" . ( ! empty($parameters) ? " [" . implode(',', $parameters) . "]" : null) . " in " . strtoupper($language) . ": "))) continue;
$this->manager->setLanguage($language)->addLine($group, $line, $translation);
$this->manager->setLanguage($language)->addLine($group, $line, $translation, $htmlentities);
}
}
}
Expand Down Expand Up @@ -164,7 +165,9 @@ protected function getArguments()
*/
protected function getOptions()
{
return array();
return array(
array('no-entities', null, InputOption::VALUE_NONE, 'Add translation without converting characters to entities'),
);
}

}

0 comments on commit 48af5f0

Please sign in to comment.