From: tjhunt Date: Tue, 28 Nov 2006 18:42:18 +0000 (+0000) Subject: Put back spaces in code that Martin Dougiamass stripped out of the lang strings witho... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=2962ad61e4a2b474bcb12889b2dfae0a4873a9f4;p=moodle.git Put back spaces in code that Martin Dougiamass stripped out of the lang strings without thinking about the consequences. Merged from MOODLE_17_STABLE. --- diff --git a/mod/quiz/editlib.php b/mod/quiz/editlib.php index 4ca0ba5302..d999676110 100644 --- a/mod/quiz/editlib.php +++ b/mod/quiz/editlib.php @@ -337,6 +337,7 @@ function quiz_print_question_list($quiz, $allowdelete=true, $showbreaks=true, $r } echo ' onchange="document.showbreaks.submit(); return true;" />'; print_string('reordertool', 'quiz'); + echo ' '; helpbutton('reorderingtool', get_string('reorderingtool', 'quiz'), 'quiz'); echo '
'; diff --git a/mod/quiz/view.php b/mod/quiz/view.php index f92c6093c8..690bf767f7 100644 --- a/mod/quiz/view.php +++ b/mod/quiz/view.php @@ -334,10 +334,10 @@ $lastattempttime = $lastattempt->timefinish; if ($numattempts == 1 && $quiz->delay1 && $timenow <= $lastattempttime + $quiz->delay1) { $tempunavailable = get_string('temporaryblocked', 'quiz') . - ''. userdate($lastattempt + $quiz->delay1). ''; + ' '. userdate($lastattempt + $quiz->delay1). ''; } else if ($numattempts > 1 && $quiz->delay2 && $timenow <= $lastattempttime + $quiz->delay2) { $tempunavailable = get_string('temporaryblocked', 'quiz') . - ''. userdate($lastattempt + $quiz->delay2). ''; + ' '. userdate($lastattempt + $quiz->delay2). ''; } // If so, display a message and prevent the start button from appearing. diff --git a/question/format/webct/format.php b/question/format/webct/format.php index e2d2f91f0e..ca5f046a67 100644 --- a/question/format/webct/format.php +++ b/question/format/webct/format.php @@ -366,7 +366,7 @@ class qformat_webct extends qformat_default { case SHORTANSWER: if ($maxfraction != 1) { $maxfraction = $maxfraction * 100; - $errors[] = "'$question->name': ".get_string("wronggrade", "quiz", $nLineCounter).get_string("fractionsnomax", "quiz", $maxfraction); + $errors[] = "'$question->name': ".get_string("wronggrade", "quiz", $nLineCounter).' '.get_string("fractionsnomax", "quiz", $maxfraction); $QuestionOK = FALSE; } break; @@ -375,7 +375,7 @@ class qformat_webct extends qformat_default { if ($question->single) { if ($maxfraction != 1) { $maxfraction = $maxfraction * 100; - $errors[] = "'$question->name': ".get_string("wronggrade", "quiz", $nLineCounter).get_string("fractionsnomax", "quiz", $maxfraction); + $errors[] = "'$question->name': ".get_string("wronggrade", "quiz", $nLineCounter).' '.get_string("fractionsnomax", "quiz", $maxfraction); $QuestionOK = FALSE; } } else { @@ -383,7 +383,7 @@ class qformat_webct extends qformat_default { if ($totalfraction != 1) { echo "

$totalfraction

"; $totalfraction = $totalfraction * 100; - $errors[] = "'$question->name': ".get_string("wronggrade", "quiz", $nLineCounter).get_string("fractionsaddwrong", "quiz", $totalfraction); + $errors[] = "'$question->name': ".get_string("wronggrade", "quiz", $nLineCounter).' '.get_string("fractionsaddwrong", "quiz", $totalfraction); $QuestionOK = FALSE; } } diff --git a/question/type/questiontype.php b/question/type/questiontype.php index 064e814ae8..7e2dacd8f1 100644 --- a/question/type/questiontype.php +++ b/question/type/questiontype.php @@ -700,6 +700,7 @@ class default_questiontype { if ($cmoptions->penaltyscheme) { // print details of grade adjustment due to penalties if ($state->last_graded->raw_grade > $state->last_graded->grade){ + echo ' '; print_string('gradingdetailsadjustment', 'quiz', $grade); } // print info about new penalty @@ -707,11 +708,13 @@ class default_questiontype { if (($state->last_graded->raw_grade < $question->maxgrade) and (QUESTION_EVENTCLOSEANDGRADE !== $state->event)) { if ('' !== $state->last_graded->penalty && ((float)$state->last_graded->penalty) > 0.0) { // A penalty was applied so display it + echo ' '; print_string('gradingdetailspenalty', 'quiz', $state->last_graded->penalty); } else { /* No penalty was applied even though the answer was not correct (eg. a syntax error) so tell the student that they were not penalised for the attempt */ + echo ' '; print_string('gradingdetailszeropenalty', 'quiz'); } }