diff --git a/js/questionset.js b/js/questionset.js
index 76f0565..267f8d5 100644
--- a/js/questionset.js
+++ b/js/questionset.js
@@ -59,7 +59,8 @@ H5P.QuestionSet = function (options, contentId, contentData) {
retryButtonText: 'Retry',
showAnimations: false,
skipButtonText: 'Skip video',
- showSolutionButton: true
+ showSolutionButton: true,
+ showRetryButton: true
},
override: {},
disableBackwardsNavigation: false
@@ -111,6 +112,10 @@ H5P.QuestionSet = function (options, contentId, contentData) {
' ':
'';
+ const retryButtonTemplate = params.endGame.showRetryButton ?
+ ' ':
+ '';
+
var resulttemplate =
'
' +
'
<%= message %>
' +
@@ -126,7 +131,7 @@ H5P.QuestionSet = function (options, contentId, contentData) {
' <% } %>' +
'
' +
solutionButtonTemplate +
- ' ' +
+ retryButtonTemplate +
'
' +
'
';
diff --git a/language/.en.json b/language/.en.json
index 5928587..928f623 100644
--- a/language/.en.json
+++ b/language/.en.json
@@ -129,6 +129,9 @@
{
"label": "Display solution button"
},
+ {
+ "label": "Display retry button"
+ },
{
"label": "No results message",
"description": "Text displayed on end page when \"Display results\" is disabled",
diff --git a/language/af.json b/language/af.json
index 5928587..928f623 100644
--- a/language/af.json
+++ b/language/af.json
@@ -129,6 +129,9 @@
{
"label": "Display solution button"
},
+ {
+ "label": "Display retry button"
+ },
{
"label": "No results message",
"description": "Text displayed on end page when \"Display results\" is disabled",
diff --git a/language/ar.json b/language/ar.json
index 2993dc6..d023439 100644
--- a/language/ar.json
+++ b/language/ar.json
@@ -129,6 +129,9 @@
{
"label": "Display solution button"
},
+ {
+ "label": "Display retry button"
+ },
{
"label": "No results message",
"description": "Text displayed on end page when \"Display results\" is disabled",
diff --git a/language/bs.json b/language/bs.json
index 06a75c4..45fbfc5 100644
--- a/language/bs.json
+++ b/language/bs.json
@@ -129,6 +129,9 @@
{
"label": "Napomena ako nema rezultata"
},
+ {
+ "label": "Display retry button"
+ },
{
"label": "Oznaka za povratne informacije",
"description": "Ovaj tekst će biti prikazan na kraju kviza kada korisnik odgovori na pitanja.",
diff --git a/language/ca.json b/language/ca.json
index bb59d49..8d72d26 100644
--- a/language/ca.json
+++ b/language/ca.json
@@ -129,6 +129,9 @@
{
"label": "Display solution button"
},
+ {
+ "label": "Display retry button"
+ },
{
"label": "No results message",
"description": "Text displayed on end page when \"Display results\" is disabled",
diff --git a/language/cs.json b/language/cs.json
index 5928587..928f623 100644
--- a/language/cs.json
+++ b/language/cs.json
@@ -129,6 +129,9 @@
{
"label": "Display solution button"
},
+ {
+ "label": "Display retry button"
+ },
{
"label": "No results message",
"description": "Text displayed on end page when \"Display results\" is disabled",
diff --git a/language/da.json b/language/da.json
index 5592e53..0c719dd 100644
--- a/language/da.json
+++ b/language/da.json
@@ -129,6 +129,9 @@
{
"label": "Display solution button"
},
+ {
+ "label": "Display retry button"
+ },
{
"label": "No results message",
"description": "Text displayed on end page when \"Display results\" is disabled",
diff --git a/language/de.json b/language/de.json
index 8063ec8..d08fe98 100644
--- a/language/de.json
+++ b/language/de.json
@@ -129,6 +129,9 @@
{
"label": "Den \"Lösung zeigen\"-Button anzeigen"
},
+ {
+ "label": "Display retry button"
+ },
{
"label": "Nachricht bei keinen Ergebnissen",
"description": "Text, der auf der Endseite angezeigt wird, wenn \"Lösung zeigen\" deaktiviert ist",
@@ -255,4 +258,4 @@
]
}
]
-}
+}
\ No newline at end of file
diff --git a/language/el.json b/language/el.json
index 88fc0b8..ba7d16e 100644
--- a/language/el.json
+++ b/language/el.json
@@ -129,6 +129,9 @@
{
"label": "Display solution button"
},
+ {
+ "label": "Display retry button"
+ },
{
"label": "No results message",
"description": "Text displayed on end page when \"Display results\" is disabled",
diff --git a/language/es.json b/language/es.json
index c7ee5c0..cef7204 100644
--- a/language/es.json
+++ b/language/es.json
@@ -129,6 +129,9 @@
{
"label": "Display solution button"
},
+ {
+ "label": "Display retry button"
+ },
{
"label": "No results message",
"description": "Text displayed on end page when \"Display results\" is disabled",
diff --git a/language/et.json b/language/et.json
index 7e58812..2ed1975 100644
--- a/language/et.json
+++ b/language/et.json
@@ -129,6 +129,9 @@
{
"label": "Display solution button"
},
+ {
+ "label": "Display retry button"
+ },
{
"label": "No results message",
"description": "Text displayed on end page when \"Display results\" is disabled",
diff --git a/language/eu.json b/language/eu.json
index c4ae67f..619acfb 100644
--- a/language/eu.json
+++ b/language/eu.json
@@ -129,6 +129,9 @@
{
"label": "Bistaratu soluzioaren botoia"
},
+ {
+ "label": "Display retry button"
+ },
{
"label": "Emaitzarik ez mezua",
"description": "Orriaren bukaeran bistaratzen den testua \"Bistaratu emaitzak\" desgaituta dagoenean",
@@ -255,4 +258,4 @@
]
}
]
-}
+}
\ No newline at end of file
diff --git a/language/fi.json b/language/fi.json
index 3c9509b..0e00db0 100644
--- a/language/fi.json
+++ b/language/fi.json
@@ -129,6 +129,9 @@
{
"label": "Salli painike \"Katso vastaus\""
},
+ {
+ "label": "Display retry button"
+ },
{
"label": "Teksti kun ei tuloksia",
"description": "Teksti näytetään, kun \"Näytä tulokset\" ei ole valittuna",
diff --git a/language/fr.json b/language/fr.json
index 766e875..cb0ce3e 100644
--- a/language/fr.json
+++ b/language/fr.json
@@ -129,6 +129,9 @@
{
"label": "Afficher le bouton \"Solution\"."
},
+ {
+ "label": "Display retry button"
+ },
{
"label": "Message si pas de résultats",
"description": "Texte affiché sur la page finale si l'option \"Afficher les résultats\" est désactivée.",
diff --git a/language/he.json b/language/he.json
index 8b98bfe..cf9181b 100644
--- a/language/he.json
+++ b/language/he.json
@@ -129,6 +129,9 @@
{
"label": "כפתור הצגת הפתרון"
},
+ {
+ "label": "Display retry button"
+ },
{
"label": "אין הודעת תוצאות",
"description": "תוכן מוצג בסוף העמוד כאשר מוצג \"הציגו תוצאות\"",
diff --git a/language/hu.json b/language/hu.json
index 5928587..928f623 100644
--- a/language/hu.json
+++ b/language/hu.json
@@ -129,6 +129,9 @@
{
"label": "Display solution button"
},
+ {
+ "label": "Display retry button"
+ },
{
"label": "No results message",
"description": "Text displayed on end page when \"Display results\" is disabled",
diff --git a/language/it.json b/language/it.json
index b203c64..ddfc8b3 100644
--- a/language/it.json
+++ b/language/it.json
@@ -129,6 +129,9 @@
{
"label": "Pulsante visualizza soluzione"
},
+ {
+ "label": "Display retry button"
+ },
{
"label": "Messaggio di nessun risultato",
"description": "Testo visualizzato nella pagina finale quando \"Visualizza risultati\" è disattivato",
diff --git a/language/ja.json b/language/ja.json
index a8e490b..aa54435 100644
--- a/language/ja.json
+++ b/language/ja.json
@@ -129,6 +129,9 @@
{
"label": "解ボタンを表示"
},
+ {
+ "label": "Display retry button"
+ },
{
"label": "結果のメッセージはありません",
"description": "「結果を表示」が無効のとき最後のページにに表示されるテキスト",
diff --git a/language/ko.json b/language/ko.json
index 5928587..928f623 100644
--- a/language/ko.json
+++ b/language/ko.json
@@ -129,6 +129,9 @@
{
"label": "Display solution button"
},
+ {
+ "label": "Display retry button"
+ },
{
"label": "No results message",
"description": "Text displayed on end page when \"Display results\" is disabled",
diff --git a/language/nb.json b/language/nb.json
index 9343317..33d569a 100644
--- a/language/nb.json
+++ b/language/nb.json
@@ -129,6 +129,9 @@
{
"label": "Vis resultatknapp"
},
+ {
+ "label": "Display retry button"
+ },
{
"label": "Melding når resultater ikke vises",
"description": "Teksten vises på avslutnings-siden når resultater ikke vises",
diff --git a/language/nl.json b/language/nl.json
index 9358f9c..8ee2a3e 100644
--- a/language/nl.json
+++ b/language/nl.json
@@ -129,6 +129,9 @@
{
"label": "Toon de oplossings-knop"
},
+ {
+ "label": "Display retry button"
+ },
{
"label": "Geen resultaten bericht",
"description": "De getoonde tekst op de eindpagina wanneer \"Toon resultaten\" is uitgeschakeld",
@@ -255,4 +258,4 @@
]
}
]
-}
+}
\ No newline at end of file
diff --git a/language/nn.json b/language/nn.json
index b7057f0..f3ac558 100644
--- a/language/nn.json
+++ b/language/nn.json
@@ -129,6 +129,9 @@
{
"label": "Vis resultatknapp"
},
+ {
+ "label": "Display retry button"
+ },
{
"label": "Melding når resultater ikke vises",
"description": "Teksten vises på avslutnings-siden når resultater ikke vises",
diff --git a/language/pl.json b/language/pl.json
index a1ec3ca..c651e9c 100644
--- a/language/pl.json
+++ b/language/pl.json
@@ -129,6 +129,9 @@
{
"label": "Przycisk wyświetlania wyników"
},
+ {
+ "label": "Display retry button"
+ },
{
"label": "Informacja dla braku wyników",
"description": "Tekst wyświetlany na ekranie końcowym, gdy wyłączona jest opcja \"Pokaż wyniki\"",
@@ -255,4 +258,4 @@
]
}
]
-}
+}
\ No newline at end of file
diff --git a/language/pt.json b/language/pt.json
index 07d8ce2..e395e36 100644
--- a/language/pt.json
+++ b/language/pt.json
@@ -129,6 +129,9 @@
{
"label": "Mostrar botão de solução"
},
+ {
+ "label": "Display retry button"
+ },
{
"label": "Mensagem quando não existem resultados",
"description": "Textos a exibir no final da página quando \"Mostrar resultados\" está desabilitado",
diff --git a/language/ro.json b/language/ro.json
index 5928587..928f623 100644
--- a/language/ro.json
+++ b/language/ro.json
@@ -129,6 +129,9 @@
{
"label": "Display solution button"
},
+ {
+ "label": "Display retry button"
+ },
{
"label": "No results message",
"description": "Text displayed on end page when \"Display results\" is disabled",
diff --git a/language/ru.json b/language/ru.json
index 5928587..928f623 100644
--- a/language/ru.json
+++ b/language/ru.json
@@ -129,6 +129,9 @@
{
"label": "Display solution button"
},
+ {
+ "label": "Display retry button"
+ },
{
"label": "No results message",
"description": "Text displayed on end page when \"Display results\" is disabled",
diff --git a/language/sr.json b/language/sr.json
index 5928587..928f623 100644
--- a/language/sr.json
+++ b/language/sr.json
@@ -129,6 +129,9 @@
{
"label": "Display solution button"
},
+ {
+ "label": "Display retry button"
+ },
{
"label": "No results message",
"description": "Text displayed on end page when \"Display results\" is disabled",
diff --git a/language/sv.json b/language/sv.json
index ac385fc..965b1df 100644
--- a/language/sv.json
+++ b/language/sv.json
@@ -129,6 +129,9 @@
{
"label": "Visa rätt svar-knapp"
},
+ {
+ "label": "Display retry button"
+ },
{
"label": "Meddelande vid inget resultat",
"description": "Text som visas på slutsida när \"Visa resultat\" är inaktiverat",
@@ -255,4 +258,4 @@
]
}
]
-}
+}
\ No newline at end of file
diff --git a/language/tr.json b/language/tr.json
index a981a2f..a5bc9eb 100644
--- a/language/tr.json
+++ b/language/tr.json
@@ -129,6 +129,9 @@
{
"label": "Display solution button"
},
+ {
+ "label": "Display retry button"
+ },
{
"label": "No results message",
"description": "Text displayed on end page when \"Display results\" is disabled",
diff --git a/language/vi.json b/language/vi.json
index 5928587..928f623 100644
--- a/language/vi.json
+++ b/language/vi.json
@@ -129,6 +129,9 @@
{
"label": "Display solution button"
},
+ {
+ "label": "Display retry button"
+ },
{
"label": "No results message",
"description": "Text displayed on end page when \"Display results\" is disabled",
diff --git a/language/zh-tw.json b/language/zh-tw.json
index 660b0e6..96cb12d 100644
--- a/language/zh-tw.json
+++ b/language/zh-tw.json
@@ -129,6 +129,9 @@
{
"label": "顯示查看解法功能鈕"
},
+ {
+ "label": "Display retry button"
+ },
{
"label": "沒有結果顯示資訊",
"description": "當未啟用顯示結果時,結束頁面所顯示的文字",
diff --git a/language/zh.json b/language/zh.json
index 8b7c629..8b11fd0 100644
--- a/language/zh.json
+++ b/language/zh.json
@@ -129,6 +129,9 @@
{
"label": "顯示正解按鈕"
},
+ {
+ "label": "Display retry button"
+ },
{
"label": "不顯示測驗結果時的訊息",
"description": "若沒有勾選「顯示測驗結果」,在結束頁面上會顯示的文字。",
diff --git a/semantics.json b/semantics.json
index 495baef..f16c7df 100644
--- a/semantics.json
+++ b/semantics.json
@@ -261,6 +261,12 @@
"label": "Display solution button",
"default": true
},
+ {
+ "name": "showRetryButton",
+ "type": "boolean",
+ "label": "Display retry button",
+ "default": true
+ },
{
"name": "noResultMessage",
"type": "text",
@@ -539,4 +545,4 @@
}
]
}
-]
+]
\ No newline at end of file