diff --git a/scripts/langindex.json b/scripts/langindex.json index 03c7baa24..ba9376e82 100644 --- a/scripts/langindex.json +++ b/scripts/langindex.json @@ -1435,6 +1435,7 @@ "core.pulltorefresh": "local_moodlemobileapp", "core.question.answer": "question", "core.question.answersaved": "question", + "core.question.cannotdeterminestatus": "local_moodlemobileapp", "core.question.certainty": "qbehaviour_deferredcbm", "core.question.complete": "question", "core.question.correct": "question", @@ -1452,7 +1453,6 @@ "core.question.questionmessage": "local_moodlemobileapp", "core.question.questionno": "question", "core.question.requiresgrading": "question", - "core.question.unknown": "question", "core.quotausage": "moodle", "core.redirectingtosite": "local_moodlemobileapp", "core.refresh": "moodle", diff --git a/src/addon/qbehaviour/deferredfeedback/providers/handler.ts b/src/addon/qbehaviour/deferredfeedback/providers/handler.ts index 8a3d82ef5..da9052a14 100644 --- a/src/addon/qbehaviour/deferredfeedback/providers/handler.ts +++ b/src/addon/qbehaviour/deferredfeedback/providers/handler.ts @@ -124,13 +124,13 @@ export class AddonQbehaviourDeferredFeedbackHandler implements CoreQuestionBehav } if (complete < 0) { - newState = 'unknown'; + newState = 'cannotdeterminestatus'; } else if (complete > 0) { newState = 'complete'; } else { const gradable = this.questionDelegate.isGradableResponse(question, newBasicAnswers); if (gradable < 0) { - newState = 'unknown'; + newState = 'cannotdeterminestatus'; } else if (gradable > 0) { newState = 'invalid'; } else { diff --git a/src/addon/qbehaviour/manualgraded/providers/handler.ts b/src/addon/qbehaviour/manualgraded/providers/handler.ts index 58755ac3c..91d767af4 100644 --- a/src/addon/qbehaviour/manualgraded/providers/handler.ts +++ b/src/addon/qbehaviour/manualgraded/providers/handler.ts @@ -124,7 +124,7 @@ export class AddonQbehaviourManualGradedHandler implements CoreQuestionBehaviour } if (complete < 0) { - newState = 'unknown'; + newState = 'cannotdeterminestatus'; } else if (complete > 0) { newState = 'complete'; } else { diff --git a/src/assets/lang/en.json b/src/assets/lang/en.json index e765c0d28..bd2f8e5a0 100644 --- a/src/assets/lang/en.json +++ b/src/assets/lang/en.json @@ -1435,6 +1435,7 @@ "core.pulltorefresh": "Pull to refresh", "core.question.answer": "Answer", "core.question.answersaved": "Answer saved", + "core.question.cannotdeterminestatus": "Cannot determine status", "core.question.certainty": "Certainty", "core.question.complete": "Complete", "core.question.correct": "Correct", @@ -1452,7 +1453,6 @@ "core.question.questionmessage": "Question {{$a}}: {{$b}}", "core.question.questionno": "Question {{$a}}", "core.question.requiresgrading": "Requires grading", - "core.question.unknown": "Unknown", "core.quotausage": "You have currently used {{$a.used}} of your {{$a.total}} limit.", "core.redirectingtosite": "You will be redirected to the site.", "core.refresh": "Refresh", diff --git a/src/core/question/lang/en.json b/src/core/question/lang/en.json index 2d51b2676..513c436d2 100644 --- a/src/core/question/lang/en.json +++ b/src/core/question/lang/en.json @@ -1,6 +1,7 @@ { "answer": "Answer", "answersaved": "Answer saved", + "cannotdeterminestatus": "Cannot determine status", "certainty": "Certainty", "complete": "Complete", "correct": "Correct", @@ -17,6 +18,5 @@ "partiallycorrect": "Partially correct", "questionmessage": "Question {{$a}}: {{$b}}", "questionno": "Question {{$a}}", - "requiresgrading": "Requires grading", - "unknown": "Unknown" + "requiresgrading": "Requires grading" } \ No newline at end of file diff --git a/src/core/question/providers/question.ts b/src/core/question/providers/question.ts index 36fc7fed9..31a132cae 100644 --- a/src/core/question/providers/question.ts +++ b/src/core/question/providers/question.ts @@ -230,10 +230,10 @@ export class CoreQuestionProvider { active: false, finished: true }, - unknown: { // Special state for Mobile, sometimes we won't have enough data to detemrine the state. - name: 'unknown', + cannotdeterminestatus: { // Special state for Mobile, sometimes we won't have enough data to detemrine the state. + name: 'cannotdeterminestatus', class: 'core-question-unknown', - status: 'unknown', + status: 'cannotdeterminestatus', active: true, finished: false } @@ -438,7 +438,7 @@ export class CoreQuestionProvider { * @return {CoreQuestionState} State. */ getState(name: string): CoreQuestionState { - return this.STATES[name || 'unknown']; + return this.STATES[name || 'cannotdeterminestatus']; } /**