comparison 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
comparison
equal deleted inserted replaced
55:6a7a99f5a0ca 56:010b905a74d4
53 const button = document.createElementNS('http://www.w3.org/1999/xhtml', 'button'); 53 const button = document.createElementNS('http://www.w3.org/1999/xhtml', 'button');
54 button.classList.add('btn'); 54 button.classList.add('btn');
55 button.classList.add('btn-danger'); 55 button.classList.add('btn-danger');
56 button.textContent = '✕'; 56 button.textContent = '✕';
57 button.onclick = function (evt) { 57 button.onclick = function (evt) {
58 const really = confirm('Do you really want to remove ' + jid + '?'); 58 const really = confirm('{% trans 'Do you really want to remove {}?' %}'.replace('{}', jid));
59 if (!really) 59 if (!really)
60 return; 60 return;
61 const iq = $iq({type: 'set'}) 61 const iq = $iq({type: 'set'})
62 .c('query', {xmlns: NS.roster}) 62 .c('query', {xmlns: NS.roster})
63 .c('item', {jid: jid, subscription: 'unsubscribe'}); 63 .c('item', {jid: jid, subscription: 'unsubscribe'});