From: Laurent Mazet Date: Sat, 22 Aug 2026 19:12:27 +0000 (+0200) Subject: avoid cheating X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Fshow_bag_content;p=trivabble.git avoid cheating --- diff --git a/l10n/po/fr/trivabble.po b/l10n/po/fr/trivabble.po index 840e02d..093953d 100644 --- a/l10n/po/fr/trivabble.po +++ b/l10n/po/fr/trivabble.po @@ -202,8 +202,8 @@ msgstr "La vérification orthographique est basée sur :" msgid "{0} points will be added to:" msgstr "{0} points vont être ajoutés à:" -msgid "Do you really want to see bag content? It's kind of cheating!" -msgstr " Voulez-vous vraiment voir le contenu du sac ? C'est un peu tricher !" +msgid "Some tiles have been distributed; it's cheating!" +msgstr "Des pièces ont été distribuées ; c'est tricher !" msgid "There are no points to add." msgstr "Il n’y a pas de point à ajouter." diff --git a/l10n/pot/trivabble.pot b/l10n/pot/trivabble.pot index b8cb8fc..7e804fd 100644 --- a/l10n/pot/trivabble.pot +++ b/l10n/pot/trivabble.pot @@ -208,7 +208,7 @@ msgstr "" msgid "{0} points will be added to:" msgstr "" -msgid "Do you really want to see bag content? It's kind of cheating!" +msgid "Some tiles have been distributed; it's cheating!" msgstr "" msgid "There are no points to add." diff --git a/public/trivabble.js b/public/trivabble.js index bc376a0..4a83d45 100644 --- a/public/trivabble.js +++ b/public/trivabble.js @@ -2194,15 +2194,10 @@ } function askShowBag() { - if (nbTilesInRacks) { - myConfirm( - _("Do you really want to see bag content? It's kind of cheating!"), - function () { - sendCmds([{cmd: "showBag"}]); - } - ); - } else { + if (nbTilesInRacks === 0) { sendCmds([{cmd: "showBag"}]); + } else { + myAlert(_("Some tiles have been distributed; it's cheating!")); } }