Skip to content

Commit

Permalink
Fixing output of 'Actions' in bake templates. Now outputs a __() call.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jan 13, 2010
1 parent 2de9639 commit 53f0771
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cake/console/templates/default/views/form.ctp
Expand Up @@ -43,7 +43,7 @@
?>
</div>
<div class="actions">
<h3><?php __('Actions'); ?></h3>
<h3><?php echo "<?php __('Actions'); ?>"; ?></h3>
<ul>
<?php if ($action != 'add'):?>
<li><?php echo "<?php echo \$this->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}'))); ?>";?></li>
Expand Down
2 changes: 1 addition & 1 deletion cake/console/templates/default/views/index.ctp
Expand Up @@ -77,7 +77,7 @@
</div>
</div>
<div class="actions">
<h3><?php __('Actions'); ?></h3>
<h3><?php echo "<?php __('Actions'); ?>"; ?></h3>
<ul>
<li><?php echo "<?php echo \$this->Html->link(sprintf(__('New %s', true), __('{$singularHumanName}', true)), array('action' => 'add')); ?>";?></li>
<?php
Expand Down
2 changes: 1 addition & 1 deletion cake/console/templates/default/views/view.ctp
Expand Up @@ -42,7 +42,7 @@ foreach ($fields as $field) {
</dl>
</div>
<div class="actions">
<h3><?php __('Actions'); ?></h3>
<h3><?php echo "<?php __('Actions'); ?>"; ?></h3>
<ul>
<?php
echo "\t\t<li><?php echo \$this->Html->link(sprintf(__('Edit %s', true), __('{$singularHumanName}', true)), array('action' => 'edit', \${$singularVar}['{$modelClass}']['{$primaryKey}'])); ?> </li>\n";
Expand Down

0 comments on commit 53f0771

Please sign in to comment.