diff --git a/cake/console/templates/default/actions/controller_actions.ctp b/cake/console/templates/default/actions/controller_actions.ctp
index 4be40637f..4dd9d23d2 100644
--- a/cake/console/templates/default/actions/controller_actions.ctp
+++ b/cake/console/templates/default/actions/controller_actions.ctp
@@ -27,10 +27,10 @@
function view($id = null) {
if (!$id) {
- $this->Session->setFlash(sprintf(__('Invalid %s', true), ''));
+ $this->Session->setFlash(__('Invalid ', true));
$this->redirect(array('action' => 'index'));
- $this->flash(sprintf(__('Invalid %s', true), ''), array('action' => 'index'));
+ $this->flash(__('Invalid ', true), array('action' => 'index'));
}
$this->set('', $this->->read(null, $id));
@@ -42,14 +42,14 @@
$this->->create();
if ($this->->save($this->data)) {
- $this->Session->setFlash(sprintf(__('The %s has been saved', true), ''));
+ $this->Session->setFlash(__('The has been saved', true));
$this->redirect(array('action' => 'index'));
- $this->flash(sprintf(__('%s saved.', true), ''), array('action' => 'index'));
+ $this->flash(__(' saved.', true), array('action' => 'index'));
} else {
- $this->Session->setFlash(sprintf(__('The %s could not be saved. Please, try again.', true), ''));
+ $this->Session->setFlash(__('The could not be saved. Please, try again.', true));
}
}
@@ -74,23 +74,23 @@
function edit($id = null) {
if (!$id && empty($this->data)) {
- $this->Session->setFlash(sprintf(__('Invalid %s', true), ''));
+ $this->Session->setFlash(__('Invalid ', true));
$this->redirect(array('action' => 'index'));
- $this->flash(sprintf(__('Invalid %s', true), ''), array('action' => 'index'));
+ $this->flash(sprintf(__('Invalid ', true)), array('action' => 'index'));
}
if (!empty($this->data)) {
if ($this->->save($this->data)) {
- $this->Session->setFlash(sprintf(__('The %s has been saved', true), ''));
+ $this->Session->setFlash(__('The has been saved', true));
$this->redirect(array('action' => 'index'));
- $this->flash(sprintf(__('The %s has been saved.', true), ''), array('action' => 'index'));
+ $this->flash(__('The has been saved.', true), array('action' => 'index'));
} else {
- $this->Session->setFlash(sprintf(__('The %s could not be saved. Please, try again.', true), ''));
+ $this->Session->setFlash(__('The could not be saved. Please, try again.', true));
}
}
@@ -117,24 +117,24 @@
function delete($id = null) {
if (!$id) {
- $this->Session->setFlash(sprintf(__('Invalid id for %s', true), ''));
+ $this->Session->setFlash(__('Invalid id for ', true));
$this->redirect(array('action'=>'index'));
- $this->flash(sprintf(__('Invalid %s', true), ''), array('action' => 'index'));
+ $this->flash(sprintf(__('Invalid ', true)), array('action' => 'index'));
}
if ($this->->delete($id)) {
- $this->Session->setFlash(sprintf(__('%s deleted', true), ''));
+ $this->Session->setFlash(__(' deleted', true));
$this->redirect(array('action'=>'index'));
- $this->flash(sprintf(__('%s deleted', true), ''), array('action' => 'index'));
+ $this->flash(__(' deleted', true), array('action' => 'index'));
}
- $this->Session->setFlash(sprintf(__('%s was not deleted', true), ''));
+ $this->Session->setFlash(__(' was not deleted', true));
- $this->flash(sprintf(__('%s was not deleted', true), ''), array('action' => 'index'));
+ $this->flash(__(' was not deleted', true), array('action' => 'index'));
$this->redirect(array('action' => 'index'));
}
\ No newline at end of file
diff --git a/cake/console/templates/default/views/form.ctp b/cake/console/templates/default/views/form.ctp
index 218290ecf..4d986a748 100644
--- a/cake/console/templates/default/views/form.ctp
+++ b/cake/console/templates/default/views/form.ctp
@@ -20,7 +20,7 @@
"; ?>
- - Html->link(sprintf(__('New %s', true), __('{$singularHumanName}', true)), array('action' => 'add')); ?>";?>
+ - Html->link(__('New " . $singularHumanName . "', true), array('action' => 'add')); ?>";?>
$data) {
foreach ($data as $alias => $details) {
if ($details['controller'] != $this->name && !in_array($details['controller'], $done)) {
- echo "\t\t- Html->link(sprintf(__('List %s', true), __('" . Inflector::humanize($details['controller']) . "', true)), array('controller' => '{$details['controller']}', 'action' => 'index')); ?>
\n";
- echo "\t\t- Html->link(sprintf(__('New %s', true), __('" . Inflector::humanize(Inflector::underscore($alias)) . "', true)), array('controller' => '{$details['controller']}', 'action' => 'add')); ?>
\n";
+ echo "\t\t- Html->link(__('List " . Inflector::humanize($details['controller']) . "', true), array('controller' => '{$details['controller']}', 'action' => 'index')); ?>
\n";
+ echo "\t\t- Html->link(__('New " . Inflector::humanize(Inflector::underscore($alias)) . "', true), array('controller' => '{$details['controller']}', 'action' => 'add')); ?>
\n";
$done[] = $details['controller'];
}
}
diff --git a/cake/console/templates/default/views/view.ctp b/cake/console/templates/default/views/view.ctp
index 545ea10f1..e9934cfa5 100644
--- a/cake/console/templates/default/views/view.ctp
+++ b/cake/console/templates/default/views/view.ctp
@@ -45,17 +45,17 @@ foreach ($fields as $field) {
"; ?>
Html->link(sprintf(__('Edit %s', true), __('{$singularHumanName}', true)), array('action' => 'edit', \${$singularVar}['{$modelClass}']['{$primaryKey}'])); ?> \n";
- echo "\t\t- Html->link(sprintf(__('Delete %s', true), __('{$singularHumanName}', true)), array('action' => 'delete', \${$singularVar}['{$modelClass}']['{$primaryKey}']), null, sprintf(__('Are you sure you want to delete # %s?', true), \${$singularVar}['{$modelClass}']['{$primaryKey}'])); ?>
\n";
- echo "\t\t- Html->link(sprintf(__('List %s', true), __('{$pluralHumanName}', true)), array('action' => 'index')); ?>
\n";
- echo "\t\t- Html->link(sprintf(__('New %s', true), __('{$singularHumanName}', true)), array('action' => 'add')); ?>
\n";
+ echo "\t\t- Html->link(__('Edit " . $singularHumanName ."', true), array('action' => 'edit', \${$singularVar}['{$modelClass}']['{$primaryKey}'])); ?>
\n";
+ echo "\t\t- Html->link(__('Delete " . $singularHumanName . "', true), array('action' => 'delete', \${$singularVar}['{$modelClass}']['{$primaryKey}']), null, sprintf(__('Are you sure you want to delete # %s?', true), \${$singularVar}['{$modelClass}']['{$primaryKey}'])); ?>
\n";
+ echo "\t\t- Html->link(__('List " . $pluralHumanName . "', true), array('action' => 'index')); ?>
\n";
+ echo "\t\t- Html->link(__('New " . $singularHumanName . "', true), array('action' => 'add')); ?>
\n";
$done = array();
foreach ($associations as $type => $data) {
foreach ($data as $alias => $details) {
if ($details['controller'] != $this->name && !in_array($details['controller'], $done)) {
- echo "\t\t- Html->link(sprintf(__('List %s', true), __('" . Inflector::humanize($details['controller']) . "', true)), array('controller' => '{$details['controller']}', 'action' => 'index')); ?>
\n";
- echo "\t\t- Html->link(sprintf(__('New %s', true), __('" . Inflector::humanize(Inflector::underscore($alias)) . "', true)), array('controller' => '{$details['controller']}', 'action' => 'add')); ?>
\n";
+ echo "\t\t- Html->link(__('List " . Inflector::humanize($details['controller']) . "', true), array('controller' => '{$details['controller']}', 'action' => 'index')); ?>
\n";
+ echo "\t\t- Html->link(__('New " . Inflector::humanize(Inflector::underscore($alias)) . "', true), array('controller' => '{$details['controller']}', 'action' => 'add')); ?>
\n";
$done[] = $details['controller'];
}
}
@@ -67,7 +67,7 @@ foreach ($fields as $field) {
if (!empty($associations['hasOne'])) :
foreach ($associations['hasOne'] as $alias => $details): ?>
@@ -100,7 +100,7 @@ foreach ($relations as $alias => $details):
$otherPluralHumanName = Inflector::humanize($details['controller']);
?>