diff roster.js @ 56:010b905a74d4

Update translation strings - prepend i18n loading for all "templates" - add some strings - commit the po files to the repo
author mathieui
date Sun, 24 May 2020 11:27:10 +0200
parents af2874ff7234
children 427807059ca8
line wrap: on
line diff
--- a/roster.js
+++ b/roster.js
@@ -55,7 +55,7 @@ function initRoster(connection) {
             button.classList.add('btn-danger');
             button.textContent = '✕';
             button.onclick = function (evt) {
-                const really = confirm('Do you really want to remove ' + jid + '?');
+                const really = confirm('{% trans 'Do you really want to remove {}?' %}'.replace('{}', jid));
                 if (!really)
                     return;
                 const iq = $iq({type: 'set'})