msgid "Could not change your name. Please check that it's not already used by someone else!"
msgstr "Impossible de changer votre nom. Veuillez vérifier que personne n’utilise déjà ce nom !"
+msgid "{0} changed their name to {1}"
+msgstr "{0} a changé son nom : {1}"
+
msgid "joker"
msgstr "joker"
const newName = player.newName;
tablePlayers[newName] = tablePlayers[playerName];
delete tablePlayers[playerName];
- playerNameCell = tablePlayers[playerName].querySelector("td");
+ const playerNameCell = tablePlayers[newName].querySelector("td");
playerNameCell.textContent = newName;
if (playerName == getSetting("PlayerName")) {
setSetting("PlayerName", newName);
} else {
blink(playerNameCell);
}
+ chatMessage("", format(_("{0} changed their name to {1}"), playerName, newName));
}
}
if (data.error) {
if (cmdName === "changePlayerName") {
- alert(_("Could not change your name. Please check that it's not already used by someone else!");
+ alert(_("Could not change your name. Please check that it's not already used by someone else!"));
} else {
fatalError(new Error("Error from the server: " + data.error + " - " + data.reason));
}