Update format strings

This commit is contained in:
Jmgr 2021-05-20 21:12:40 +01:00 committed by Anders Jenbo
commit 6e85cde978
19 changed files with 159 additions and 159 deletions

View file

@ -261,14 +261,14 @@ static void multi_player_left_msg(int pnum, bool left)
delta_close_portal(pnum);
RemovePlrMissiles(pnum);
if (left) {
pszFmt = _("Player '%s' just left the game");
pszFmt = _("Player '{:s}' just left the game");
switch (sgdwPlayerLeftReasonTbl[pnum]) {
case LEAVE_ENDING:
pszFmt = _("Player '%s' killed Diablo and left the game!");
pszFmt = _("Player '{:s}' killed Diablo and left the game!");
gbSomebodyWonGameKludge = true;
break;
case LEAVE_DROP:
pszFmt = _("Player '%s' dropped due to timeout");
pszFmt = _("Player '{:s}' dropped due to timeout");
break;
}
EventPlrMsg(pszFmt, plr[pnum]._pName);
@ -858,9 +858,9 @@ void recv_plrinfo(int pnum, TCmdPlrInfoHdr *p, bool recv)
gbActivePlayers++;
if (sgbPlayerTurnBitTbl[pnum]) {
szEvent = _("Player '%s' (level %i) just joined the game");
szEvent = _("Player '{:s}' (level {:d}) just joined the game");
} else {
szEvent = _("Player '%s' (level %i) is already in the game");
szEvent = _("Player '{:s}' (level {:d}) is already in the game");
}
EventPlrMsg(fmt::format(szEvent, plr[pnum]._pName, plr[pnum]._pLevel).c_str());