diff options
Diffstat (limited to 'render.js')
-rw-r--r-- | render.js | 30 |
1 files changed, 15 insertions, 15 deletions
@@ -45,7 +45,7 @@ function addButton (post, message, keys) { h('img', {id: 'img'}) ]) - var locInput = h('input', {placeholder: 'New location'}) + var locInput = h('input', {placeholder: 'Nova loko'}) var locDiv = h('div', [ locInput, h('button', { @@ -66,7 +66,7 @@ function addButton (post, message, keys) { ]) var valueInput = h('input', {placeholder: '0.00'}) - var currencyInput = h('input', {placeholder: 'Currency'}) + var currencyInput = h('input', {placeholder: 'Monunuo'}) var valueDiv = h('div', [ valueInput, currencyInput, @@ -85,7 +85,7 @@ function addButton (post, message, keys) { }) }) } - }, ['Publish']) + }, ['Publikigi']) ]) var button = h('button', {/*classList: 'right',*/ @@ -94,23 +94,23 @@ function addButton (post, message, keys) { onclick: function () { message.appendChild(locDiv) } - }, ['Location'])) + }, ['Loko'])) message.appendChild(h('button', {classList: 'right', onclick: function () { message.appendChild(imageInput) document.getElementById("inp").addEventListener("change", readFile); } - }, ['Image'])) + }, ['Bildo'])) message.appendChild(h('button', {classList: 'right', onclick: function () { message.appendChild(valueDiv) } - }, ['Value'])) + }, ['Valoro'])) } - }, ['Add']) + }, ['Aldoni']) @@ -127,11 +127,11 @@ function getHeader (post, keys, mini) { raw.parentNode.removeChild(raw) removeRaw.parentNode.replaceChild(getRaw, removeRaw) } - }, ['hide']) + }, ['kaŝi']) getRaw.parentNode.replaceChild(removeRaw, getRaw) head.appendChild(raw) } - }, ['raw']) + }, ['kruda']) var head = h('span', [ h('p', {classList: 'right'}, [ @@ -160,7 +160,7 @@ function render (msg, keys, preview) { log.reverse().forEach(function (nextPost) { if (nextPost.located == msg.key) { var locatedExists = document.getElementById('located:' + msg.key) - var located = h('div', {id: 'located:' + msg.key}, [h('strong', ['Location: ']), nextPost.loc]) + var located = h('div', {id: 'located:' + msg.key}, [h('strong', ['Loko: ']), nextPost.loc]) if (locatedExists) { locatedExists.parentNode.removeChild(locatedExists) } @@ -183,7 +183,7 @@ function render (msg, keys, preview) { if (nextPost.valuated == msg.key) { var valuatedExists = document.getElementById('valuated:' + msg.key) - var valuated = h('div', {id: 'valuated:' + msg.key}, [h('strong', ['Price: ' ]), nextPost.value + ' ' + nextPost.currency]) + var valuated = h('div', {id: 'valuated:' + msg.key}, [h('strong', ['Prezo: ' ]), nextPost.value + ' ' + nextPost.currency]) if (valuatedExists) { valuatedExists.parentNode.removeChild(valuatedExists) } @@ -201,7 +201,7 @@ function render (msg, keys, preview) { msgcontents.parentNode.replaceChild(editedcontents, msgcontents) message.appendChild(h('div', [ - 'edited in:', + 'redaktita en:', h('a', {href: '#' + nextPost.key}, [nextPost.key.substring(0, 10) + '...']) ])) if (!messageExists) { @@ -236,7 +236,7 @@ function render (msg, keys, preview) { message.appendChild(getHeader(msg, keys)) message.appendChild(h('span', [ - 'edited: ', + 'redaktita: ', h('a', {href: '#' + msg.edited}, [msg.edited.substring(0, 10) + '...']) ])) @@ -285,14 +285,14 @@ function render (msg, keys, preview) { messageDiv.appendChild(h('div', {classList: 'submessage'}, [composer(keys, msg, gotName)])) } } - }, ['Reply'])) + }, ['Respondi'])) if (msg.author === keys.publicKey) { message.appendChild(h('button', { onclick: function () { var editor = h('div', [composer(keys, msg, {gotName: false}, {edit: true})]) message.appendChild(editor) } - }, ['Edit'])) + }, ['Redakti'])) } message.appendChild(addButton(msg, message, keys)) } |