Commit 3de6deea99de778ea8784164b9e0976c92e6bfef
issue #69: added translation strings for confirmation dialog
andre alves garzia committed on 1/24/2018, 2:54:17 AMParent: 62605a81a284d06174e8ceb10b1952ea544ac035
Files changed
contact/html/block.js | changed |
translations/en.js | changed |
contact/html/block.js | ||
---|---|---|
@@ -28,12 +28,12 @@ | ||
28 | 28 | const { unblock, block } = api.contact.async |
29 | 29 | const className = when(youBlockThem, '-blocking') |
30 | 30 | |
31 | 31 | 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), | |
33 | 33 | 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) | |
36 | 36 | ]) |
37 | 37 | ]) |
38 | 38 | |
39 | 39 | const isOpen = Value(false) |
translations/en.js | ||
---|---|---|
@@ -97,9 +97,11 @@ | ||
97 | 97 | follow: 'Follow', |
98 | 98 | unfollow: 'Unfollow', |
99 | 99 | directMessage: 'New Direct Message', |
100 | 100 | block: 'Block', |
101 | - unblock: 'Unblock' | |
101 | + unblock: 'Unblock', | |
102 | + blockConfirmationMessage: 'block means you will never receive message from this user', | |
103 | + cancel: 'Cancel' | |
102 | 104 | }, |
103 | 105 | state: { |
104 | 106 | friends: 'You are friends', |
105 | 107 | youFollow: 'You follow them', |
Built with git-ssb-web