comparison client.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 8b69b3a1ef8e
children 427807059ca8
comparison
equal deleted inserted replaced
55:6a7a99f5a0ca 56:010b905a74d4
120 120
121 function onConnected() 121 function onConnected()
122 { 122 {
123 const new_node = document.createElementNS('http://www.w3.org/1999/xhtml', 'span'); 123 const new_node = document.createElementNS('http://www.w3.org/1999/xhtml', 'span');
124 const parent_node = connect.parentNode; 124 const parent_node = connect.parentNode;
125 const text = document.createTextNode('Logged in as ' + connection.authzid + ' '); 125 const text = document.createTextNode('{% trans 'Logged in as {} ' %}'.replace('{}', connection.authzid));
126 new_node.appendChild(text); 126 new_node.appendChild(text);
127 parent_node.insertBefore(new_node, connect); 127 parent_node.insertBefore(new_node, connect);
128 128
129 jid_element.hidden = true; 129 jid_element.hidden = true;
130 pass_element.hidden = true; 130 pass_element.hidden = true;