0
0
This commit is contained in:
syuilo 2017-03-26 17:43:25 +09:00
parent 79577c9ebb
commit 5b5ceabbf1
4 changed files with 28 additions and 6 deletions

View File

@ -113,6 +113,17 @@
"mk-donation-home-widget": {
"title": "Donation",
"text": "To manage Misskey, we spend money for our domain, server, etc.. There's no incomes for us, so we need your tip. If you're interested, contact {}. Thank you for your contribution!"
},
"mk-repost-form": {
"quote": "Quote...",
"cancel": "Cancel",
"repost": "Repost",
"reposting": "Reposting...",
"success": "Reposted!",
"failure": "Repost failed"
},
"mk-repost-form-window": {
"title": "Are you sure you want to repost this post?"
}
}
}

View File

@ -113,6 +113,17 @@
"mk-donation-home-widget": {
"title": "寄付のお願い",
"text": "Misskeyの運営にはドメイン、サーバー等のコストが掛かります。Misskeyは広告を掲載したりしないため、収入を皆様からの寄付に頼っています。もしご興味があれば、{}までご連絡ください。ご協力ありがとうございます。"
},
"mk-repost-form": {
"quote": "引用する...",
"cancel": "キャンセル",
"repost": "Repost",
"reposting": "しています...",
"success": "Repostしました",
"failure": "Repostできませんでした"
},
"mk-repost-form-window": {
"title": "この投稿をRepostしますか"
}
}
}

View File

@ -1,7 +1,7 @@
<mk-repost-form-window>
<mk-window ref="window" is-modal={ true }>
<yield to="header">
<i class="fa fa-retweet"></i>この投稿をRepostしますか
<i class="fa fa-retweet"></i>%i18n:desktop.tags.mk-repost-form-window.title%
</yield>
<yield to="content">
<mk-repost-form ref="form" post={ parent.opts.post }></mk-repost-form>

View File

@ -2,9 +2,9 @@
<mk-post-preview post={ opts.post }></mk-post-preview>
<virtual if={ !quote }>
<footer>
<a class="quote" if={ !quote } onclick={ onquote }>引用する...</a>
<button class="cancel" onclick={ cancel }>キャンセル</button>
<button class="ok" onclick={ ok } disabled={ wait }>{ wait ? 'しています...' : 'Repost' }</button>
<a class="quote" if={ !quote } onclick={ onquote }>%i18n:desktop.tags.mk-repost-form.quote%</a>
<button class="cancel" onclick={ cancel }>%i18n:desktop.tags.mk-repost-form.cancel%</button>
<button class="ok" onclick={ ok } disabled={ wait }>{ wait ? '%i18n:desktop.tags.mk-repost-form.reposting%' : '%i18n:desktop.tags.mk-repost-form.repost%' }</button>
</footer>
</virtual>
<virtual if={ quote }>
@ -102,9 +102,9 @@
repost_id: this.opts.post.id
}).then(data => {
this.trigger('posted');
notify('Repostしました');
notify('%i18n:desktop.tags.mk-repost-form.success%');
}).catch(err => {
notify('Repostできませんでした');
notify('%i18n:desktop.tags.mk-repost-form.failure%');
}).then(() => {
this.update({
wait: false