Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…p translatable.
  • Loading branch information...
commit 96aec10056ca6aae67e4cc6bac83c40074d970e5 1 parent 1de5024
authored July 04, 2011 timhunt committed July 04, 2011
5  question/type/multianswer/questiontype.php
@@ -292,6 +292,7 @@ function print_question_formulation_and_controls(&$question, &$state, $cmoptions
292 292
             $feedback = '' ;
293 293
             $correctanswer = '';
294 294
             $strfeedbackwrapped  = $strfeedback;
  295
+            $strclosewindow =  get_string('close', 'editor');
295 296
                 $testedstate = clone($state);
296 297
                 if ($correctanswers =  $QTYPES[$wrapped->qtype]->get_correct_responses($wrapped, $testedstate)) {
297 298
                     if ($options->readonly && $options->correct_responses) {
@@ -357,7 +358,7 @@ function print_question_formulation_and_controls(&$question, &$state, $cmoptions
357 358
                     }else {
358 359
                         $strfeedbackwrapped = get_string('feedback', 'quiz');
359 360
                     }
360  
-                    $popup = " onmouseover=\"return overlib('$feedback', STICKY, MOUSEOFF, CAPTION, '$strfeedbackwrapped', FGCOLOR, '#FFFFFF');\" ".
  361
+                    $popup = " onmouseover=\"return overlib('$feedback', STICKY, MOUSEOFF, CAPTION, '$strfeedbackwrapped', FGCOLOR, '#FFFFFF', CLOSETEXT, '$strclosewindow');\" ".
361 362
                              " onmouseout=\"return nd();\" ";
362 363
                 }
363 364
 
@@ -373,7 +374,7 @@ function print_question_formulation_and_controls(&$question, &$state, $cmoptions
373 374
             if ($feedback !='' && $popup == ''){
374 375
                 $strfeedbackwrapped = get_string('correctanswer', 'qtype_multianswer');
375 376
                     $feedback = s(str_replace(array("\\", "'"), array("\\\\", "\\'"), $feedback));
376  
-                    $popup = " onmouseover=\"return overlib('$feedback', STICKY, MOUSEOFF, CAPTION, '$strfeedbackwrapped', FGCOLOR, '#FFFFFF');\" ".
  377
+                    $popup = " onmouseover=\"return overlib('$feedback', STICKY, MOUSEOFF, CAPTION, '$strfeedbackwrapped', FGCOLOR, '#FFFFFF', CLOSETEXT, '$strclosewindow');\" ".
377 378
                              " onmouseout=\"return nd();\" ";
378 379
             }
379 380
 

0 notes on commit 96aec10

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