From f687f1459eda6269e19886ad9ce9dd461c7bd639 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Tue, 13 Nov 2018 15:51:53 +0100 Subject: [PATCH] MDL-63991 badges: Translate notification on endorsement --- badges/endorsement.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/badges/endorsement.php b/badges/endorsement.php index ec3e145a0f4..d7b2345d62a 100644 --- a/badges/endorsement.php +++ b/badges/endorsement.php @@ -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);