Skip to content

Commit

Permalink
Merge pull request #1306 from AlbertoMoreta/oppia-1346-multi-lingual-…
Browse files Browse the repository at this point in the history
…support-for-grade-boundaries

OPPIA-1346: Add multi-lingual support for grade boundaries
  • Loading branch information
jbc25 authored Feb 28, 2023
2 parents 24fd1c7 + 6bc6fd9 commit c76c556
Show file tree
Hide file tree
Showing 6 changed files with 513 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"availability":0,
"showfeedback":2,
"grade_boundaries": [
{"0": "Quiz score is between 0% and 49%. MaxQuizScore: {{max_score}}; UserScore: {{user_score}}; QuizScore: {{score_percentage}}%"},
{"20": "Quiz score is between 20% and 49%. MaxQuizScore: {{max_score}}; UserScore: {{user_score}}; QuizScore: {{score_percentage}}%"},
{"50": "Quiz score is between 50% and 99%. MaxQuizScore: {{max_score}}; UserScore: {{user_score}}; QuizScore: {{score_percentage}}%"},
{"100": "Quiz score is 100%. MaxQuizScore: {{max_score}}; UserScore: {{user_score}}; QuizScore: {{score_percentage}}%"}
]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,229 @@
{
"id":3472,
"title":{
"en":"Feedback Multilang Grade Boundaries"
},
"description":{
"en":"Feedback Multilang Grade Boundaries"
},
"props":{
"allowtryagain":1,
"courseversion":"20190521122247",
"maxattempts":0,
"digest":"b56d41a0bd7c93acdea034c50118414718295cr0s2a1p80a0m0",
"maxscore":8,
"availability":0,
"showfeedback":2,
"grade_boundaries": [
{"0": "Quiz score is between 20% and 49%. MaxQuizScore: {{max_score}}; UserScore: {{user_score}}; QuizScore: {{score_percentage}}%"},
{"50": "en=Quiz score is between 50% and 99%. MaxQuizScore: {{max_score}}; UserScore: {{user_score}}; QuizScore: {{score_percentage}}%\r\nes=La puntuación del quiz está entre 50% y 99%. PuntuaciónMáxima: {{max_score}}; PuntuaciónDelUsuario: {{user_score}}; PuntuaciónDelQuiz: {{score_percentage}}%"},
{"100": "en=Quiz score is 100%. MaxQuizScore: {{max_score}}; UserScore: {{user_score}}; QuizScore: {{score_percentage}}%\r\nes=La puntuación del quiz es de 100%. PuntuaciónMáxima: {{max_score}}; PuntuaciónDelUsuario: {{user_score}}; PuntuaciónDelQuiz: {{score_percentage}}%"}
]
},
"questions":[
{
"question":{
"responses":[
{
"title":{
"en":"Response with score 2.0"
},
"props":{
"id":244
},
"order":1,
"score":"2.0000",
"id":103055
},
{
"title":{
"en":"Response with score 1.0"
},
"props":{
"id":954
},
"order":2,
"score":"1.0000",
"id":103056
},
{
"title":{
"en":"Response with score 0.0"
},
"props":{
"id":954
},
"order":2,
"score":"0.0000",
"id":103057
}
],
"props":{
"maxscore":2,
"shuffleanswers":"1",
"required": false
},
"type":"multichoice",
"id":36249,
"title":{
"en":"Question 1"
}
},
"order":1,
"id":36042
},
{
"question":{
"responses":[
{
"title":{
"en":"Response with score 2.0"
},
"props":{
"id":244
},
"order":1,
"score":"2.0000",
"id":103058
},
{
"title":{
"en":"Response with score 1.0"
},
"props":{
"id":954
},
"order":2,
"score":"1.0000",
"id":103059
},
{
"title":{
"en":"Response with score 0.0"
},
"props":{
"id":954
},
"order":2,
"score":"0.0000",
"id":103060
}
],
"props":{
"maxscore":2,
"shuffleanswers":"1",
"required": false
},
"type":"multichoice",
"id":36250,
"title":{
"en":"Question 2"
}
},
"order":2,
"id":36043
},
{
"question":{
"responses":[
{
"title":{
"en":"Response with score 2.0"
},
"props":{
"id":244
},
"order":1,
"score":"2.0000",
"id":103061
},
{
"title":{
"en":"Response with score 1.0"
},
"props":{
"id":954
},
"order":2,
"score":"1.0000",
"id":103062
},
{
"title":{
"en":"Response with score 0.0"
},
"props":{
"id":954
},
"order":2,
"score":"0.0000",
"id":103063
}
],
"props":{
"maxscore":2,
"shuffleanswers":"1",
"required": false
},
"type":"multichoice",
"id":36250,
"title":{
"en":"Question 3"
}
},
"order":3,
"id":36044
},
{
"question":{
"responses":[
{
"title":{
"en":"Response with score 2.0"
},
"props":{
"id":244
},
"order":1,
"score":"2.0000",
"id":103064
},
{
"title":{
"en":"Response with score 1.0"
},
"props":{
"id":954
},
"order":2,
"score":"1.0000",
"id":103065
},
{
"title":{
"en":"Response with score 0.0"
},
"props":{
"id":954
},
"order":2,
"score":"0.0000",
"id":103066
}
],
"props":{
"maxscore":2,
"shuffleanswers":"1",
"required": false
},
"type":"multichoice",
"id":36250,
"title":{
"en":"Question 4"
}
},
"order":3,
"id":36045
}
]
}
Loading

0 comments on commit c76c556

Please sign in to comment.