mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
fromStr
This commit is contained in:
parent
ed170f7e07
commit
5f7ebd8b36
1 changed files with 16 additions and 16 deletions
|
|
@ -72,13 +72,13 @@ MessageLogWidget::getFromStr(CardZone *zone, QString cardName, int position, boo
|
|||
QString zoneName = zone->getName();
|
||||
|
||||
if (zoneName == tableConstant()) {
|
||||
fromStr = tr(" from play");
|
||||
fromStr = tr("from play");
|
||||
} else if (zoneName == graveyardConstant()) {
|
||||
fromStr = tr(" from their graveyard");
|
||||
fromStr = tr("from their graveyard");
|
||||
} else if (zoneName == exileConstant()) {
|
||||
fromStr = tr(" from exile");
|
||||
fromStr = tr("from exile");
|
||||
} else if (zoneName == handConstant()) {
|
||||
fromStr = tr(" from their hand");
|
||||
fromStr = tr("from their hand");
|
||||
} else if (zoneName == deckConstant()) {
|
||||
if (position == 0) {
|
||||
if (cardName.isEmpty()) {
|
||||
|
|
@ -90,9 +90,9 @@ MessageLogWidget::getFromStr(CardZone *zone, QString cardName, int position, boo
|
|||
cardNameContainsStartZone = true;
|
||||
} else {
|
||||
if (ownerChange) {
|
||||
fromStr = tr(" from the top of %1's library").arg(zone->getPlayer()->getName());
|
||||
fromStr = tr("from the top of %1's library").arg(zone->getPlayer()->getName());
|
||||
} else {
|
||||
fromStr = tr(" from the top of their library");
|
||||
fromStr = tr("from the top of their library");
|
||||
}
|
||||
}
|
||||
} else if (position >= zone->getCards().size() - 1) {
|
||||
|
|
@ -105,22 +105,22 @@ MessageLogWidget::getFromStr(CardZone *zone, QString cardName, int position, boo
|
|||
cardNameContainsStartZone = true;
|
||||
} else {
|
||||
if (ownerChange) {
|
||||
fromStr = tr(" from the bottom of %1's library").arg(zone->getPlayer()->getName());
|
||||
fromStr = tr("from the bottom of %1's library").arg(zone->getPlayer()->getName());
|
||||
} else {
|
||||
fromStr = tr(" from the bottom of their library");
|
||||
fromStr = tr("from the bottom of their library");
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (ownerChange) {
|
||||
fromStr = tr(" from %1's library").arg(zone->getPlayer()->getName());
|
||||
fromStr = tr("from %1's library").arg(zone->getPlayer()->getName());
|
||||
} else {
|
||||
fromStr = tr(" from their library");
|
||||
fromStr = tr("from their library");
|
||||
}
|
||||
}
|
||||
} else if (zoneName == sideboardConstant()) {
|
||||
fromStr = tr(" from sideboard");
|
||||
fromStr = tr("from sideboard");
|
||||
} else if (zoneName == stackConstant()) {
|
||||
fromStr = tr(" from the stack");
|
||||
fromStr = tr("from the stack");
|
||||
}
|
||||
|
||||
if (!cardNameContainsStartZone) {
|
||||
|
|
@ -518,14 +518,14 @@ void MessageLogWidget::logRevealCards(Player *player,
|
|||
}
|
||||
} else if (cardId == -2) {
|
||||
if (otherPlayer) {
|
||||
appendHtmlServerMessage(tr("%1 randomly reveals %2%3 to %4.")
|
||||
appendHtmlServerMessage(tr("%1 randomly reveals %2 %3 to %4.")
|
||||
.arg(sanitizeHtml(player->getName()))
|
||||
.arg(cardStr)
|
||||
.arg(fromStr)
|
||||
.arg(sanitizeHtml(otherPlayer->getName())));
|
||||
} else {
|
||||
appendHtmlServerMessage(
|
||||
tr("%1 randomly reveals %2%3.").arg(sanitizeHtml(player->getName())).arg(cardStr).arg(fromStr));
|
||||
tr("%1 randomly reveals %2 %3.").arg(sanitizeHtml(player->getName())).arg(cardStr).arg(fromStr));
|
||||
}
|
||||
} else {
|
||||
if (faceDown && player == otherPlayer) {
|
||||
|
|
@ -539,14 +539,14 @@ void MessageLogWidget::logRevealCards(Player *player,
|
|||
.arg(cardStr));
|
||||
}
|
||||
} else if (otherPlayer) {
|
||||
appendHtmlServerMessage(tr("%1 reveals %2%3 to %4.")
|
||||
appendHtmlServerMessage(tr("%1 reveals %2 %3 to %4.")
|
||||
.arg(sanitizeHtml(player->getName()))
|
||||
.arg(cardStr)
|
||||
.arg(fromStr)
|
||||
.arg(sanitizeHtml(otherPlayer->getName())));
|
||||
} else {
|
||||
appendHtmlServerMessage(
|
||||
tr("%1 reveals %2%3.").arg(sanitizeHtml(player->getName())).arg(cardStr).arg(fromStr));
|
||||
tr("%1 reveals %2 %3.").arg(sanitizeHtml(player->getName())).arg(cardStr).arg(fromStr));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue