Rename "stack until found" feature (#4871)

* Rename "stack until found" feature

* lint
This commit is contained in:
tooomm 2023-10-25 18:43:57 +02:00 committed by GitHub
parent 9943133d6d
commit 3e8adae3de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 6 deletions

View file

@ -1,6 +1,7 @@
## Syntax Help
## Search Syntax Help
-----
The search bar recognizes a set of special commands similar to some other card databases. Here is a list with examples. Each entry can be clicked to test the query and has a small explanation. Note that all searches are case insensitive.
The search bar recognizes a set of special commands similar to some other card databases.<br>
In this list of examples below, each entry has an explanation and can be clicked to test the query. Note that all searches are case insensitive.
<dl>
<dt>Name:</dt>
<dd>[birds of paradise](#birds of paradise) <small>(Any card name containing the words birds, of, and paradise)</small></dd>

View file

@ -771,7 +771,7 @@ void Player::retranslateUi()
aMoveTopCardToExile->setText(tr("Move top card to e&xile"));
aMoveTopCardsToGraveyard->setText(tr("Move top cards to &graveyard..."));
aMoveTopCardsToExile->setText(tr("Move top cards to &exile..."));
aMoveTopCardsUntil->setText(tr("Take top cards &until..."));
aMoveTopCardsUntil->setText(tr("Put top cards on stack &until..."));
aDrawBottomCard->setText(tr("&Draw bottom card"));
aDrawBottomCards->setText(tr("D&raw bottom cards..."));
@ -1313,8 +1313,8 @@ void Player::actMoveTopCardsUntil()
QString expr = previousMovingCardsUntilExpr;
for (;;) {
bool ok;
expr =
QInputDialog::getText(game, "Take top cards until", "Select card (accepts search syntax)", {}, expr, &ok);
expr = QInputDialog::getText(game, "Put top cards on stack until", "Card name (or search expressions)", {},
expr, &ok);
if (!ok) {
return;
}

View file

@ -376,7 +376,7 @@ void TabDeckEditor::createCentralFrame()
{
searchEdit = new SearchLineEdit;
searchEdit->setObjectName("searchEdit");
searchEdit->setPlaceholderText(tr("Search by card name"));
searchEdit->setPlaceholderText(tr("Search by card name (or search expressions)"));
searchEdit->setClearButtonEnabled(true);
searchEdit->addAction(loadColorAdjustedPixmap("theme:icons/search"), QLineEdit::LeadingPosition);
auto help = searchEdit->addAction(QPixmap("theme:icons/info"), QLineEdit::TrailingPosition);