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.submitDisabled) { return }
|
||||
if (this.emptyStatus) {
|
||||
this.error = 'Cannot post an empty status with no files'
|
||||
this.error = this.$t('post_status.empty_status_error')
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -240,7 +240,7 @@ const PostStatusForm = {
|
|||
},
|
||||
previewStatus () {
|
||||
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
|
||||
return
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
class="preview-toggle faint"
|
||||
@click.stop.prevent="togglePreview"
|
||||
>
|
||||
{{ $t('status.preview') }}
|
||||
{{ $t('post_status.preview') }}
|
||||
<i
|
||||
class="icon-down-open"
|
||||
:style="{ transform: showPreview ? 'rotate(0deg)' : 'rotate(-90deg)' }"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue