From: Benjamin Auder Date: Sun, 9 Feb 2020 20:10:33 +0000 (+0100) Subject: Rename analyze --> analyse (UK spelling?) X-Git-Url: https://git.auder.net/assets/%7B%7B%20asset%28%27mixstore/css/doc/current/gitweb.css?a=commitdiff_plain;h=677fe285f1137d1d3e672dcf2dae3ac6e943be37;p=vchess.git Rename analyze --> analyse (UK spelling?) --- diff --git a/client/src/components/BaseGame.vue b/client/src/components/BaseGame.vue index d36c6326..0e0f3720 100644 --- a/client/src/components/BaseGame.vue +++ b/client/src/components/BaseGame.vue @@ -33,7 +33,7 @@ div#baseGame(tabindex=-1 @click="() => focusBg()" button(onClick="doClick('modalAdjust')") ⤢ button(v-if="game.vname!='Dark' && game.mode!='analyze'" @click="analyzePosition") - | {{ st.tr["Analyze"] }} + | {{ st.tr["Analyse"] }} // NOTE: rather ugly hack to avoid showing twice "rules" link... button(v-if="!$route.path.match('/variants/')" @click="showRules") | {{ st.tr["Rules"] }} @@ -225,7 +225,7 @@ export default { this.incheck = []; }, analyzePosition: function() { - const newUrl = "/analyze/" + this.game.vname + + const newUrl = "/analyse/" + this.game.vname + "/?fen=" + this.vr.getFen().replace(/ /g, "_"); if (this.game.type == "live") this.$router.push(newUrl); //open in same tab: against cheating... diff --git a/client/src/router.js b/client/src/router.js index 5563980b..daa9619d 100644 --- a/client/src/router.js +++ b/client/src/router.js @@ -49,9 +49,9 @@ const router = new Router({ component: loadView("Game"), }, { - path: "/analyze/:vname([a-zA-Z0-9]+)", - name: "analyze", - component: loadView("Analyze"), + path: "/analyse/:vname([a-zA-Z0-9]+)", + name: "analyse", + component: loadView("Analyse"), }, { path: "/about", diff --git a/client/src/translations/en.js b/client/src/translations/en.js index ee24720b..8a4ce5e9 100644 --- a/client/src/translations/en.js +++ b/client/src/translations/en.js @@ -4,8 +4,8 @@ export const translations = "About": "About", "Accept draw?": "Accept draw?", "All": "All", - "Analyze": "Analyze", - "Analyze in Dark mode makes no sense!": "Analyze in Dark mode makes no sense!", + "Analyse": "Analyse", + "Analyse in Dark mode makes no sense!": "Analyse in Dark mode makes no sense!", "Authentication successful!": "Authentication successful!", "Apply": "Apply", "Available": "Available", diff --git a/client/src/translations/es.js b/client/src/translations/es.js index 32d6e294..af0e6658 100644 --- a/client/src/translations/es.js +++ b/client/src/translations/es.js @@ -4,8 +4,8 @@ export const translations = "About": "Acerca de", "Accept draw?": "¿ Acceptar tablas ?", "All": "Todos", - "Analyze": "Analizar", - "Analyze in Dark mode makes no sense!": "¡ Analizar en modo Dark no tiene sentido !", + "Analyse": "Analizar", + "Analyse in Dark mode makes no sense!": "¡ Analizar en modo Dark no tiene sentido !", "Apply": "Aplicar", "Authentication successful!": "¡ Autenticación exitosa !", "Available": "Disponible", diff --git a/client/src/translations/fr.js b/client/src/translations/fr.js index 525eb20c..ad92da50 100644 --- a/client/src/translations/fr.js +++ b/client/src/translations/fr.js @@ -4,8 +4,8 @@ export const translations = "About": "À propos", "Accept draw?": "Accepter la nulle ?", "All": "Tous", - "Analyze": "Analyser", - "Analyze in Dark mode makes no sense!": "Analyser en mode Dark n'a pas de sens !", + "Analyse": "Analyser", + "Analyse in Dark mode makes no sense!": "Analyser en mode Dark n'a pas de sens !", "Apply": "Appliquer", "Authentication successful!": "Authentification réussie !", "Available": "Disponible", diff --git a/client/src/views/Analyze.vue b/client/src/views/Analyse.vue similarity index 94% rename from client/src/views/Analyze.vue rename to client/src/views/Analyse.vue index 59d2f3a8..a4bdec23 100644 --- a/client/src/views/Analyze.vue +++ b/client/src/views/Analyse.vue @@ -14,7 +14,7 @@ import { store } from "@/store"; import { ArrayFun } from "@/utils/array"; export default { - name: 'my-analyze', + name: 'my-analyse', components: { BaseGame, }, @@ -27,7 +27,7 @@ export default { fen: "" }, game: { - players:[{name:"Analyze"},{name:"Analyze"}], + players:[{name:"Analyse"},{name:"Analyse"}], mode: "analyze" }, vr: null, //"variant rules" object initialized from FEN @@ -47,7 +47,7 @@ export default { this.gameRef.vname = this.$route.params["vname"]; if (this.gameRef.vname == "Dark") { - alert(this.st.tr["Analyze in Dark mode makes no sense!"]); + alert(this.st.tr["Analyse in Dark mode makes no sense!"]); history.back(); //or this.$router.go(-1) } else diff --git a/client/src/views/Rules.vue b/client/src/views/Rules.vue index 5a69c5bf..3339111a 100644 --- a/client/src/views/Rules.vue +++ b/client/src/views/Rules.vue @@ -12,7 +12,7 @@ main | {{ st.tr["Stop game"] }} button(v-if="display=='rules' && gameInfo.vname!='Dark'" @click="gotoAnalyze") - | {{ st.tr["Analyze"] }} + | {{ st.tr["Analyse"] }} .section-content(v-show="display=='rules'" v-html="content") ComputerGame(v-show="display=='computer'" :game-info="gameInfo" @game-over="stopGame" @game-stopped="gameStopped") @@ -108,7 +108,7 @@ export default { this.gameInProgress = false; }, gotoAnalyze: function() { - this.$router.push("/analyze/" + this.gameInfo.vname + this.$router.push("/analyse/" + this.gameInfo.vname + "/?fen=" + V.GenRandInitFen()); }, },