Structure translations based on file locations

This commit is contained in:
roschaefer 2019-10-10 18:27:56 +02:00
parent 6955323f51
commit c3b2b4fcac
4 changed files with 42 additions and 42 deletions

View File

@ -226,6 +226,19 @@
"success": "Konto erfolgreich gelöscht!",
"pleaseConfirm": "<b class='is-danger'>Zerstörerische Aktion!</b> Gib <b>{confirm}</b> ein, um zu bestätigen."
},
"embeds": {
"name": "Drittanbieter",
"info-description": "Wenn du zustimmst werden in den Beiträgen aus der folgenden Liste an Providern Fremdcode von anderen Anbietern (Drittanbietern) in Form von eingebundenen Videos, Bilder oder Text automatisch eingebunden werden.",
"description": "Du hast zugestimmt das in den Beiträgen aus der folgenden Liste an Providern Fremdcode von anderen Anbietern (Drittanbietern) in Form von eingebundenen Videos, Bilder oder Text automatisch eingebunden werden.",
"statustext": "Momentan ist das automatische einbinden:",
"statuschange": "Einstellung ändern",
"false": "Abgestellt",
"true": "Zugelassen",
"button-tofalse": "Abstellen",
"button-totrue": "dauerhaft zulassen",
"third-party-false": "Es wird <b style='color:red'>kein</b> Service von Drittanbietern automatisch eingebunden.",
"third-party-true": "Das einbinden der Services von Drittanbietern ist <b style='color:red'>dauerhaft zugelassen</b> und gespeichert für komende Sitzungen."
},
"organizations": {
"name": "Meine Organisationen"
},
@ -343,19 +356,6 @@
"submitted": "Kommentar Gesendet",
"updated": "Änderungen gespeichert"
},
"allowEmbeds": {
"name": "Drittanbieter",
"info-description": "Wenn du zustimmst werden in den Beiträgen aus der folgenden Liste an Providern Fremdcode von anderen Anbietern (Drittanbietern) in Form von eingebundenen Videos, Bilder oder Text automatisch eingebunden werden.",
"description": "Du hast zugestimmt das in den Beiträgen aus der folgenden Liste an Providern Fremdcode von anderen Anbietern (Drittanbietern) in Form von eingebundenen Videos, Bilder oder Text automatisch eingebunden werden.",
"statustext": "Momentan ist das automatische einbinden:",
"statuschange": "Einstellung ändern",
"false": "Abgestellt",
"true": "Zugelassen",
"button-tofalse": "Abstellen",
"button-totrue": "dauerhaft zulassen",
"third-party-false": "Es wird <b style='color:red'>kein</b> Service von Drittanbietern automatisch eingebunden.",
"third-party-true": "Das einbinden der Services von Drittanbietern ist <b style='color:red'>dauerhaft zugelassen</b> und gespeichert für komende Sitzungen."
},
"edited": "bearbeitet"
},
"comment": {

View File

@ -227,6 +227,19 @@
"success": "Account successfully deleted!",
"pleaseConfirm": "<b class='is-danger'>Destructive action!</b> Type <b>{confirm}</b> to confirm"
},
"embeds": {
"name": "Third party providers",
"info-description": "If you agree, the posts from the following list of providers will automatically include third-party code from other providers (third parties) in the form of embedded videos, images, or text.",
"description": "You have agreed that in the contributions from the following list of providers, foreign code from other providers (third parties) in the form of embedded videos, images or text automatically are embedded.",
"statustext": "At the moment this is automatic embedding:",
"statuschange": "Change setting",
"false": "Turned off",
"true": "Admitted",
"button-tofalse": "turn-off",
"button-totrue": "allow permanently",
"third-party-false": "It automatically integrates <b style='color:red'>no </b> third-party providers' service.",
"third-party-true": "The inclusion of third-party services is <b style='color:red'>permanently allowed</b> and stored for future sessions."
},
"organizations": {
"name": "My Organizations"
},
@ -344,19 +357,6 @@
"submitted": "Comment Submitted",
"updated": "Changes Saved"
},
"allowEmbeds": {
"name": "Third party providers",
"info-description": "If you agree, the posts from the following list of providers will automatically include third-party code from other providers (third parties) in the form of embedded videos, images, or text.",
"description": "You have agreed that in the contributions from the following list of providers, foreign code from other providers (third parties) in the form of embedded videos, images or text automatically are embedded.",
"statustext": "At the moment this is automatic embedding:",
"statuschange": "Change setting",
"false": "Turned off",
"true": "Admitted",
"button-tofalse": "turn-off",
"button-totrue": "allow permanently",
"third-party-false": "It automatically integrates <b style='color:red'>no </b> third-party providers' service.",
"third-party-true": "The inclusion of third-party services is <b style='color:red'>permanently allowed</b> and stored for future sessions."
},
"edited": "edited"
},
"comment": {

View File

@ -40,8 +40,8 @@ export default {
path: `/settings/blocked-users`,
},
{
name: this.$t('post.allowEmbeds.name'),
path: `/settings/allow-embeds`,
name: this.$t('settings.embeds.name'),
path: `/settings/embeds`,
},
{
name: this.$t('settings.deleteUserAccount.name'),

View File

@ -1,6 +1,6 @@
<template>
<ds-card :header="$t('post.allowEmbeds.name')">
<p>{{ $t('post.allowEmbeds.statustext') }}</p>
<ds-card :header="$t('settings.embeds.name')">
<p>{{ $t('settings.embeds.statustext') }}</p>
<ds-container width="large">
<h3 v-html="allowEmbeds_h3" />
<div v-html="allowEmbeds_desc" />
@ -8,17 +8,17 @@
<div>
<ds-space />
<ds-space />
<p>{{ $t('post.allowEmbeds.statuschange') }}</p>
<p>{{ $t('settings.embeds.statuschange') }}</p>
<ds-container width="large">
<ds-flex>
<ds-flex-item>
<ds-button @click="toFalse" :disabled="!disabled">
{{ $t('post.allowEmbeds.button-tofalse') }}
{{ $t('settings.embeds.button-tofalse') }}
</ds-button>
</ds-flex-item>
<ds-flex-item>
<ds-button @click="toTrue" secondary :disabled="disabled">
{{ $t('post.allowEmbeds.button-totrue') }}
{{ $t('settings.embeds.button-totrue') }}
</ds-button>
</ds-flex-item>
</ds-flex>
@ -29,9 +29,9 @@
<div>
<p v-if="disabled">
<b>{{ $t('post.allowEmbeds.description') }}</b>
<b>{{ $t('settings.embeds.description') }}</b>
</p>
<p v-else>{{ $t('post.allowEmbeds.info-description') }}</p>
<p v-else>{{ $t('settings.embeds.info-description') }}</p>
<ds-container>
<ds-placeholder>
<ul>
@ -54,7 +54,7 @@ import { allowEmbedIframesMutation } from '~/graphql/User.js'
export default {
head() {
return {
title: this.$t('post.allowEmbeds.name'),
title: this.$t('settings.embeds.name'),
}
},
computed: {
@ -64,8 +64,8 @@ export default {
},
data() {
return {
allowEmbeds_h3: this.$t('post.allowEmbeds.false'),
allowEmbeds_desc: this.$t('post.allowEmbeds.third-party-false'),
allowEmbeds_h3: this.$t('settings.embeds.false'),
allowEmbeds_desc: this.$t('settings.embeds.third-party-false'),
disabled: null,
providers: [],
}
@ -81,13 +81,13 @@ export default {
setCurrentUser: 'auth/SET_USER',
}),
toFalse() {
this.allowEmbeds_h3 = this.$t('post.allowEmbeds.false')
this.allowEmbeds_desc = this.$t('post.allowEmbeds.third-party-false')
this.allowEmbeds_h3 = this.$t('settings.embeds.false')
this.allowEmbeds_desc = this.$t('settings.embeds.third-party-false')
this.submit()
},
toTrue() {
this.allowEmbeds_h3 = this.$t('post.allowEmbeds.true')
this.allowEmbeds_desc = this.$t('post.allowEmbeds.third-party-true')
this.allowEmbeds_h3 = this.$t('settings.embeds.true')
this.allowEmbeds_desc = this.$t('settings.embeds.third-party-true')
this.submit()
},
async submit() {