clean help messages
authorLaurent Mazet <mazet@softndesign.org>
Sat, 12 Sep 2020 20:25:37 +0000 (22:25 +0200)
committerLaurent Mazet <mazet@softndesign.org>
Tue, 15 Sep 2020 20:52:36 +0000 (22:52 +0200)
l10n/po/br/trivabble.po
l10n/po/fr/trivabble.po
l10n/po/ro/trivabble.po
l10n/pot/trivabble.pot
public/index.html
public/trivabble.css
public/trivabble.js

index 815ea089b2d422da91a0cfc4299c660a8d86e42f..f92f34b64e88b8ebfec78a7f05db639463201a44 100644 (file)
@@ -164,8 +164,8 @@ msgstr "Son ar c'hemennadenoù"
 msgid "Number of tiles in the bag:"
 msgstr "Niver a bezhioù er sac'h:"
 
-msgid "Click on it to take one."
-msgstr "Klikit warnañ evit kemer unan"
+msgid "Click on the bag to take onei tile."
+msgstr ""
 
 msgid "Put back all the tiles in the bag"
 msgstr "Adlakaat an holl pezhioù er sac'h"
index d990adffaab0d8e6b7f50a337f5cf52345f05488..3c8f4bf253b98eec474836fcaf2cc5b63b1104dc 100644 (file)
@@ -85,8 +85,8 @@ msgstr "Bruit des messages"
 msgid  "Number of tiles in the bag:"
 msgstr "Nombre de pièces dans le sac :"
 
-msgid  "Click on it to take one."
-msgstr "Cliquez dessus pour en prendre une."
+msgid  "Click on the bag to take one tile."
+msgstr "Cliquez sur le sac pour prendre une pièce."
 
 msgid  "Put back all the tiles in the bag"
 msgstr "Ranger toutes les pièces dans le sac"
index c68ffddca5e43a29a7004f547a18d021fdbc5106..62b837331827688c6a7ab13ada4a8bb4b3b3ee7e 100644 (file)
@@ -156,8 +156,8 @@ msgstr "Sunet de la mesaje"
 msgid "Number of tiles in the bag:"
 msgstr "Număr de jetoane în sac:"
 
-msgid "Click on it to take one."
-msgstr "Apasă pe el ca să iei unul."
+msgid "Click on the bag to take one tile."
+msgstr ""
 
 msgid "Put back all the tiles in the bag"
 msgstr "Pune toate jetoanele înapoi în sac"
index 4904eb36e3fd1d72d4b2dd785a76dcde8c5096bc..5b07c725431d993eaec1d6256070da64d448476f 100644 (file)
@@ -87,7 +87,7 @@ msgstr ""
 msgid  "Number of tiles in the bag:"
 msgstr ""
 
-msgid  "Click on it to take one."
+msgid  "Click on the bag to take one tile."
 msgstr ""
 
 msgid  "Put back all the tiles in the bag"
index d97ccec761cb1b9595bac7a677f4c4e712be5220..d57dc94709dcf9d0c9f3d8340c189e06dda87192 100644 (file)
         <div id="panel">
             <button id="btn-settings" data-l10n="text-content">Settings</button>
             <div id="bag"></div>
-            <p><span data-l10n="text-content">Number of tiles in the bag:</span><br /><span id="remaining-letters">102</span><br /><span id="help-bag" data-l10n="text-content">Click on it to take one.</span><a href="#" id="help-clear" style="display:none"></a></p>
+            <p><span data-l10n="text-content">Number of tiles in the bag:</span><br /><span id="remaining-letters">102</span></p>
             <table id="participants">
                 <tr><th data-l10n="text-content">Participant</th><th data-l10n="text-content">Rack</th><th data-l10n="text-content">Score</th><th data-l10n="text-content">Turn</th></tr>
                 <tr id="participants-placeholder"><td colspan="4" data-l10n="text-content">Waiting for other participants…</td></tr>
             </table>
-            <p id="help-scores" data-l10n="text-content">Click on someone's score&#10;to change it.</p>
-            <p id="help-turn" data-l10n="text-content">Who's turn? Click on the Turn button!</p>
+            <div id="help-message">
+                <p data-l10n="text-content" style="display:none">Click on the bag to take one tile.</p>
+                <p data-l10n="text-content" style="display:none">Click on someone's score&#10;to change it.</p>
+                <p data-l10n="text-content" style="display:none">Who's turn? Click on the Turn button!</p>
+                <p data-l0n="text-content" style="display:none">Spell checking is based on: <a rel="noopener noreferrer" target="_blank" href="http://aspell.net">Aspell</a></p>
+                <p data-l0n="text-content" style="display:none">Click on the (+) to add someone's score.</p>
+                <p data-l0n="text-content" style="display:none">Double click or double tap on a cell to highlight it.</p>
+                <p data-l0n="text-content" style="display:none">Timer can be activated/deactivated in the preference window.</p>
+                <p data-l0n="text-content" style="display:none">Flashing light is adjustable in the preference window.</p>
+                <p data-l0n="text-content" style="display:none">Sound options are in the preference window.</p>
+                <p data-l0n="text-content" style="display:none">Move tile from your rag to the board to place new words.</p>
+            </div>
             <button id="clear-rack" class="minibutton" data-l10n="text-content">Put back all the tiles of&#10;your rack in the bag</button>
             <button id="show-rack" class="minibutton" data-l10n="text-content">Show my rack to other players</button>
             <button id="check-spelling" class="minibutton" data-l10n="text-content" style="display:none">Check spelling for new words</button>
-            <p id="info-spell-checking" style="display:none;"><span data-l0n="text-content">Spell checking is based on:</span> <a rel="noopener noreferrer" target="_blank" href="http://aspell.net">Aspell</a></p>
         </div>
     </body>
 </html>
index 280b50a2af629fd26b6ec81f49b7d9a9db253174..f29f6101c87a648958d2ee33ffdd5e270bddeb07 100644 (file)
@@ -47,7 +47,7 @@ html, #board, [draggable], .tile {
     color: green;
 }
 
-#clear-game, #help-scores, #clear-rack, #help-turn {
+#clear-game, #help-message, #clear-rack {
     white-space:pre-wrap;
 }
 
@@ -57,7 +57,7 @@ html, #board, [draggable], .tile {
   -webkit-user-drag: element;
 }
 
-#help-clear, #help-bag, #help-scores, #help-turn {
+#help-message {
     font-size:small
 }
 
index 24bf94761cf895f0de7e421825dce7cad3c326b7..2be3b7d7b21115df8c13992b0866f03e3036b34c 100644 (file)
@@ -72,8 +72,6 @@
     let audioChat;
     let chatMessages;
     let chatTextarea;
-    let helpBag;
-    let helpClear;
 
     let tablePlayers = {};
     let participantPlaceholder;
         if (typeof data.remainingLetters === "number") {
             remainingLetters = data.remainingLetters;
             document.getElementById("remaining-letters").textContent = data.remainingLetters;
-            if (data.remainingLetters === 0) {
-                helpBag.style.display = "none";
-                helpClear.style.display = "";
-            } else {
-                helpBag.style.display = "";
-                helpClear.style.display = "none";
-            }
         }
 
         if (data.rack) {
         if (!Conf.ENABLE_SPELL_CHECKER || localStorage.spellCheckerEnabled === "false") {
             document.getElementById("check-spelling").style.display = "none";
             document.getElementById("enable-spell-checker").checked = false;
-            document.getElementById("info-spell-checking").style.display = "none";
         } else {
             document.getElementById("check-spelling").style.display = "";
-            document.getElementById("info-spell-checking").style.display = "";
             document.getElementById("enable-spell-checker").checked = true;
         }
     }
         bag           = document.getElementById("bag");
         chatMessages  = document.getElementById("chat-messages");
         chatTextarea  = document.getElementById("chat-ta");
-        helpBag       = document.getElementById("help-bag");
-        helpClear     = document.getElementById("help-clear");
         participantPlaceholder = document.getElementById("participants-placeholder");
     }
 
         document.getElementById("clear-rack").onclick  = clearRack;
         document.getElementById("show-rack").onclick   = showRack;
         document.getElementById("check-spelling").onclick = checkSpellingClicked;
-        helpClear.onclick  = clearGame;
-
         document.getElementById("btn-settings").onclick = showSettings;
         document.getElementById("btn-settings-close").onclick = showSettings;
     }