diff --git a/lib/Cake/tests/cases/console/libs/help_formatter.test.php b/lib/Cake/tests/cases/console/libs/help_formatter.test.php index f296a84ea..aa7c13c01 100644 --- a/lib/Cake/tests/cases/console/libs/help_formatter.test.php +++ b/lib/Cake/tests/cases/console/libs/help_formatter.test.php @@ -12,7 +12,7 @@ class HelpFormatterTest extends CakeTestCase { */ function testWidthFormatting() { $parser = new ConsoleOptionParser('test', false); - $parser->description(__('This is fifteen This is fifteen This is fifteen')) + $parser->description(__d('cake', 'This is fifteen This is fifteen This is fifteen')) ->addOption('four', array('help' => 'this is help text this is help text')) ->addArgument('four', array('help' => 'this is help text this is help text')) ->addSubcommand('four', array('help' => 'this is help text this is help text')); diff --git a/lib/Cake/tests/cases/console/shells/tasks/controller.test.php b/lib/Cake/tests/cases/console/shells/tasks/controller.test.php index 19b16df02..1ec00d43e 100644 --- a/lib/Cake/tests/cases/console/shells/tasks/controller.test.php +++ b/lib/Cake/tests/cases/console/shells/tasks/controller.test.php @@ -337,20 +337,20 @@ class ControllerTaskTest extends CakeTestCase { $this->assertContains("\$this->set('bakeArticles', \$this->paginate());", $result); $this->assertContains('function view($id = null)', $result); - $this->assertContains("throw new NotFoundException(__('Invalid bake article'));", $result); + $this->assertContains("throw new NotFoundException(__d('cake', 'Invalid bake article'));", $result); $this->assertContains("\$this->set('bakeArticle', \$this->BakeArticle->read(null, \$id)", $result); $this->assertContains('function add()', $result); $this->assertContains("if (\$this->request->is('post'))", $result); $this->assertContains('if ($this->BakeArticle->save($this->request->data))', $result); - $this->assertContains("\$this->Session->setFlash(__('The bake article has been saved'));", $result); + $this->assertContains("\$this->Session->setFlash(__d('cake', 'The bake article has been saved'));", $result); $this->assertContains('function edit($id = null)', $result); - $this->assertContains("\$this->Session->setFlash(__('The bake article could not be saved. Please, try again.'));", $result); + $this->assertContains("\$this->Session->setFlash(__d('cake', 'The bake article could not be saved. Please, try again.'));", $result); $this->assertContains('function delete($id = null)', $result); $this->assertContains('if ($this->BakeArticle->delete())', $result); - $this->assertContains("\$this->Session->setFlash(__('Bake article deleted'));", $result); + $this->assertContains("\$this->Session->setFlash(__d('cake', 'Bake article deleted'));", $result); $result = $this->Task->bakeActions('BakeArticles', 'admin_', true); @@ -379,14 +379,14 @@ class ControllerTaskTest extends CakeTestCase { $this->assertContains("\$this->set('bakeArticles', \$this->paginate());", $result); $this->assertContains('function view($id = null)', $result); - $this->assertContains("throw new NotFoundException(__('Invalid bake article'));", $result); + $this->assertContains("throw new NotFoundException(__d('cake', 'Invalid bake article'));", $result); $this->assertContains("\$this->set('bakeArticle', \$this->BakeArticle->read(null, \$id)", $result); $this->assertContains('function add()', $result); $this->assertContains("if (\$this->request->is('post'))", $result); $this->assertContains('if ($this->BakeArticle->save($this->request->data))', $result); - $this->assertContains("\$this->flash(__('The bake article has been saved.'), array('action' => 'index'))", $result); + $this->assertContains("\$this->flash(__d('cake', 'The bake article has been saved.'), array('action' => 'index'))", $result); $this->assertContains('function edit($id = null)', $result); $this->assertContains("\$this->BakeArticle->BakeTag->find('list')", $result); @@ -394,7 +394,7 @@ class ControllerTaskTest extends CakeTestCase { $this->assertContains('function delete($id = null)', $result); $this->assertContains('if ($this->BakeArticle->delete())', $result); - $this->assertContains("\$this->flash(__('Bake article deleted'), array('action' => 'index'))", $result); + $this->assertContains("\$this->flash(__d('cake', 'Bake article deleted'), array('action' => 'index'))", $result); } /** diff --git a/lib/Cake/tests/cases/console/shells/testsuite.test.php b/lib/Cake/tests/cases/console/shells/testsuite.test.php index 5d0d2914a..d28188519 100644 --- a/lib/Cake/tests/cases/console/shells/testsuite.test.php +++ b/lib/Cake/tests/cases/console/shells/testsuite.test.php @@ -57,7 +57,7 @@ class TestsuiteShellTest extends CakeTestCase { public function testAvailableWithEmptyList() { $this->Shell->startup(); $this->Shell->args = array('unexistant-category'); - $this->Shell->expects($this->at(0))->method('out')->with(__("No test cases available \n\n")); + $this->Shell->expects($this->at(0))->method('out')->with(__d('cake', "No test cases available \n\n")); $this->Shell->OptionParser->expects($this->once())->method('help'); $this->Shell->available(); } @@ -77,7 +77,7 @@ class TestsuiteShellTest extends CakeTestCase { ->with(new PHPUnit_Framework_Constraint_PCREMatch('/\[2\].*/')); $this->Shell->expects($this->once())->method('in') - ->with(__('What test case would you like to run?'), null, 'q') + ->with(__d('cake', 'What test case would you like to run?'), null, 'q') ->will($this->returnValue('1')); $this->Shell->expects($this->once())->method('run'); diff --git a/lib/Cake/tests/cases/libs/cake_socket.test.php b/lib/Cake/tests/cases/libs/cake_socket.test.php index ba3f21589..e2bb2a1e1 100644 --- a/lib/Cake/tests/cases/libs/cake_socket.test.php +++ b/lib/Cake/tests/cases/libs/cake_socket.test.php @@ -174,7 +174,7 @@ class CakeSocketTest extends CakeTestCase { $this->Socket = new CakeSocket($config); $this->assertTrue($this->Socket->connect()); $this->assertFalse($this->Socket->read(1024 * 1024)); - $this->assertEqual($this->Socket->lastError(), '2: ' . __('Connection timed out')); + $this->assertEqual($this->Socket->lastError(), '2: ' . __d('cake', 'Connection timed out')); $config = array('host' => 'cakephp.org', 'port' => 80, 'timeout' => 20); $this->Socket = new CakeSocket($config); diff --git a/lib/Cake/tests/cases/libs/controller/components/email.test.php b/lib/Cake/tests/cases/libs/controller/components/email.test.php old mode 100755 new mode 100644 diff --git a/lib/Cake/tests/cases/libs/file.test.php b/lib/Cake/tests/cases/libs/file.test.php index 02110a285..3d2eddae2 100644 --- a/lib/Cake/tests/cases/libs/file.test.php +++ b/lib/Cake/tests/cases/libs/file.test.php @@ -482,7 +482,7 @@ class FileTest extends CakeTestCase { $assertLine = $assertLine->traceMethod(); $shortPath = substr($tmpFile, strlen(ROOT)); - $message = __('[FileTest] Skipping %s because "%s" not writeable!', $caller, $shortPath).$assertLine; + $message = __d('cake', '[FileTest] Skipping %s because "%s" not writeable!', $caller, $shortPath).$assertLine; $this->_reporter->paintSkip($message); } return false; diff --git a/lib/Cake/tests/cases/libs/model/model_read.test.php b/lib/Cake/tests/cases/libs/model/model_read.test.php old mode 100755 new mode 100644 diff --git a/lib/Cake/tests/cases/libs/view/helpers/paginator.test.php b/lib/Cake/tests/cases/libs/view/helpers/paginator.test.php old mode 100755 new mode 100644 diff --git a/lib/Cake/tests/test_app/views/layouts/default.ctp b/lib/Cake/tests/test_app/views/layouts/default.ctp index e09a7fba8..9d7ba9871 100644 --- a/lib/Cake/tests/test_app/views/layouts/default.ctp +++ b/lib/Cake/tests/test_app/views/layouts/default.ctp @@ -22,7 +22,7 @@ $this->loadHelper('Html'); Html->charset();?> - <?php __('CakePHP: the rapid development php framework:'); ?> + <?php __d('cake', 'CakePHP: the rapid development php framework:'); ?> <?php echo $title_for_layout;?> @@ -32,7 +32,7 @@ $this->loadHelper('Html');
@@ -41,7 +41,7 @@ $this->loadHelper('Html');