avoid cheating show_bag_content
authorLaurent Mazet <mazet@softndesign.org>
Sat, 22 Aug 2026 19:12:27 +0000 (21:12 +0200)
committerLaurent Mazet <mazet@softndesign.org>
Sat, 22 Aug 2026 19:12:27 +0000 (21:12 +0200)
l10n/po/fr/trivabble.po
l10n/pot/trivabble.pot
public/trivabble.js

index 840e02d5c3e65f72c37b926f55efce17a97b5151..093953d85a7a18e5a555828b3a69a2f8191ade37 100644 (file)
@@ -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."
index b8cb8fc422a0bb8753b5b82c37af0f7ed74f4874..7e804fdcbfa906cea9e9f4d18e4f81cccae5337c 100644 (file)
@@ -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."
index bc376a043c33620add06238961295211e69458c1..4a83d45a257aa0085684317192c90bc51acb979b 100644 (file)
     }
 
     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!"));
         }
     }