From 19be866323742a13cae5561ed365e60e94a267b5 Mon Sep 17 00:00:00 2001 From: Alberto Xamin Date: Tue, 24 Jan 2023 20:52:52 +0100 Subject: [PATCH] add more tips and fix translations --- frontend/src/components/Menu.vue | 2 +- frontend/src/i18n/en.json | 8 +++++--- frontend/src/i18n/it.json | 2 ++ 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/Menu.vue b/frontend/src/components/Menu.vue index 479042c..4f54065 100644 --- a/frontend/src/components/Menu.vue +++ b/frontend/src/components/Menu.vue @@ -188,7 +188,7 @@ export default { this.$socket.emit('discord_auth', {code:this.$route.query.code, origin:window.location.origin}) this.$router.replace({query: []}) } - this.randomTip = `tip_${1+Math.floor(Math.random() * 8)}` + this.randomTip = `tip_${1+Math.floor(Math.random() * 10)}` if (localStorage.getItem('username')) this.username = localStorage.getItem('username') else { diff --git a/frontend/src/i18n/en.json b/frontend/src/i18n/en.json index 989a986..04795f1 100644 --- a/frontend/src/i18n/en.json +++ b/frontend/src/i18n/en.json @@ -8,6 +8,8 @@ "tip_6": "Now with a discord server!", "tip_7": "If you want to help us translate the game in your language, ping us on discord!", "tip_8": "If you disconnect during in an ongoing game you will be replaced by a bot (while you are gone)!", + "tip_9": "If you are on mobile hold on a card to read the description!", + "tip_10": "If in doubt shoot all the other players!", "online_players": "Online players: ", "shuffle_players": "Shuffle Players", "choose_username": "Pick an username:", @@ -201,7 +203,7 @@ }, "Bang!": { "name": "Bang!", - "desc": "Shoot a player in sight. If you do not have weapons, your is sight is 1" + "desc": "Shoot a player in sight. If you do not have weapons, your sight is 1" }, "Birra": { "name": "Beer", @@ -329,7 +331,7 @@ }, "Pepperbox": { "name": "Pepperbox", - "desc": "Shoot a player in sight. If you do not have weapons, your is sight is 1" + "desc": "Shoot a player in sight. If you do not have weapons, your sight is 1" }, "Howitzer": { "name": "Howitzer", @@ -477,7 +479,7 @@ }, "Il Giudice": { "name": "The Judge", - "desc": "You can't equip cards on your or other players" + "desc": "You can't equip cards on yourself or other players" }, "Agguato": { "name": "Ambush", diff --git a/frontend/src/i18n/it.json b/frontend/src/i18n/it.json index 25bb452..5335197 100644 --- a/frontend/src/i18n/it.json +++ b/frontend/src/i18n/it.json @@ -8,6 +8,8 @@ "tip_6": "Adesso con un server discord!", "tip_7": "Se vuoi aiutarci a tradurre il gioco nella tua lingua scrivicelo su discord!", "tip_8": "Se ti disconnetti durante una partita verrai sostituito da un bot (durante la tua assenza)!", + "tip_9": "Se sei da cellulare tieni premuto su una carta per vedere la descrizione!", + "tip_10": "Se in dubbio spara a tutti gli altri giocatori!", "online_players": "Giocatori online: ", "shuffle_players": "Riordina Giocatori", "choose_username": "Scegli un username:",