diff --git a/frontend/src/components/Chat.vue b/frontend/src/components/Chat.vue index 32e910f..9831d00 100644 --- a/frontend/src/components/Chat.vue +++ b/frontend/src/components/Chat.vue @@ -48,6 +48,11 @@ export default { params[i] = this.$t(`cards.${params[i]}.name`) } }) + if (params.length <= 6){ + type += "3" + } else { + type += "4" + } } this.messages.push({text:this.$t(`chat.${type}`, params)}); if (type == 'turn' && params[0] == this.username) { diff --git a/frontend/src/i18n/en.json b/frontend/src/i18n/en.json index 052bc27..f756a38 100644 --- a/frontend/src/i18n/en.json +++ b/frontend/src/i18n/en.json @@ -91,7 +91,8 @@ "special_bart_cassidy": "{0} received a compensation because he was injured.", "special_el_gringo": "{0} stole a card from {1} when he was was injured.", "special_calamity": "{0} played {1} as Bang! against {2}.", - "allroles": "In the game there are: {1} {0}, {3} {2}, {5} {4}, {7} {6}.", + "allroles3": "In the game there are: {1} {0}, {3} {2}, {5} {4}.", + "allroles4": "In the game there are: {1} {0}, {3} {2}, {5} {4}, {7} {6}.", "guess": "{0} guesses {1}.", "guess_right": "{0} was right.", "guess_wrong": "{0} was wrong.", diff --git a/frontend/src/i18n/it.json b/frontend/src/i18n/it.json index ff3a55c..efbb589 100644 --- a/frontend/src/i18n/it.json +++ b/frontend/src/i18n/it.json @@ -91,7 +91,8 @@ "special_bart_cassidy": "{0} ha ricevuto un risarcimento perchè è stato ferito.", "special_el_gringo": "{0} rubato una carta a {1} mentre veniva colpito.", "special_calamity": "{0} ha giocato {1} come un Bang! contro {2}.", - "allroles": "Nella partita ci sono: {1} {0}, {3} {2}, {5} {4}, {7} {6}.", + "allroles3": "Nella partita ci sono: {1} {0}, {3} {2} e {5} {4}.", + "allroles4": "Nella partita ci sono: {1} {0}, {3} {2}, {5} {4} e {7} {6}.", "guess": "{0} pensa sia {1}.", "guess_right": "{0} ha indovinato.", "guess_wrong": "{0} ha sbagliato.",