Add settings translations

master
Joop Kiefte 4 years ago
parent 3248ead787
commit 1556adab31

@ -207,7 +207,7 @@ function render (msg, keys, preview) {
var editor = h('div', {classList: 'submessage'}, [composer(keys, msg, {name: false}, {edit: true})])
messageDiv.appendChild(editor)
}
}, ['Edit']))
}, ['Redakti']))
buttons.appendChild(identify(msg.key, message, keys))
}

@ -1,13 +1,13 @@
function settingsPage (keys) {
var welcome = h('div', {classList: 'message'})
welcome.appendChild(h('p', {innerHTML: marked('### About Bogbook \n\n[Bogbook](http://bogbook.com) is a distributed social network built using secure-gossiped blockchain logging (blogging), but we call them "bogs".\n\n With bogbook you can create your own secure social network that is easily replicated between browsers via bogbook pubs.\n\n To try bogbook, type a message into the [compose box](/) on the bogbook instance you are using, then press preview and publish.\n\n You can view the bogbook code at [git.sr.ht/~ev/bogbook](https://git.sr.ht/~ev/bogbook) or clone it directly from our server:\n```\ngit clone http://git.bogbook.com/bogbook.git\n```\n Please communicate errors, bugs, and pull-requests to [@ev](http://bogbook.com/#@Q++V5BbvWIg8B+TqtC9ZKFhetruuw+nOgxEqfjlOZI0=) using Bogbook or via email: [ev@evbogue.com](mailto:ev@evbogue.com)\n\n Here\'s a video of Bogbook in the early days:')}))
welcome.appendChild(h('p', {innerHTML: marked('### Pri Interskri.be \n\n[Interskri.be](http://interskri.be) estas traduko de [Bogbook](http://bogbook.com), kiu siavice estas distribuita socia reto farita per sekur-onidira blokĉena protokolado, al kio oni referencas kiel bog-mesaĝoj.\n\n Per bogbook vi povas krei vian propran socian reton kiu estas facile plukomunikata inter foliumiloj per bogbook-konigejoj.\n\n Por elprovi bogbook, tajpu mesaĝon en la [verkokesto](/) sur la bogbook-versio kiun vi uzas, tiam premu antaŭvidi kaj afiŝi.\n\n Vi povas vidi la fontkodon de la originalo ĉe [git.sr.ht/~ev/bogbook](https://git.sr.ht/~ev/bogbook) kaj de la Esperanta traduko ĉe [git.kiefte.eu/lapingvino/bogbook-esperanto](https://git.kiefte.eu/lapingvino/bogbook-esperanto) kaj vi povas rekte per git ekuzi ĝin:\n```\ngit clone http://git.bogbook.com/bogbook.git\n```\naŭ\n```\ngit clone https://git.kiefte.eu/lapingvino/bogbook-esperanto\n``` Bonvolu komuniki erarojn, cimojn kaj aldono-petojn al [@ev](http://bogbook.com/#@Q++V5BbvWIg8B+TqtC9ZKFhetruuw+nOgxEqfjlOZI0=) per Bogbook aŭ retpoŝte: [ev@evbogue.com](mailto:ev@evbogue.com)\n\n Jen video el la unuaj tagoj de Bogbook:')}))
welcome.appendChild(h('div', {innerHTML: '<video width="100%" controls><source src="http://evbogue.com/e-bogbook-explanation.webm" type="video/webm"></video>'}))
var keyDiv = h('div', {classList: 'message'})
keyDiv.appendChild(h('p', {innerHTML: marked('### Your keypair \n\n This is your [ed25519](https://ed25519.cr.yp.to/) keypair. It was generated using [TweetNaCl.js](https://tweetnacl.js.org/#/). \n\n Bogbook does not use logins and passwords, instead you are able to post by signing messages with your keypair. \n\n Because Bogbook uses keypairs for identities, keep your keypair safe so no one can post to your feed (or delete your posts) without your permission. \n\n**Save your key** in a safe place so that you can continue to use the same identity.')}))
keyDiv.appendChild(h('p', {innerHTML: marked('### Via ŝlosilparo \n\n Jen via [ed25519](https://ed25519.cr.yp.to/)-ŝlosilparo. Ĝi estis kreita per [TweetNaCl.js](https://tweetnacl.js.org/#/). \n\n Bogbook ne uzas ensalutnomon kaj pasvorton, anstataŭe vi povas afiŝi subskribante mesaĝojn per via ŝlosilparo. \n\n Ĉar Bogbook uzas Ŝlosilparojn por identecoj, necesas bone konservi vian ŝlosilparon sekura por ke neniu povu afiŝi al via fluo (aŭ forigi viajn afiŝojn) sen via permeso. \n\n**Konservu vian ŝlosilparon** en sekura loko por ke vi povu pluuzi la saman identecon.')}))
keyDiv.appendChild(h('pre', {style: 'width: 80%'}, [h('code', [JSON.stringify(keys)])]))
@ -18,9 +18,9 @@ function settingsPage (keys) {
location.reload()
})
}
}, ['Delete Key']))
}, ['Forviŝi ŝlosilon']))
var textarea = h('textarea', {placeholder: 'Import your existing ed25519 keypair'})
var textarea = h('textarea', {placeholder: 'Importi vian ekzistantan ed25519-ŝlosilparon'})
keyDiv.appendChild(textarea)
keyDiv.appendChild(h('button', {
onclick: function () {
@ -28,17 +28,17 @@ function settingsPage (keys) {
localforage.setItem('id', JSON.parse(textarea.value)).then(function () { location.reload() })
}
}
}, ['Import Key']))
}, ['Importi ŝlosilon']))
var everything = h('div', {classList: 'message'})
everything.appendChild(h('p', {innerHTML: marked('### Delete everything \n\n Sometimes you may want to delete all of your bogbook data in the browser. When you click this button, Bogbook will erase everything that you\'ve stored in the browser.\n\n **NOTE**: This will not delete Bogbook posts that you have already gossiped with others.\n\n **WARNING**: This will delete your Bogbook keypair as well as all data stored in the browser. If you want to continue to use the same key, make sure you\'ve backed up your keypair!')}))
everything.appendChild(h('p', {innerHTML: marked('### Forviŝi ĉion \n\n Foje eble vi volas forigi ĉiujn bogbook-datumojn el la foliumilo. Kiam vi klakas ĉi tiun butonon, Bogbook forviŝos ĉion kion vi konservis en la foliumilo.\n\n **NOTU**: Ĉi tio ne forviŝos Bogbook-afiŝojn kiujn vi jam plukomunikis al aliaj.\n\n **AVERTO**: Ĉi tio forviŝos vian ŝlosilparon kun ĉiuj datumoj konservitaj en la foliumilo. Se vi volos plu uzi la saman ŝlosilon, estu certa ke vi sekurkopiis vian ŝlosilparon!')}))
everything.appendChild(h('button', {
onclick: function () {
localforage.clear().then(function () {location.reload()})
}
}, ['Delete Everything']))
}, ['Forviŝi ĉion']))
/* we probably don't need this anymore
var regenerate = h('div', {classList: 'message'})
@ -54,9 +54,9 @@ function settingsPage (keys) {
var pubs = h('div', {classList: 'message'})
pubs.appendChild(h('p', {innerHTML: marked('### Bogbook Pubs \n\n These are your bogbook pubs. Bogbook will gossip with these pubs to publish your messages and check for new messages from your subscriptions. You should have at least one Bogbook pub in order to gossip your messages. If you don\'t see a bogbook pub below, try clicking "Reset Pubs" or add \n```\nws://bogbook.com\n```\n to your pubs list.')}))
pubs.appendChild(h('p', {innerHTML: marked('### Bogbook-konigejoj \n\n Ĉi tio estas viaj bogbook-konigejoj. Bogbook komunikos kun ĉi tiuj konigejoj por afiŝi viajn mesaĝojn kaj kontroli pri novaj mesaĝoj al kiuj vi aliĝis. Vi devas havi almenaŭ unu konigejon por ke la onidirosistemo funkciu. Se vi ne vidas konigejojn sube, provu klaki "Restarigi konigejojn" aŭ aldonu n```\nws://bogbook.com\n```\n al via listo de konigejoj.')}))
var add = h('input', {placeholder: 'Add a pub'})
var add = h('input', {placeholder: 'Aldoni konigejon'})
localforage.getItem('pubs').then(function (servers) {
pubs.appendChild(h('div', [
@ -68,7 +68,7 @@ function settingsPage (keys) {
localforage.setItem('pubs', servers).then(function () { location.hash = '' })
}
}
}, ['Add a pub'])
}, ['Aldoni konigejon'])
]))
servers.forEach(function (pub) {
@ -79,7 +79,7 @@ function settingsPage (keys) {
var newServers = servers.filter(item => item !== pub)
localforage.setItem('pubs', newServers).then(function () { location.hash = '' })
}
}, ['Remove'])
}, ['Forviŝi'])
]))
})
})
@ -91,7 +91,7 @@ function settingsPage (keys) {
location.reload()
})
}
}, ['Reset pubs']))
}, ['Restarigi konigejojn']))
scroller.appendChild(keyDiv)
scroller.appendChild(pubs)

@ -112,7 +112,7 @@ function profilePage (src, keys) {
regenerate(home)
})
}
}, ['Delete ' + name + '\'s feed']))
}, ['Forviŝi la fluon de ' + name]))
if (src != keys.publicKey) {
localforage.getItem('subscriptions').then(function (subs) {
@ -122,14 +122,14 @@ function profilePage (src, keys) {
subs = subs.filter(a => a !== src)
localforage.setItem('subscriptions', subs).then(function () { location.hash = '' })
}
}, ['Unsubscribe from ' + name]))
}, ['Malaliĝi de ' + name]))
} else {
profile.appendChild(h('button', {
onclick: function () {
subs.push(src)
localforage.setItem('subscriptions', subs).then(function () { location.hash = '' })
}
}, ['Subscribe to ' + name]))
}, ['Aliĝi al ' + name]))
}
profile.appendChild(identify(src, profile, keys))
})

Loading…
Cancel
Save