move translation strings to correct place, translate error message
This commit is contained in:
parent
105254d73d
commit
f254a847d2
3 changed files with 6 additions and 5 deletions
|
@ -192,7 +192,7 @@ const PostStatusForm = {
|
||||||
if (this.posting) { return }
|
if (this.posting) { return }
|
||||||
if (this.submitDisabled) { return }
|
if (this.submitDisabled) { return }
|
||||||
if (this.emptyStatus) {
|
if (this.emptyStatus) {
|
||||||
this.error = 'Cannot post an empty status with no files'
|
this.error = this.$t('post_status.empty_status_error')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -240,7 +240,7 @@ const PostStatusForm = {
|
||||||
},
|
},
|
||||||
previewStatus () {
|
previewStatus () {
|
||||||
if (this.emptyStatus && this.newStatus.spoilerText.trim() === '') {
|
if (this.emptyStatus && this.newStatus.spoilerText.trim() === '') {
|
||||||
this.preview = { error: this.$t('status.preview_empty') }
|
this.preview = { error: this.$t('post_status.preview_empty') }
|
||||||
this.previewLoading = false
|
this.previewLoading = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
class="preview-toggle faint"
|
class="preview-toggle faint"
|
||||||
@click.stop.prevent="togglePreview"
|
@click.stop.prevent="togglePreview"
|
||||||
>
|
>
|
||||||
{{ $t('status.preview') }}
|
{{ $t('post_status.preview') }}
|
||||||
<i
|
<i
|
||||||
class="icon-down-open"
|
class="icon-down-open"
|
||||||
:style="{ transform: showPreview ? 'rotate(0deg)' : 'rotate(-90deg)' }"
|
:style="{ transform: showPreview ? 'rotate(0deg)' : 'rotate(-90deg)' }"
|
||||||
|
|
|
@ -189,6 +189,9 @@
|
||||||
"direct_warning_to_all": "This post will be visible to all the mentioned users.",
|
"direct_warning_to_all": "This post will be visible to all the mentioned users.",
|
||||||
"direct_warning_to_first_only": "This post will only be visible to the mentioned users at the beginning of the message.",
|
"direct_warning_to_first_only": "This post will only be visible to the mentioned users at the beginning of the message.",
|
||||||
"posting": "Posting",
|
"posting": "Posting",
|
||||||
|
"preview": "Preview",
|
||||||
|
"preview_empty": "Empty",
|
||||||
|
"empty_status_error": "Can't post an empty status with no files",
|
||||||
"scope_notice": {
|
"scope_notice": {
|
||||||
"public": "This post will be visible to everyone",
|
"public": "This post will be visible to everyone",
|
||||||
"private": "This post will be visible to your followers only",
|
"private": "This post will be visible to your followers only",
|
||||||
|
@ -644,8 +647,6 @@
|
||||||
"copy_link": "Copy link to status",
|
"copy_link": "Copy link to status",
|
||||||
"thread_muted": "Thread muted",
|
"thread_muted": "Thread muted",
|
||||||
"thread_muted_and_words": ", has words:",
|
"thread_muted_and_words": ", has words:",
|
||||||
"preview": "Preview",
|
|
||||||
"preview_empty": "Empty",
|
|
||||||
"show_full_subject": "Show full subject",
|
"show_full_subject": "Show full subject",
|
||||||
"hide_full_subject": "Hide full subject",
|
"hide_full_subject": "Hide full subject",
|
||||||
"show_content": "Show content",
|
"show_content": "Show content",
|
||||||
|
|
Loading…
Reference in a new issue