Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-27716 qtype_multianswer make the work 'Close' in the overlib popu…

…p translatable.
  • Loading branch information...
commit 96aec10056ca6aae67e4cc6bac83c40074d970e5 1 parent 1de5024
Joseph Rezeau authored timhunt committed
Showing with 3 additions and 2 deletions.
  1. +3 −2 question/type/multianswer/questiontype.php
View
5 question/type/multianswer/questiontype.php
@@ -292,6 +292,7 @@ function print_question_formulation_and_controls(&$question, &$state, $cmoptions
$feedback = '' ;
$correctanswer = '';
$strfeedbackwrapped = $strfeedback;
+ $strclosewindow = get_string('close', 'editor');
$testedstate = clone($state);
if ($correctanswers = $QTYPES[$wrapped->qtype]->get_correct_responses($wrapped, $testedstate)) {
if ($options->readonly && $options->correct_responses) {
@@ -357,7 +358,7 @@ function print_question_formulation_and_controls(&$question, &$state, $cmoptions
}else {
$strfeedbackwrapped = get_string('feedback', 'quiz');
}
- $popup = " onmouseover=\"return overlib('$feedback', STICKY, MOUSEOFF, CAPTION, '$strfeedbackwrapped', FGCOLOR, '#FFFFFF');\" ".
+ $popup = " onmouseover=\"return overlib('$feedback', STICKY, MOUSEOFF, CAPTION, '$strfeedbackwrapped', FGCOLOR, '#FFFFFF', CLOSETEXT, '$strclosewindow');\" ".
" onmouseout=\"return nd();\" ";
}
@@ -373,7 +374,7 @@ function print_question_formulation_and_controls(&$question, &$state, $cmoptions
if ($feedback !='' && $popup == ''){
$strfeedbackwrapped = get_string('correctanswer', 'qtype_multianswer');
$feedback = s(str_replace(array("\\", "'"), array("\\\\", "\\'"), $feedback));
- $popup = " onmouseover=\"return overlib('$feedback', STICKY, MOUSEOFF, CAPTION, '$strfeedbackwrapped', FGCOLOR, '#FFFFFF');\" ".
+ $popup = " onmouseover=\"return overlib('$feedback', STICKY, MOUSEOFF, CAPTION, '$strfeedbackwrapped', FGCOLOR, '#FFFFFF', CLOSETEXT, '$strclosewindow');\" ".
" onmouseout=\"return nd();\" ";
}

0 comments on commit 96aec10

Please sign in to comment.
Something went wrong with that request. Please try again.