From 366f05f32339574e4d941a92bd8fa3230acc0531 Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Fri, 30 Oct 2015 14:37:24 +0000 Subject: [PATCH] MDL-35982 blog: improve the delete entry confirmation string So that there is more context about what is being deleted. --- blog/edit.php | 2 +- lang/en/blog.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/blog/edit.php b/blog/edit.php index 686962d4a9f..14d4c872eed 100644 --- a/blog/edit.php +++ b/blog/edit.php @@ -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)); diff --git a/lang/en/blog.php b/lang/en/blog.php index a37b84af24f..c71832b0fcc 100644 --- a/lang/en/blog.php +++ b/lang/en/blog.php @@ -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}'; -- 2.43.0