From: Laurent Mazet Date: Mon, 16 Nov 2020 10:22:37 +0000 (+0100) Subject: update confirmation message X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=b28dc470892ff60dadf4714454c225a823044391;p=trivabble.git update confirmation message --- diff --git a/l10n/po/fr/trivabble.po b/l10n/po/fr/trivabble.po index 7a15f78..33efba2 100644 --- a/l10n/po/fr/trivabble.po +++ b/l10n/po/fr/trivabble.po @@ -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" diff --git a/l10n/pot/trivabble.pot b/l10n/pot/trivabble.pot index 2a1c694..adb996f 100644 --- a/l10n/pot/trivabble.pot +++ b/l10n/pot/trivabble.pot @@ -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" diff --git a/public/trivabble.js b/public/trivabble.js index d7e3b50..b2b9f5b 100644 --- a/public/trivabble.js +++ b/public/trivabble.js @@ -1878,13 +1878,12 @@ } /* 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",