Skip to content

Commit

Permalink
fix vase injection
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthijs Alles committed Dec 1, 2016
1 parent 8c97251 commit fbb2c7e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Console/Commands/TranslateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
//insert extra strings
if (file_exists($rootpath . '/packages/bixie/' . $this->extension . '/languages/base.php')) {
$extraStrings = include($rootpath . '/packages/bixie/' . $this->extension . '/languages/base.php');
foreach ($extraStrings as $string) {
$translations[$string] = $locale != 'en_US' && isset($existing[$string])? $existing[$string] : $string;
$this->line("Add base.php");
foreach ($extraStrings as $string) {
$translations[$string] = isset($existing[$string])? $existing[$string] : $string;
}
}
//get pot strings
Expand Down

0 comments on commit fbb2c7e

Please sign in to comment.