Skip to content
Permalink
Browse files

Adjustments as per comments.

  • Loading branch information...
dereuromark committed Jun 24, 2015
1 parent a13d06c commit dce3f1f09e5a80cea1cd4d79a07c5691451e6b6e
Showing with 3 additions and 7 deletions.
  1. +1 −5 src/Shell/I18nShell.php
  2. +2 −2 tests/TestCase/Shell/I18nShellTest.php
@@ -102,12 +102,8 @@ public function init($language = null) {
$filename = $fileinfo->getFilename();
$newFilename = $fileinfo->getBasename('.pot');
$newFilename = $newFilename . '.po';
if (!$this->param('force') && is_file($targetFolder . $newFilename)) {
$this->err('File ' . $newFilename . ' exists, skipping. Use --force or -f to force overwriting');
continue;
}
copy($sourceFolder . $filename, $targetFolder . $newFilename);
$this->createFile($targetFolder . $newFilename, file_get_contents($sourceFolder . $filename));
$count++;
}
@@ -78,7 +78,7 @@ public function testInit()
$this->shell->params['verbose'] = true;
$this->shell->init();
$this->assertTrue(file_exists($deDir . 'default.po'));
$this->assertTrue(file_exists($deDir . 'cake.po'));
$this->assertFileExists($deDir . 'default.po');
$this->assertFileExists($deDir . 'cake.po');
}
}

0 comments on commit dce3f1f

Please sign in to comment.
You can’t perform that action at this time.