Skip to content

Commit

Permalink
Merge pull request #22 from thomasmars/ji-2771-submit-button
Browse files Browse the repository at this point in the history
ji-2771 submit button
  • Loading branch information
otacke authored Oct 29, 2021
2 parents c7e425c + 65d4ec4 commit 5afaf5d
Show file tree
Hide file tree
Showing 8 changed files with 320 additions and 285 deletions.
6 changes: 5 additions & 1 deletion language/.en.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@
"label": "Text for \"Check\" button",
"default": "Check"
},
{
"label": "Text for \"Submit\" button",
"default": "Submit"
},
{
"label": "Text for \"Retry\" button",
"default": "Retry"
Expand Down Expand Up @@ -294,4 +298,4 @@
]
}
]
}
}
6 changes: 5 additions & 1 deletion language/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@
"label": "Beschriftung des \"Überprüfen\"-Buttons",
"default": "Überprüfen"
},
{
"label": "Text for \"Submit\" button",
"default": "Submit"
},
{
"label": "Beschriftung des \"Wiederholen\"-Buttons",
"default": "Wiederholen"
Expand Down Expand Up @@ -294,4 +298,4 @@
]
}
]
}
}
558 changes: 281 additions & 277 deletions language/el.json

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion language/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@
"label": "\"Check\"(확인) 버튼 텍스트",
"default": "확인"
},
{
"label": "Text for \"Submit\" button",
"default": "Submit"
},
{
"label": "\"Retry\"(재시도) 버튼 텍스트",
"default": "재시도"
Expand Down Expand Up @@ -294,4 +298,4 @@
]
}
]
}
}
6 changes: 5 additions & 1 deletion language/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@
"label": "Tekst voor \"Controleer\" knop",
"default": "Controleer"
},
{
"label": "Text for \"Submit\" button",
"default": "Submit"
},
{
"label": "Tekst voor \"Opnieuw\" knop",
"default": "Opnieuw"
Expand Down Expand Up @@ -294,4 +298,4 @@
]
}
]
}
}
6 changes: 5 additions & 1 deletion language/sr.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@
"label": "Текст за \"Провери\" дугме",
"default": "Провери"
},
{
"label": "Text for \"Submit\" button",
"default": "Submit"
},
{
"label": "Текст за \"Покушај поново\" дугме",
"default": "Покушај поново"
Expand Down Expand Up @@ -294,4 +298,4 @@
]
}
]
}
}
9 changes: 8 additions & 1 deletion semantics.json
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,13 @@
"importance": "low",
"default": "Check"
},
{
"name": "submitAnswer",
"type": "text",
"label": "Text for \"Submit\" button",
"importance": "low",
"default": "Submit"
},
{
"name": "tryAgain",
"label": "Text for \"Retry\" button",
Expand Down Expand Up @@ -620,4 +627,4 @@
}
]
}
]
]
8 changes: 6 additions & 2 deletions src/scripts/h5p-crossword.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ export default class Crossword extends H5P.Question {
showSolution: 'Show solution',
tryAgain: 'Retry',
extraClue: 'Extra clue',
closeWindow: 'Close window'
closeWindow: 'Close window',
submitAnswer: 'Submit',
},
a11y: {
crosswordGrid: 'Crossword grid. Use arrow keys to navigate and keyboard to enter characters. Use tab to use input fields instead.',
Expand Down Expand Up @@ -216,7 +217,10 @@ export default class Crossword extends H5P.Question {
this.trigger(this.getXAPIAnswerEvent());
}, this.initialButtons.check, {
'aria-label': this.params.a11y.check
}, {});
}, {
contentData: this.extras,
textIfSubmitting: this.params.l10n.submitAnswer,
});

// Show solution button
this.addButton('show-solution', this.params.l10n.showSolution, () => {
Expand Down

0 comments on commit 5afaf5d

Please sign in to comment.