projects
/
vchess.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
247356c
)
Add some forgotten translations + fix typo
author
Benjamin Auder
<benjamin.auder@somewhere>
Sun, 23 Dec 2018 11:58:28 +0000
(12:58 +0100)
committer
Benjamin Auder
<benjamin.auder@somewhere>
Sun, 23 Dec 2018 11:58:28 +0000
(12:58 +0100)
public/javascripts/components/game.js
patch
|
blob
|
blame
|
history
public/javascripts/components/problems.js
patch
|
blob
|
blame
|
history
views/translations/en.pug
patch
|
blob
|
blame
|
history
views/translations/fr.pug
patch
|
blob
|
blame
|
history
diff --git
a/public/javascripts/components/game.js
b/public/javascripts/components/game.js
index
54334e3
..
e4b9674
100644
(file)
--- 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 },
h('button',
{
on: { click: this.undoInGame },
- attrs: { "aria-label": tr
na
slations['Undo'] },
+ attrs: { "aria-label": tr
an
slations['Undo'] },
"class": {
"play": true,
"spaceleft": true,
"class": {
"play": true,
"spaceleft": true,
diff --git
a/public/javascripts/components/problems.js
b/public/javascripts/components/problems.js
index
9288a39
..
7c588b2
100644
(file)
--- 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"
<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"
<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>
<button class="center-btn">{{ translate("Preview") }}</button>
</fieldset>
</form>
diff --git
a/views/translations/en.pug
b/views/translations/en.pug
index
9630efc
..
1e8555e
100644
(file)
--- 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",
"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",
"Solution": "Solution",
+ "How to solve the problem?": "How to solve the problem?",
"Preview": "Preview",
"Cancel": "Cancel",
"Solve": "Solve",
"Preview": "Preview",
"Cancel": "Cancel",
"Solve": "Solve",
diff --git
a/views/translations/fr.pug
b/views/translations/fr.pug
index
3ec7a50
..
ee2e182
100644
(file)
--- 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",
"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",
"Solution": "Solution",
+ "How to solve the problem?": "Comment résoudre le problème ?",
"Preview": "Prévisualiser",
"Cancel": "Annuler",
"Solve": "Résoudre",
"Preview": "Prévisualiser",
"Cancel": "Annuler",
"Solve": "Résoudre",