update confirmation message
authorLaurent Mazet <mazet@softndesign.org>
Mon, 16 Nov 2020 10:22:37 +0000 (11:22 +0100)
committerLaurent Mazet <mazet@softndesign.org>
Mon, 16 Nov 2020 10:22:37 +0000 (11:22 +0100)
l10n/po/fr/trivabble.po
l10n/pot/trivabble.pot
public/trivabble.js

index 7a15f78a43ddfa9b54c2d9f59dc1b1439734000d..33efba29a22aed42cedfe74f7e8e20aba8a7859a 100644 (file)
@@ -196,8 +196,8 @@ msgstr "La vérification orthographique nécessite que Trivabble télécharge un
 msgid  "Spell checking is based on:"
 msgstr "La vérification orthographique est basée sur :"
 
-msgid  "Do you want to add score to the current player?"
-msgstr "Voulez-vous ajouter ce score au joueur actif ?"
+msgid  "{0} points will be added to the following player '{1}'"
+msgstr "{0} points vont être ajouté au joueur '{1}'"
 
 msgid  "Settings"
 msgstr "Paramètres"
index 2a1c69428addae8689433e134e60c6846601b646..adb996fff877fed3bf7b200376915e7188de947a 100644 (file)
@@ -196,7 +196,7 @@ msgstr ""
 msgid  "Spell checking is based on:"
 msgstr ""
 
-msgid  "Do you want to add score to active player?"
+msgid  "{0} points will be added to the following player '{1}'"
 msgstr ""
 
 msgid  "Settings"
index d7e3b50979697cc900209d66f1f6a235885e3104..b2b9f5b2258b4f360de9e0ae8793f6704d0b83dc 100644 (file)
         }
 
         /* Confirm score */
+        if (currentPlayer === "") {
+            setCurrentPlayer( getSetting("PlayerName"));
+        }
         myConfirm(
-            _("Do you want to add score to the current player?") + " " + totalScore,
+            format(_("{0} points will be added to the following player '{1}'"), totalScore, currentPlayer),
             function () {
-                if (currentPlayer === "") {
-                    return;
-                }
-
                 const scoreCell = tablePlayers[currentPlayer].childNodes[2].childNodes[0];
                 sendCmds([{
                     cmd: "score",