Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

More i18n strings.

  • Loading branch information...
commit dc016735030860b645f1fe1179a9a59712c3e874 1 parent de1b495
@markstory markstory authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 cake/console/libs/tasks/controller.php
View
10 cake/console/libs/tasks/controller.php
@@ -44,7 +44,7 @@ class ControllerTask extends Shell {
* @var array
* @access public
*/
- var $tasks = array('Model', 'Project', 'Template', 'DbConfig');
+ var $tasks = array('Model', 'Test', 'Template', 'DbConfig');
/**
* path to CONTROLLERS directory
*
@@ -80,7 +80,7 @@ function execute() {
$controller = Inflector::camelize($this->args[0]);
$actions = null;
if (isset($this->args[1]) && $this->args[1] == 'scaffold') {
- $this->out('Baking scaffold for ' . $controller);
+ $this->out(__('Baking scaffold for ', true) . $controller);
$actions = $this->bakeActions($controller);
} else {
$actions = 'scaffold';
@@ -131,7 +131,7 @@ function all() {
function __interactive() {
$this->interactive = true;
$this->hr();
- $this->out(sprintf("Bake Controller\nPath: %s", $this->path));
+ $this->out(sprintf(__("Bake Controller\nPath: %s", true), $this->path));
$this->hr();
if (empty($this->connection)) {
@@ -140,7 +140,7 @@ function __interactive() {
$controllerName = $this->getName();
$this->hr();
- $this->out("Baking {$controllerName}Controller");
+ $this->out(sprintf(__('Baking %sController', true), $controllerName));
$this->hr();
$helpers = $components = array();
@@ -387,7 +387,7 @@ function listAll($useDbConfig = null) {
$this->__tables = $this->Model->getAllTables($useDbConfig);
if ($this->interactive == true) {
- $this->out('Possible Controllers based on your current database:');
+ $this->out(__('Possible Controllers based on your current database:', true));
$this->_controllerNames = array();
$count = count($this->__tables);
for ($i = 0; $i < $count; $i++) {
Please sign in to comment.
Something went wrong with that request. Please try again.