quiz editing: MDL-17288 Lang string issues

questionsperpageselected and shufflequestionsselected from lang/en_utf8/quiz.php now use a $a, rather than concatenation.
This commit is contained in:
pilpi
2008-11-21 13:35:15 +00:00
parent a832c5e151
commit 47a8933f62
2 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -716,6 +716,6 @@ $string['addnewquestionsqbank'] = 'Add questions to the category $a in the \'Que
$string['empty'] = 'Empty';
$string['quizopened'] = 'This quiz is open.';
$string['areyousuredeleteselected'] = 'Are you sure you want to delete the selected questions?';
$string['questionsperpageselected'] = 'Questions per page has been set so the paging is currently fixed. As a result, the paging controls have been disabled. You can change this in ';
$string['shufflequestionsselected'] = '* Shuffle questions has been set so question order is random. As a result, the button Reorder questions has been disabled. You can change this in ';
$string['questionsperpageselected'] = 'Questions per page has been set so the paging is currently fixed. As a result, the paging controls have been disabled. You can change this in $a.';
$string['shufflequestionsselected'] = '* Shuffle questions has been set so question order is random. As a result, the button Reorder questions has been disabled. You can change this in $a.';
?>
+8 -8
View File
@@ -780,21 +780,21 @@ if($quiz_has_attempts){
$notifystring.=notify($string,$style='notifyproblem', $align='center', $return=true);
}
if($questionsperpagebool && $quiz_reordertool){
$string=get_string('questionsperpageselected', 'quiz');
$updateurl=new moodle_url("$CFG->wwwroot/course/mod.php",
array("return"=>"true","update"=>$quiz->cmid, "sesskey"=>sesskey()));
$string.= '<a href="'.$updateurl->out().'">';
$string.=get_string('updatethis', '', get_string('modulename', 'quiz'));
$string.='</a>.';
$linkstring = '<a href="'.$updateurl->out().'">';
$linkstring.=get_string('updatethis', '', get_string('modulename', 'quiz'));
$linkstring.='</a>';
$string=get_string('questionsperpageselected', 'quiz', $linkstring);
$notifystring.=notify($string,$style='notifyproblem', $align='center', $return=true);
}
if($quiz->shufflequestions && $quiz_reordertool){
$string=get_string('shufflequestionsselected', 'quiz');
$updateurl=new moodle_url("$CFG->wwwroot/course/mod.php",
array("return"=>"true","update"=>$quiz->cmid, "sesskey"=>sesskey()));
$string.= '<a href="'.$updateurl->out().'">';
$string.=get_string('updatethis', '', get_string('modulename', 'quiz'));
$string.='</a>.';
$linkstring = '<a href="'.$updateurl->out().'">';
$linkstring.=get_string('updatethis', '', get_string('modulename', 'quiz'));
$linkstring.='</a>';
$string=get_string('shufflequestionsselected', 'quiz',$linkstring);
$notifystring.=notify($string,$style='notifyproblem', $align='center', $return=true);
}
if(!empty($notifystring)){