Localize try again button text

pull/18/head
Frode Petterson 2017-02-13 14:47:40 +01:00
parent 0bc76c6ce8
commit dff2c90df6
7 changed files with 38 additions and 1 deletions

View File

@ -55,6 +55,12 @@
}, },
{ {
"label": "نص الملاحظات" "label": "نص الملاحظات"
},
{
"englishLabel": "Try again button text",
"label": "Try again button text",
"englishDefault": "Try again?",
"default": "Try again?"
} }
] ]
} }

View File

@ -58,6 +58,12 @@
{ {
"label": "Text als Rückmeldung", "label": "Text als Rückmeldung",
"default": "Gute Arbeit!" "default": "Gute Arbeit!"
},
{
"englishLabel": "Try again button text",
"label": "Try again button text",
"englishDefault": "Try again?",
"default": "Try again?"
} }
] ]
} }

View File

@ -58,6 +58,12 @@
{ {
"label": "Texte de l'appréciation finale", "label": "Texte de l'appréciation finale",
"default": "Bien joué !" "default": "Bien joué !"
},
{
"englishLabel": "Try again button text",
"label": "Try again button text",
"englishDefault": "Try again?",
"default": "Try again?"
} }
] ]
} }

View File

@ -55,6 +55,12 @@
}, },
{ {
"label": "Testo Feedback" "label": "Testo Feedback"
},
{
"englishLabel": "Try again button text",
"label": "Try again button text",
"englishDefault": "Try again?",
"default": "Try again?"
} }
] ]
} }

View File

@ -71,6 +71,12 @@
"label": "Tilbakemeldingstekst", "label": "Tilbakemeldingstekst",
"englishDefault": "Good work!", "englishDefault": "Good work!",
"default": "Godt jobbet!" "default": "Godt jobbet!"
},
{
"englishLabel": "Try again button text",
"label": "Prøv på nytt-tekst",
"englishDefault": "Try again?",
"default": "Prøv på nytt?"
} }
] ]
} }

View File

@ -83,7 +83,7 @@ H5P.MemoryGame = (function (EventDispatcher, $) {
$feedback.addClass('h5p-show'); $feedback.addClass('h5p-show');
if (parameters.behaviour && parameters.behaviour.allowRetry) { if (parameters.behaviour && parameters.behaviour.allowRetry) {
// Create retry button // Create retry button
var retryButton = createButton('reset', 'Try again?', function () { var retryButton = createButton('reset', parameters.l10n.tryAgain, function () {
// Trigger handler (action) // Trigger handler (action)
resetGame(); resetGame();

View File

@ -101,6 +101,13 @@
"name": "feedback", "name": "feedback",
"type": "text", "type": "text",
"default": "Good work!" "default": "Good work!"
},
{
"label": "Try again button text",
"importance": "low",
"name": "tryAgain",
"type": "text",
"default": "Try again?"
} }
] ]
} }