From 2b9fdc054fecf15df19f5f60224157940250a2ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Br=C3=BCbach?= Date: Sat, 19 Sep 2026 00:05:51 +0200 Subject: [PATCH] [DeckShare] Provide the full share hint in each plural form --- .../tabs/visual_deck_storage/tab_deck_storage_visual.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cockatrice/src/interface/widgets/tabs/visual_deck_storage/tab_deck_storage_visual.cpp b/cockatrice/src/interface/widgets/tabs/visual_deck_storage/tab_deck_storage_visual.cpp index 71b19bb9e..c8cf38104 100644 --- a/cockatrice/src/interface/widgets/tabs/visual_deck_storage/tab_deck_storage_visual.cpp +++ b/cockatrice/src/interface/widgets/tabs/visual_deck_storage/tab_deck_storage_visual.cpp @@ -126,9 +126,10 @@ void TabDeckStorageVisual::updateShareHint() shareBar->setCountText(tr("%n deck(s)", "", count)); if (count == 0) { shareBar->setHintText(tr("Click deck tiles to select the decks you want to share."), true); + } else if (count == 1) { + shareBar->setHintText(tr("One deck selected. Create the link to share it with other players."), true); } else { - shareBar->setHintText(tr("%n deck(s) selected. Create the link to share %1 with other players.", "", count) - .arg(count == 1 ? tr("it") : tr("them")), + shareBar->setHintText(tr("%n decks selected. Create the link to share them with other players.", "", count), true); } }