Fix a bug so that result heading in questionset translateable

pull/1/head
Svein-Tore Griff With 2014-01-15 20:35:48 +01:00
parent 7044c644bf
commit bf3f3d0518
2 changed files with 4 additions and 4 deletions

View File

@ -68,7 +68,7 @@ H5P.QuestionSet = function (options, contentId) {
var resulttemplate = var resulttemplate =
'<div class="questionset-results">' + '<div class="questionset-results">' +
' <div class="greeting"><%= greeting %></div>' + ' <div class="greeting"><%= message %></div>' +
' <div class="score <%= scoreclass %>">' + ' <div class="score <%= scoreclass %>">' +
' <div class="emoticon"></div>' + ' <div class="emoticon"></div>' +
' <div class="resulttext <%= scoreclass %>"><% if (comment) { %><h2><%= comment %></h2><% } %><%= score %><br><%= resulttext %></div>' + ' <div class="resulttext <%= scoreclass %>"><% if (comment) { %><h2><%= comment %></h2><% } %><%= score %><br><%= resulttext %></div>' +
@ -97,7 +97,7 @@ H5P.QuestionSet = function (options, contentId) {
}, },
endGame: { endGame: {
showResultPage: true, showResultPage: true,
greeting: 'Your result:', message: 'Your result:',
successGreeting: 'Congratulations!', successGreeting: 'Congratulations!',
successComment: 'You have enough correct answers to pass the test.', successComment: 'You have enough correct answers to pass the test.',
failGreeting: 'Sorry!', failGreeting: 'Sorry!',
@ -235,7 +235,7 @@ H5P.QuestionSet = function (options, contentId) {
} }
var eparams = { var eparams = {
greeting: params.endGame.greeting, message: params.endGame.message,
comment: (success ? params.endGame.successGreeting : params.endGame.failGreeting), comment: (success ? params.endGame.successGreeting : params.endGame.failGreeting),
score: scoreString, score: scoreString,
scoreclass: (success ? 'success' : 'fail'), scoreclass: (success ? 'success' : 'fail'),

View File

@ -3,7 +3,7 @@
"contentType": "question", "contentType": "question",
"majorVersion": 1, "majorVersion": 1,
"minorVersion": 0, "minorVersion": 0,
"patchVersion": 38, "patchVersion": 39,
"runnable": 1, "runnable": 1,
"fullscreen": 0, "fullscreen": 0,
"machineName": "H5P.QuestionSet", "machineName": "H5P.QuestionSet",