singular/plural string fix
This commit is contained in:
@@ -3183,8 +3183,20 @@ void gameTableImpl::nextVoteOnKickTimeoutAnimationFrame()
|
|||||||
|
|
||||||
void gameTableImpl::refreshVotesMonitor(int currentVotes, int numVotesNeededToKick)
|
void gameTableImpl::refreshVotesMonitor(int currentVotes, int numVotesNeededToKick)
|
||||||
{
|
{
|
||||||
|
QString vote(tr("vote"));
|
||||||
|
QString votes(tr("votes"));
|
||||||
|
|
||||||
|
QString currentVotesString;
|
||||||
|
QString numVotesNeededToKickString;
|
||||||
|
|
||||||
|
if(currentVotes == 1) currentVotesString = vote;
|
||||||
|
else currentVotesString = votes;
|
||||||
|
|
||||||
|
if(numVotesNeededToKick == 1) numVotesNeededToKickString = vote;
|
||||||
|
else numVotesNeededToKickString = votes;
|
||||||
|
|
||||||
PlayerInfo info(myStartWindow->getSession()->getClientPlayerInfo(playerAboutToBeKickedId));
|
PlayerInfo info(myStartWindow->getSession()->getClientPlayerInfo(playerAboutToBeKickedId));
|
||||||
label_votesMonitor->setText(tr("Player <b>%1</b> has %2 votes<br>against him. %3 votes needed to kick.").arg(QString::fromUtf8(info.playerName.c_str())).arg(currentVotes).arg(numVotesNeededToKick));
|
label_votesMonitor->setText(tr("Player <b>%1</b> has %2 %3 <br>against him. %4 %5 needed to kick.").arg(QString::fromUtf8(info.playerName.c_str())).arg(currentVotes).arg(currentVotesString).arg(numVotesNeededToKick).arg(numVotesNeededToKickString));
|
||||||
}
|
}
|
||||||
|
|
||||||
void gameTableImpl::refreshCardsChance(GameState bero)
|
void gameTableImpl::refreshCardsChance(GameState bero)
|
||||||
|
|||||||
Reference in New Issue
Block a user