git ssb

2+

mixmix / ticktack



Commit 3de6deea99de778ea8784164b9e0976c92e6bfef

issue #69: added translation strings for confirmation dialog

andre alves garzia committed on 1/24/2018, 2:54:17 AM
Parent: 62605a81a284d06174e8ceb10b1952ea544ac035

Files changed

contact/html/block.jschanged
translations/en.jschanged
contact/html/block.jsView
@@ -28,12 +28,12 @@
2828 const { unblock, block } = api.contact.async
2929 const className = when(youBlockThem, '-blocking')
3030
3131 const confirmationDialog = h("div.dialog", [
32- h("div.message","block means you will never receive message from this user"),
32+ h("div.message",strings.userShow.action.blockConfirmationMessage),
3333 h("div.actions", [
34- h('Button', 'Cancel'),
35- h('Button -primary',{'ev-click': () => block(feed)}, 'Block')
34+ h('Button', strings.userShow.action.cancel),
35+ h('Button -primary',{'ev-click': () => block(feed)}, strings.userShow.action.block)
3636 ])
3737 ])
3838
3939 const isOpen = Value(false)
translations/en.jsView
@@ -97,9 +97,11 @@
9797 follow: 'Follow',
9898 unfollow: 'Unfollow',
9999 directMessage: 'New Direct Message',
100100 block: 'Block',
101- unblock: 'Unblock'
101+ unblock: 'Unblock',
102+ blockConfirmationMessage: 'block means you will never receive message from this user',
103+ cancel: 'Cancel'
102104 },
103105 state: {
104106 friends: 'You are friends',
105107 youFollow: 'You follow them',

Built with git-ssb-web