From cc5c11cbeeb91e980e790915c8e8ce89b11430c1 Mon Sep 17 00:00:00 2001 From: Laurent Mazet Date: Sat, 22 Aug 2026 21:12:27 +0200 Subject: [PATCH] avoid cheating --- l10n/po/fr/trivabble.po | 4 ++-- l10n/pot/trivabble.pot | 2 +- public/trivabble.js | 11 +++-------- 3 files changed, 6 insertions(+), 11 deletions(-) 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!")); } } -- 2.30.2