unify "Are you sure you want to delete"

This commit is contained in:
euromark 2013-05-22 12:15:33 +02:00
parent e3e11a48e6
commit fa02a2efc9
2 changed files with 2 additions and 2 deletions

View file

@ -52,7 +52,7 @@ foreach (${$pluralVar} as ${$singularVar}):
__d('cake', 'Delete'), __d('cake', 'Delete'),
array('action' => 'delete', ${$singularVar}[$modelClass][$primaryKey]), array('action' => 'delete', ${$singularVar}[$modelClass][$primaryKey]),
null, 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 '</td>';
echo '</tr>'; echo '</tr>';

View file

@ -178,7 +178,7 @@ $otherSingularVar = Inflector::variable($_alias);
__d('cake', 'Delete'), __d('cake', 'Delete'),
array('plugin' => $_details['plugin'], 'controller' => $_details['controller'], 'action' => 'delete', ${$otherSingularVar}[$_details['primaryKey']]), array('plugin' => $_details['plugin'], 'controller' => $_details['controller'], 'action' => 'delete', ${$otherSingularVar}[$_details['primaryKey']]),
null, 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 "\n";
echo "\t\t\t</td>\n"; echo "\t\t\t</td>\n";