+msgid "Info & source code at {0}"
+msgstr "Information et code source : {0}"
+
msgid "Your game is not over. Are you sure you want to leave now?"
msgstr "Votre partie n'est pas terminée. Êtes-vous sûr·e de vouloir la quitter ?"
// configuration of the client.
window.TrivabbleConf = {
+ // Info & code source (if you edited the source code, the AGPLv3 license requires you to share your version at this address)
+ //SOURCE_URL: 'https://trivabble.org',
+
// The amount of time to wait after a connection failure
//POLLING_DELAY: 2000,
<button id="next-help-msg" class="minibutton" data-l10n="title" title="Next tip">→</button>
</div>
</div>
- <p id="info-spell-checking" hidden="true"><span data-l10n="text-content">Spell checking is based on:</span> <a rel="noopener noreferrer" target="_blank" href="http://aspell.net">Aspell</a></p>
+ <div class="copyright-info">
+ <p id="info-spell-checking" hidden="true"><span data-l10n="text-content">Spell checking is based on:</span> <a rel="noopener noreferrer" target="_blank" href="http://aspell.net">Aspell</a></p>
+ <div id="source-code-info"></div>
+ </div>
</div>
</body>
</html>
return setting[Math.floor(setting.length / 2)];
}
+ setConf("SOURCE_URL", "https://trivabble.org");
setConf("POLLING_DELAY", 2000);
setConf("ENABLE_WEBSOCKETS", true);
setConf("ENABLE_EVENT_SOURCE", true);
trivabble.run();
};
+ function addSourceCodeInfo() {
+ const info = document.getElementById("source-code-info");
+ if (info) {
+ const sourceLink = document.createElement("a");
+ const source = getSetting("SOURCE_URL");
+ sourceLink.href = source;
+ sourceLink.textContent = source;
+ sourceLink.target = "_blank";
+ const translated = _("Info & source code at {0}").split("\{0\}");
+ const pinfo = document.createElement("p");
+ pinfo.textContent = translated[0];
+ pinfo.appendChild(sourceLink);
+ if (translated[1]) {
+ pinfo.appendChild(document.createTextNode(translated[1]));
+ }
+ info.appendChild(pinfo);
+ }
+ }
+
function setAvailableBoardLangs(availableBoardLangs) {
if (!boardLangSelect) {
const boardLangSelection = document.getElementById("board-lang-selection");
}
trivabble.run = function () {
+ addSourceCodeInfo();
initGlobals();
initEvents();
initChat();