Permalink
Browse files

unify "Are you sure you want to delete"

  • Loading branch information...
1 parent e3e11a4 commit fa02a2efc90b4ef3b48f7f3f0a3d21f78fd0a383 @dereuromark dereuromark committed May 22, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/Cake/View/Scaffolds/index.ctp
  2. +1 −1 lib/Cake/View/Scaffolds/view.ctp
@@ -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>';
@@ -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";

0 comments on commit fa02a2e

Please sign in to comment.