Skip to content

Commit

Permalink
MDL-35982 blog: improve the delete entry confirmation string
Browse files Browse the repository at this point in the history
So that there is more context about what is being deleted.
  • Loading branch information
danpoltawski committed Nov 26, 2015
1 parent bf12b08 commit 366f05f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion blog/edit.php
Expand Up @@ -141,7 +141,7 @@
// 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));

Expand Down
2 changes: 1 addition & 1 deletion lang/en/blog.php
Expand Up @@ -41,7 +41,7 @@
$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}';
Expand Down

0 comments on commit 366f05f

Please sign in to comment.