diff --git a/l10n/po/fr/trivabble.po b/l10n/po/fr/trivabble.po index acea925..c1593e5 100644 --- a/l10n/po/fr/trivabble.po +++ b/l10n/po/fr/trivabble.po @@ -285,3 +285,6 @@ msgstr "Êtes-vous sûr·e de vouloir de changer le type du plateau à {0} ? Cel msgid "Can't find board '{0}'. Change board or start a new game." msgstr "Impossible de trouver le plateau de type '{0}'. Changez de type de plateau ou démarrez une nouvelle partie." + +msgid "Caution, this feature is experimental; any feedback will be appreciated" +msgstr "Attention, cette fonctionnalité est expérimentale ; tout commentaire sera grandement apprécié" diff --git a/l10n/pot/trivabble.pot b/l10n/pot/trivabble.pot index 2620d5c..a45b488 100644 --- a/l10n/pot/trivabble.pot +++ b/l10n/pot/trivabble.pot @@ -290,3 +290,6 @@ msgstr "" msgid "Can't find board '{0}'. Change board or start a new game." msgstr "" + +msgid "Caution, this feature is experimental; any feedback will be appreciated" +msgstr "" diff --git a/public/config.js.sample b/public/config.js.sample index 601e503..c95d261 100644 --- a/public/config.js.sample +++ b/public/config.js.sample @@ -53,6 +53,9 @@ window.TrivabbleConf = { // Cell captions. Could be "clip", "dots", "none" or "short" //CELL_CAPTIONS: "dots", + // Enable custom board definitions + //ENABLE_CUSTOM_BOARD: false, + // I don't like trailing commas, here is a nice message for you reading this file :-) HAVE_FUN: true }; diff --git a/public/trivabble.js b/public/trivabble.js index d333b69..d0d4251 100644 --- a/public/trivabble.js +++ b/public/trivabble.js @@ -66,6 +66,7 @@ setConf("SCORE_LAST_PLAYER", true); setConf("ENABLE_TIMER", false); setConf("CELL_CAPTIONS", "dots"); // "clip", "dots", "none", "short" + setConf("ENABLE_CUSTOM_BOARD", false); function isSetting(key) { return Object.prototype.hasOwnProperty.call(Conf, key) || @@ -931,6 +932,9 @@ ? format(_("You changed the board to {0} for language {1}"), newLabel, newLang) : format(_("{0} changed the board to {1} for language {2}"), msg.sender, newLabel, newLang) ); + if (newLabel !== "15x15-7") { + infoMessage(_("Caution, this feature is experimental; any feedback will be appreciated")); + } break; } @@ -2505,7 +2509,7 @@ return; } - if (Object.keys(BoardList).length > 1) { + if (getSetting("ENABLE_CUSTOM_BOARD") && (Object.keys(BoardList).length > 1)) { boardLabelSelect.textContent = ""; for (const key of Object.keys(BoardList)) {