git ssb

2+

mixmix / ticktack



Commit 040b198afe9d5a0c14eae6014372adffb6c9091d

added translation strings

andre alves garzia committed on 4/23/2018, 9:37:39 PM
Parent: 9237b9df2489619d235754cd0b215e38bc426234

Files changed

message/html/shares.jschanged
translations/en.jschanged
message/html/shares.jsView
@@ -29,23 +29,23 @@
2929 var captionInput = h('textarea#caption', {
3030 style: {
3131 width: '90%'
3232 },
33- placeholder: 'Type an optional caption here',
33+ placeholder: strings.share.captionPlaceholder,
3434 value: computed(captionRaw, t => t),
3535 'ev-input': () => captionRaw.set(captionInput.value),
3636 })
3737
3838 var confirmationDialog = h('div.dialog', [
3939 h('div.message', [
40- h('p', 'Do you to share this post with your followers?'),
40+ h('p', strings.share.dialogLabel),
4141 ]),
4242 h('div.form', [
4343 captionInput
4444 ]),
4545 h('div.actions', [
4646 h('Button', { 'ev-click': () => isOpen.set(false) }, strings.userShow.action.cancel),
47- h('Button -primary', { 'ev-click': () => publishAndClose(msg, true) }, "Share")
47+ h('Button -primary', { 'ev-click': () => publishAndClose(msg, true) }, strings.share.action.share)
4848 ])
4949 ])
5050
5151 var lb = api.app.html.lightbox(confirmationDialog, isOpen)
translations/en.jsView
@@ -157,8 +157,15 @@
157157 state: {
158158 noSubscriptions: 'You have no subscriptions yet'
159159 }
160160 },
161+ share: {
162+ captionPlaceholder: 'Type an optional caption here',
163+ dialogLabel: 'Do you to share this post with your followers?',
164+ action: {
165+ share: 'Share'
166+ }
167+ },
161168 languages: {
162169 en: 'English',
163170 zh: '中文'
164171 }

Built with git-ssb-web