diff --git a/mod/feedback/item/multichoicerated/lib.php b/mod/feedback/item/multichoicerated/lib.php index 8494726e73d..c2d93be26d5 100644 --- a/mod/feedback/item/multichoicerated/lib.php +++ b/mod/feedback/item/multichoicerated/lib.php @@ -279,8 +279,10 @@ class feedback_item_multichoicerated extends feedback_item_base { $options = array(); foreach ($lines as $idx => $line) { list($weight, $optiontext) = explode(FEEDBACK_MULTICHOICERATED_VALUE_SEP, $line); - $options[$idx + 1] = format_text("($weight) ".$optiontext, - FORMAT_HTML, array('noclean' => true, 'para' => false)); + $a = new stdclass(); + $a->weight = $weight; + $a->name = format_text($optiontext, FORMAT_HTML, array('noclean' => true, 'para' => false)); + $options[$idx + 1] = get_string('multichoiceoption', 'feedback', $a); } if ($info->subtype === 'r' && !$this->hidenoselect($item)) { $options = array(0 => get_string('not_selected', 'feedback')) + $options; diff --git a/mod/feedback/lang/en/feedback.php b/mod/feedback/lang/en/feedback.php index a0ee5f114ea..9f98fde8dcf 100644 --- a/mod/feedback/lang/en/feedback.php +++ b/mod/feedback/lang/en/feedback.php @@ -180,6 +180,7 @@ $string['modulename_link'] = 'mod/feedback/view'; $string['modulenameplural'] = 'Feedback'; $string['move_item'] = 'Move this question'; $string['multichoice'] = 'Multiple choice'; +$string['multichoiceoption'] = '({$a->weight}) {$a->name}'; $string['multichoicerated'] = 'Multiple choice (rated)'; $string['multichoicetype'] = 'Multiple choice type'; $string['multichoice_values'] = 'Multiple choice values';