MDL-35982 blog: improve the delete entry confirmation string

So that there is more context about what is being deleted.
This commit is contained in:
Dan Poltawski 2015-10-30 14:37:24 +00:00
parent bf12b089e6
commit 366f05f323
2 changed files with 2 additions and 2 deletions

View File

@ -141,7 +141,7 @@ if ($action === 'delete') {
// Output edit mode title.
echo $OUTPUT->heading($strblogs . ': ' . get_string('deleteentry', 'blog'), 2);
echo $OUTPUT->confirm(get_string('blogdeleteconfirm', 'blog'),
echo $OUTPUT->confirm(get_string('blogdeleteconfirm', 'blog', format_string($entry->subject)),
new moodle_url('edit.php', $optionsyes),
new moodle_url('index.php', $optionsno));

View File

@ -41,7 +41,7 @@ $string['blogaboutthis'] = 'Blog about this {$a->type}';
$string['blogaboutthiscourse'] = 'Add an entry about this course';
$string['blogaboutthismodule'] = 'Add an entry about this {$a}';
$string['blogadministration'] = 'Blog administration';
$string['blogdeleteconfirm'] = 'Delete this blog entry?';
$string['blogdeleteconfirm'] = 'Delete the blog entry \'{$a}\'?';
$string['blogdisable'] = 'Blogging is disabled!';
$string['blogentries'] = 'Blog entries';
$string['blogentriesabout'] = 'Blog entries about {$a}';