Skip to content

Commit

Permalink
MDL-27716 qtype_multianswer make the work 'Close' in the overlib popu…
Browse files Browse the repository at this point in the history
…p translatable.
  • Loading branch information
Joseph Rezeau authored and timhunt committed Jul 4, 2011
1 parent 1de5024 commit 96aec10
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions question/type/multianswer/questiontype.php
Expand Up @@ -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) {
Expand Down Expand Up @@ -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();\" ";
}

Expand All @@ -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();\" ";
}

Expand Down

0 comments on commit 96aec10

Please sign in to comment.