translation changes in the TestSuite dir

This commit is contained in:
AD7six 2011-03-12 20:02:18 +01:00
parent e7f39b456f
commit 26038b13e1
5 changed files with 9 additions and 9 deletions

View file

@ -184,7 +184,7 @@ abstract class CakeTestCase extends PHPUnit_Framework_TestCase {
*/
function loadFixtures() {
if (empty($this->fixtureManager)) {
throw new Exception(__('No fixture manager to load the test fixture'));
throw new Exception(__d('cake', 'No fixture manager to load the test fixture'));
}
$args = func_get_args();
foreach ($args as $class) {

View file

@ -84,7 +84,7 @@ class CakeTestRunner extends PHPUnit_TextUI_TestRunner {
if (class_exists($arguments['fixtureManager'])) {
return new $arguments['fixtureManager'];
}
throw new RuntimeException(__('Could not find fixture manager %s.', $arguments['fixtureManager']));
throw new RuntimeException(__d('cake', 'Could not find fixture manager %s.', $arguments['fixtureManager']));
}
App::uses('AppFixtureManager', 'TestSuite');
if (class_exists('AppFixtureManager')) {

View file

@ -239,7 +239,7 @@ class CakeFixtureManager {
$fixture->truncate($db);
$fixture->insert($db);
} else {
throw new UnexpectedValueException(__('Referenced fixture class %s not found', $name));
throw new UnexpectedValueException(__d('cake', 'Referenced fixture class %s not found', $name));
}
}

View file

@ -187,7 +187,7 @@ class CakeBaseReporter extends PHPUnit_TextUI_ResultPrinter {
if (!$this->_headerSent) {
echo $this->paintHeader();
}
echo __('Running %s', $suite->getName()) . "\n";
echo __d('cake', 'Running %s', $suite->getName()) . "\n";
}
/**

10
lib/Cake/TestSuite/Reporter/CakeHtmlReporter.php Executable file → Normal file
View file

@ -234,8 +234,8 @@ class CakeHtmlReporter extends CakeBaseReporter {
echo "<li class='fail'>\n";
echo "<span>Failed</span>";
echo "<div class='msg'><pre>" . $this->_htmlEntities($message->toString()) . "</pre></div>\n";
echo "<div class='msg'>" . __('Test case: %s', $testName) . "</div>\n";
echo "<div class='msg'>" . __('Stack trace:') . '<br />' . $trace . "</div>\n";
echo "<div class='msg'>" . __d('cake', 'Test case: %s', $testName) . "</div>\n";
echo "<div class='msg'>" . __d('cake', 'Stack trace:') . '<br />' . $trace . "</div>\n";
echo "</li>\n";
}
@ -272,8 +272,8 @@ class CakeHtmlReporter extends CakeBaseReporter {
echo "<span>" . get_class($message) . "</span>";
echo "<div class='msg'>" . $this->_htmlEntities($message->getMessage()) . "</div>\n";
echo "<div class='msg'>" . __('Test case: %s', $testName) . "</div>\n";
echo "<div class='msg'>" . __('Stack trace:') . '<br />' . $trace . "</div>\n";
echo "<div class='msg'>" . __d('cake', 'Test case: %s', $testName) . "</div>\n";
echo "<div class='msg'>" . __d('cake', 'Stack trace:') . '<br />' . $trace . "</div>\n";
echo "</li>\n";
}
@ -341,6 +341,6 @@ class CakeHtmlReporter extends CakeBaseReporter {
if (!$this->_headerSent) {
echo $this->paintHeader();
}
echo '<h2>' . __('Running %s', $suite->getName()) . '</h2>';
echo '<h2>' . __d('cake', 'Running %s', $suite->getName()) . '</h2>';
}
}