From e20c3a90bb1234d1436d2aa319bc481ad95f317d Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Wed, 3 Oct 2018 08:25:01 +0200 Subject: [PATCH] Fix #235 You can now change engage string with the same method as other texts: ``` ``` --- tarteaucitron.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tarteaucitron.js b/tarteaucitron.js index 6f326c4..9c00d3e 100644 --- a/tarteaucitron.js +++ b/tarteaucitron.js @@ -1392,11 +1392,16 @@ var tarteaucitron = { "engage": function (id) { "use strict"; var html = '', - r = Math.floor(Math.random() * 100000); + r = Math.floor(Math.random() * 100000), + engage = tarteaucitron.services[id].name + ' ' + tarteaucitron.lang.fallback; + + if (tarteaucitron.lang['engage-' + id] !== undefined) { + engage = tarteaucitron.lang['engage-' + id]; + } html += '
'; html += '
'; - html += ' ' + tarteaucitron.services[id].name + ' ' + tarteaucitron.lang.fallback; + html += ' ' + engage; html += ' ';