Add some forgotten translations + fix typo
authorBenjamin Auder <benjamin.auder@somewhere>
Sun, 23 Dec 2018 11:58:28 +0000 (12:58 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Sun, 23 Dec 2018 11:58:28 +0000 (12:58 +0100)
public/javascripts/components/game.js
public/javascripts/components/problems.js
views/translations/en.pug
views/translations/fr.pug

index 54334e3..e4b9674 100644 (file)
@@ -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,
index 9288a39..7c588b2 100644 (file)
@@ -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>
index 9630efc..1e8555e 100644 (file)
@@ -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",
index 3ec7a50..ee2e182 100644 (file)
@@ -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",