From d289b0439d795580a6fcdc4b73521f246cd81450 Mon Sep 17 00:00:00 2001
From: Benjamin Auder <benjamin.auder@somewhere>
Date: Sun, 23 Dec 2018 12:58:28 +0100
Subject: [PATCH] Add some forgotten translations + fix typo

---
 public/javascripts/components/game.js     | 2 +-
 public/javascripts/components/problems.js | 4 ++--
 views/translations/en.pug                 | 2 ++
 views/translations/fr.pug                 | 2 ++
 4 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/public/javascripts/components/game.js b/public/javascripts/components/game.js
index 54334e30..e4b96748 100644
--- a/public/javascripts/components/game.js
+++ b/public/javascripts/components/game.js
@@ -404,7 +404,7 @@ Vue.component('my-game', {
 					h('button',
 						{
 							on: { click: this.undoInGame },
-							attrs: { "aria-label": trnaslations['Undo'] },
+							attrs: { "aria-label": translations['Undo'] },
 							"class": {
 								"play": true,
 								"spaceleft": true,
diff --git a/public/javascripts/components/problems.js b/public/javascripts/components/problems.js
index 9288a393..7c588b24 100644
--- a/public/javascripts/components/problems.js
+++ b/public/javascripts/components/problems.js
@@ -45,10 +45,10 @@ Vue.component('my-problems', {
 							<p class="emphasis">{{ translate("Safe HTML tags allowed") }}</p>
 							<label for="newpbInstructions">{{ translate("Instructions") }}</label>
 							<textarea id="newpbInstructions" v-model="newProblem.instructions"
-								placeholder="Explain the problem here"></textarea>
+								:placeholder='translate("Describe the problem goal")'></textarea>
 							<label for="newpbSolution">{{ translate("Solution") }}</label>
 							<textarea id="newpbSolution" v-model="newProblem.solution"
-								placeholder="How to solve the problem?"></textarea>
+								:placeholder='translate("How to solve the problem?")'></textarea>
 							<button class="center-btn">{{ translate("Preview") }}</button>
 						</fieldset>
 					</form>
diff --git a/views/translations/en.pug b/views/translations/en.pug
index 9630efc3..1e8555ee 100644
--- a/views/translations/en.pug
+++ b/views/translations/en.pug
@@ -66,7 +66,9 @@
 		"Full FEN string": "Full FEN string",
 		"Safe HTML tags allowed": "Safe HTML tags allowed",
 		"Instructions": "Instructions",
+		"Describe the problem goal": "Describe the problem goal",
 		"Solution": "Solution",
+		"How to solve the problem?": "How to solve the problem?",
 		"Preview": "Preview",
 		"Cancel": "Cancel",
 		"Solve": "Solve",
diff --git a/views/translations/fr.pug b/views/translations/fr.pug
index 3ec7a509..ee2e1829 100644
--- a/views/translations/fr.pug
+++ b/views/translations/fr.pug
@@ -66,7 +66,9 @@
 		"Full FEN string": "Chaîne FEN complète",
 		"Safe HTML tags allowed": "HTML 'sûr' autorisé",
 		"Instructions": "Instructions",
+		"Describe the problem goal": "Décrire le but du problème",
 		"Solution": "Solution",
+		"How to solve the problem?": "Comment résoudre le problème ?",
 		"Preview": "Prévisualiser",
 		"Cancel": "Annuler",
 		"Solve": "Résoudre",
-- 
2.44.0