mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-26 16:43:55 -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();
|
QString zoneName = zone->getName();
|
||||||
|
|
||||||
if (zoneName == tableConstant()) {
|
if (zoneName == tableConstant()) {
|
||||||
fromStr = tr(" from play");
|
fromStr = tr("from play");
|
||||||
} else if (zoneName == graveyardConstant()) {
|
} else if (zoneName == graveyardConstant()) {
|
||||||
fromStr = tr(" from their graveyard");
|
fromStr = tr("from their graveyard");
|
||||||
} else if (zoneName == exileConstant()) {
|
} else if (zoneName == exileConstant()) {
|
||||||
fromStr = tr(" from exile");
|
fromStr = tr("from exile");
|
||||||
} else if (zoneName == handConstant()) {
|
} else if (zoneName == handConstant()) {
|
||||||
fromStr = tr(" from their hand");
|
fromStr = tr("from their hand");
|
||||||
} else if (zoneName == deckConstant()) {
|
} else if (zoneName == deckConstant()) {
|
||||||
if (position == 0) {
|
if (position == 0) {
|
||||||
if (cardName.isEmpty()) {
|
if (cardName.isEmpty()) {
|
||||||
|
|
@ -90,9 +90,9 @@ MessageLogWidget::getFromStr(CardZone *zone, QString cardName, int position, boo
|
||||||
cardNameContainsStartZone = true;
|
cardNameContainsStartZone = true;
|
||||||
} else {
|
} else {
|
||||||
if (ownerChange) {
|
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 {
|
} else {
|
||||||
fromStr = tr(" from the top of their library");
|
fromStr = tr("from the top of their library");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (position >= zone->getCards().size() - 1) {
|
} else if (position >= zone->getCards().size() - 1) {
|
||||||
|
|
@ -105,22 +105,22 @@ MessageLogWidget::getFromStr(CardZone *zone, QString cardName, int position, boo
|
||||||
cardNameContainsStartZone = true;
|
cardNameContainsStartZone = true;
|
||||||
} else {
|
} else {
|
||||||
if (ownerChange) {
|
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 {
|
} else {
|
||||||
fromStr = tr(" from the bottom of their library");
|
fromStr = tr("from the bottom of their library");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (ownerChange) {
|
if (ownerChange) {
|
||||||
fromStr = tr(" from %1's library").arg(zone->getPlayer()->getName());
|
fromStr = tr("from %1's library").arg(zone->getPlayer()->getName());
|
||||||
} else {
|
} else {
|
||||||
fromStr = tr(" from their library");
|
fromStr = tr("from their library");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (zoneName == sideboardConstant()) {
|
} else if (zoneName == sideboardConstant()) {
|
||||||
fromStr = tr(" from sideboard");
|
fromStr = tr("from sideboard");
|
||||||
} else if (zoneName == stackConstant()) {
|
} else if (zoneName == stackConstant()) {
|
||||||
fromStr = tr(" from the stack");
|
fromStr = tr("from the stack");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!cardNameContainsStartZone) {
|
if (!cardNameContainsStartZone) {
|
||||||
|
|
@ -518,14 +518,14 @@ void MessageLogWidget::logRevealCards(Player *player,
|
||||||
}
|
}
|
||||||
} else if (cardId == -2) {
|
} else if (cardId == -2) {
|
||||||
if (otherPlayer) {
|
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(sanitizeHtml(player->getName()))
|
||||||
.arg(cardStr)
|
.arg(cardStr)
|
||||||
.arg(fromStr)
|
.arg(fromStr)
|
||||||
.arg(sanitizeHtml(otherPlayer->getName())));
|
.arg(sanitizeHtml(otherPlayer->getName())));
|
||||||
} else {
|
} else {
|
||||||
appendHtmlServerMessage(
|
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 {
|
} else {
|
||||||
if (faceDown && player == otherPlayer) {
|
if (faceDown && player == otherPlayer) {
|
||||||
|
|
@ -539,14 +539,14 @@ void MessageLogWidget::logRevealCards(Player *player,
|
||||||
.arg(cardStr));
|
.arg(cardStr));
|
||||||
}
|
}
|
||||||
} else if (otherPlayer) {
|
} else if (otherPlayer) {
|
||||||
appendHtmlServerMessage(tr("%1 reveals %2%3 to %4.")
|
appendHtmlServerMessage(tr("%1 reveals %2 %3 to %4.")
|
||||||
.arg(sanitizeHtml(player->getName()))
|
.arg(sanitizeHtml(player->getName()))
|
||||||
.arg(cardStr)
|
.arg(cardStr)
|
||||||
.arg(fromStr)
|
.arg(fromStr)
|
||||||
.arg(sanitizeHtml(otherPlayer->getName())));
|
.arg(sanitizeHtml(otherPlayer->getName())));
|
||||||
} else {
|
} else {
|
||||||
appendHtmlServerMessage(
|
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