|
@@ -41,7 +41,7 @@ discard block |
|
|
block discarded – undo |
|
41
|
41
|
$messageFiles = glob("$repoPath/src/**/messages/$language/$filename.php") ?: glob("$repoPath/src/messages/$language/$filename.php"); |
|
42
|
42
|
|
|
43
|
43
|
$this->outputInfo('Following files will be affected:'); |
|
44
|
|
- $this->output(implode("\n", $messageFiles) . "\n"); |
|
|
44
|
+ $this->output(implode("\n", $messageFiles)."\n"); |
|
45
|
45
|
|
|
46
|
46
|
$key = $this->prompt('Insert translation key:'); |
|
47
|
47
|
$text = $this->prompt('Insert translation text:'); |
|
@@ -59,7 +59,7 @@ discard block |
|
|
block discarded – undo |
|
59
|
59
|
|
|
60
|
60
|
if (!$this->dry) { |
|
61
|
61
|
if (exec("[ -d $repoPath/.git ] && command -v git")) { |
|
62
|
|
- $diffCommand = "git --git-dir=$repoPath/.git --work-tree=$repoPath diff -- " . str_replace($repoPath . '/', '', implode(" ", $messageFiles)); |
|
|
62
|
+ $diffCommand = "git --git-dir=$repoPath/.git --work-tree=$repoPath diff -- ".str_replace($repoPath.'/', '', implode(" ", $messageFiles)); |
|
63
|
63
|
exec($diffCommand, $diff); |
|
64
|
64
|
$this->output(implode("\n", $diff)); |
|
65
|
65
|
} |
Please login to merge, or discard this patch.