aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorShpuld Shpuldson <shp@cock.li>2020-07-06 10:53:03 +0300
committerShpuld Shpuldson <shp@cock.li>2020-07-06 10:53:03 +0300
commitf254a847d2fa7e57c3686a3b51fef234fcf253bd (patch)
treebaf66176a883de3828bc0a980069e26e37f5a511 /src/components
parent105254d73d3b9174e33a184ff632c10a6a6f8e60 (diff)
move translation strings to correct place, translate error message
Diffstat (limited to 'src/components')
-rw-r--r--src/components/post_status_form/post_status_form.js4
-rw-r--r--src/components/post_status_form/post_status_form.vue2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js
index 1bf5dae3..18661235 100644
--- a/src/components/post_status_form/post_status_form.js
+++ b/src/components/post_status_form/post_status_form.js
@@ -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
}
diff --git a/src/components/post_status_form/post_status_form.vue b/src/components/post_status_form/post_status_form.vue
index 0cebd36e..94729f75 100644
--- a/src/components/post_status_form/post_status_form.vue
+++ b/src/components/post_status_form/post_status_form.vue
@@ -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)' }"