MDL-63991 badges: Translate notification on endorsement

This commit is contained in:
Pau Ferrer Ocaña 2018-11-13 15:51:53 +01:00
parent 65ffd0a33a
commit f687f1459e

View File

@ -63,6 +63,10 @@ $output = $PAGE->get_renderer('core', 'badges');
$msg = optional_param('msg', '', PARAM_TEXT);
$emsg = optional_param('emsg', '', PARAM_TEXT);
if ($msg !== '') {
$msg = get_string($msg, 'badges');
}
echo $OUTPUT->header();
echo $OUTPUT->heading(print_badge_image($badge, $context, 'small') . ' ' . $badge->name);