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 @@
Form->create('{$modelClass}');?>\n";?>
- ";?> + ", Inflector::humanize($action), $singularHumanName); ?>
  • Html->link(__('Delete', true), array('action' => 'delete', \$this->Form->value('{$modelClass}.{$primaryKey}')), null, sprintf(__('Are you sure you want to delete # %s?', true), \$this->Form->value('{$modelClass}.{$primaryKey}'))); ?>";?>
  • -
  • Html->link(sprintf(__('List %s', true), __('{$pluralHumanName}', true)), array('action' => 'index'));?>";?>
  • +
  • Html->link(__('List " . $pluralHumanName . "', true), array('action' => 'index'));?>";?>
  • $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/index.ctp b/cake/console/templates/default/views/index.ctp index 35e059b8c..c71987b97 100644 --- a/cake/console/templates/default/views/index.ctp +++ b/cake/console/templates/default/views/index.ctp @@ -71,22 +71,22 @@

    - Paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>\n";?> + Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>\n";?> | Paginator->numbers();?>\n"?> | - Paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>\n";?> + Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>\n";?>

    "; ?>