Skip to content

Commit

Permalink
unify "Are you sure you want to delete"
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed May 22, 2013
1 parent e3e11a4 commit fa02a2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Cake/View/Scaffolds/index.ctp
Expand Up @@ -52,7 +52,7 @@ foreach (${$pluralVar} as ${$singularVar}):
__d('cake', 'Delete'),
array('action' => 'delete', ${$singularVar}[$modelClass][$primaryKey]),
null,
__d('cake', 'Are you sure you want to delete').' #' . ${$singularVar}[$modelClass][$primaryKey]
__d('cake', 'Are you sure you want to delete # %s?', ${$singularVar}[$modelClass][$primaryKey])
);
echo '</td>';
echo '</tr>';
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/View/Scaffolds/view.ctp
Expand Up @@ -178,7 +178,7 @@ $otherSingularVar = Inflector::variable($_alias);
__d('cake', 'Delete'),
array('plugin' => $_details['plugin'], 'controller' => $_details['controller'], 'action' => 'delete', ${$otherSingularVar}[$_details['primaryKey']]),
null,
__d('cake', 'Are you sure you want to delete') .' #' . ${$otherSingularVar}[$_details['primaryKey']] . '?'
__d('cake', 'Are you sure you want to delete # %s?', ${$otherSingularVar}[$_details['primaryKey']])
);
echo "\n";
echo "\t\t\t</td>\n";
Expand Down

0 comments on commit fa02a2e

Please sign in to comment.