Mercurial > xmpp-account-manager
comparison pep.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 |
---|---|
63 const button = document.createElementNS('http://www.w3.org/1999/xhtml', 'button'); | 63 const button = document.createElementNS('http://www.w3.org/1999/xhtml', 'button'); |
64 button.classList.add('btn'); | 64 button.classList.add('btn'); |
65 button.classList.add('btn-danger'); | 65 button.classList.add('btn-danger'); |
66 button.textContent = '✕'; | 66 button.textContent = '✕'; |
67 button.onclick = function (evt) { | 67 button.onclick = function (evt) { |
68 const really = confirm('Do you really want to remove the node ' + node + '?'); | 68 const really = confirm('{% trans 'Do you really want to remove the node {}?' %}'.replace('{}', node)); |
69 if (!really) | 69 if (!really) |
70 return; | 70 return; |
71 const iq = $iq({type: 'set'}) | 71 const iq = $iq({type: 'set'}) |
72 .c('pubsub', {xmlns: NS.pubsub_owner}) | 72 .c('pubsub', {xmlns: NS.pubsub_owner}) |
73 .c('delete', {node: node}); | 73 .c('delete', {node: node}); |