mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-04-06 01:25:31 +00:00
Translated several texts and corrected and added some functionalities
This commit is contained in:
parent
5932d184d7
commit
1d180480c4
@ -215,6 +215,7 @@
|
|||||||
},
|
},
|
||||||
"table": {
|
"table": {
|
||||||
"columns": {
|
"columns": {
|
||||||
|
"number": "Nr.",
|
||||||
"name": "Name",
|
"name": "Name",
|
||||||
"slug": "Slug",
|
"slug": "Slug",
|
||||||
"role": "Rolle",
|
"role": "Rolle",
|
||||||
@ -236,6 +237,8 @@
|
|||||||
},
|
},
|
||||||
"tags": {
|
"tags": {
|
||||||
"name": "Hashtags",
|
"name": "Hashtags",
|
||||||
|
"number": "Nr.",
|
||||||
|
"nameOfHashtag": "Name",
|
||||||
"tagCountUnique": "Benutzer",
|
"tagCountUnique": "Benutzer",
|
||||||
"tagCount": "Beiträge"
|
"tagCount": "Beiträge"
|
||||||
},
|
},
|
||||||
@ -251,7 +254,12 @@
|
|||||||
"post": {
|
"post": {
|
||||||
"name": "Beitrag",
|
"name": "Beitrag",
|
||||||
"moreInfo": {
|
"moreInfo": {
|
||||||
"name": "Mehr Info"
|
"name": "Mehr Info",
|
||||||
|
"title": "Mehr Informationen",
|
||||||
|
"description": "Hier findest du weitere infos zum Thema.",
|
||||||
|
"titleOfCategoriesSection": "Kategorien",
|
||||||
|
"titleOfHashtagsSection": "Hashtags",
|
||||||
|
"titleOfRelatedContributionsSection": "Verwandte Beiträge"
|
||||||
},
|
},
|
||||||
"takeAction": {
|
"takeAction": {
|
||||||
"name": "Aktiv werden"
|
"name": "Aktiv werden"
|
||||||
|
|||||||
@ -215,6 +215,7 @@
|
|||||||
},
|
},
|
||||||
"table": {
|
"table": {
|
||||||
"columns": {
|
"columns": {
|
||||||
|
"number": "#",
|
||||||
"name": "Name",
|
"name": "Name",
|
||||||
"slug": "Slug",
|
"slug": "Slug",
|
||||||
"role": "Role",
|
"role": "Role",
|
||||||
@ -236,6 +237,8 @@
|
|||||||
},
|
},
|
||||||
"tags": {
|
"tags": {
|
||||||
"name": "Hashtags",
|
"name": "Hashtags",
|
||||||
|
"number": "#",
|
||||||
|
"nameOfHashtag": "Name",
|
||||||
"tagCountUnique": "Users",
|
"tagCountUnique": "Users",
|
||||||
"tagCount": "Posts"
|
"tagCount": "Posts"
|
||||||
},
|
},
|
||||||
@ -251,7 +254,12 @@
|
|||||||
"post": {
|
"post": {
|
||||||
"name": "Post",
|
"name": "Post",
|
||||||
"moreInfo": {
|
"moreInfo": {
|
||||||
"name": "More info"
|
"name": "More info",
|
||||||
|
"title": "More Informations",
|
||||||
|
"description": "Here you can find more information about this topic.",
|
||||||
|
"titleOfCategoriesSection": "Categories",
|
||||||
|
"titleOfHashtagsSection": "Hashtags",
|
||||||
|
"titleOfRelatedContributionsSection": "Related Posts"
|
||||||
},
|
},
|
||||||
"takeAction": {
|
"takeAction": {
|
||||||
"name": "Take action"
|
"name": "Take action"
|
||||||
|
|||||||
@ -31,7 +31,7 @@ export default {
|
|||||||
},
|
},
|
||||||
apollo: {
|
apollo: {
|
||||||
Category: {
|
Category: {
|
||||||
query: gql(`
|
query: gql`
|
||||||
query {
|
query {
|
||||||
Category(orderBy: postCount_desc) {
|
Category(orderBy: postCount_desc) {
|
||||||
id
|
id
|
||||||
@ -41,7 +41,7 @@ export default {
|
|||||||
postCount
|
postCount
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`),
|
`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@ -133,7 +133,7 @@ export default {
|
|||||||
},
|
},
|
||||||
apollo: {
|
apollo: {
|
||||||
statistics: {
|
statistics: {
|
||||||
query: gql(`
|
query: gql`
|
||||||
query {
|
query {
|
||||||
statistics {
|
statistics {
|
||||||
countUsers
|
countUsers
|
||||||
@ -147,7 +147,7 @@ export default {
|
|||||||
countShouts
|
countShouts
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`),
|
`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,6 +4,11 @@
|
|||||||
<template slot="id" slot-scope="scope">
|
<template slot="id" slot-scope="scope">
|
||||||
{{ scope.index + 1 }}.
|
{{ scope.index + 1 }}.
|
||||||
</template>
|
</template>
|
||||||
|
<template slot="name" slot-scope="scope">
|
||||||
|
<nuxt-link :to="{ path: '/', query: { hashtag: scope.row.id } }">
|
||||||
|
<b>#{{ scope.row.name | truncate(20) }}</b>
|
||||||
|
</nuxt-link>
|
||||||
|
</template>
|
||||||
</ds-table>
|
</ds-table>
|
||||||
</ds-card>
|
</ds-card>
|
||||||
</template>
|
</template>
|
||||||
@ -20,8 +25,8 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
fields() {
|
fields() {
|
||||||
return {
|
return {
|
||||||
id: '#',
|
id: this.$t('admin.tags.number'),
|
||||||
name: 'Name',
|
name: this.$t('admin.tags.name'),
|
||||||
taggedCountUnique: {
|
taggedCountUnique: {
|
||||||
label: this.$t('admin.tags.tagCountUnique'),
|
label: this.$t('admin.tags.tagCountUnique'),
|
||||||
align: 'right',
|
align: 'right',
|
||||||
@ -35,7 +40,7 @@ export default {
|
|||||||
},
|
},
|
||||||
apollo: {
|
apollo: {
|
||||||
Tag: {
|
Tag: {
|
||||||
query: gql(`
|
query: gql`
|
||||||
query {
|
query {
|
||||||
Tag(first: 20, orderBy: taggedCountUnique_desc) {
|
Tag(first: 20, orderBy: taggedCountUnique_desc) {
|
||||||
id
|
id
|
||||||
@ -44,7 +49,7 @@ export default {
|
|||||||
taggedCountUnique
|
taggedCountUnique
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`),
|
`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@ -90,7 +90,7 @@ export default {
|
|||||||
},
|
},
|
||||||
fields() {
|
fields() {
|
||||||
return {
|
return {
|
||||||
index: '#',
|
index: this.$t('admin.users.table.columns.number'),
|
||||||
name: this.$t('admin.users.table.columns.name'),
|
name: this.$t('admin.users.table.columns.name'),
|
||||||
slug: this.$t('admin.users.table.columns.slug'),
|
slug: this.$t('admin.users.table.columns.slug'),
|
||||||
createdAt: this.$t('admin.users.table.columns.createdAt'),
|
createdAt: this.$t('admin.users.table.columns.createdAt'),
|
||||||
@ -116,20 +116,26 @@ export default {
|
|||||||
apollo: {
|
apollo: {
|
||||||
User: {
|
User: {
|
||||||
query() {
|
query() {
|
||||||
return gql(`
|
return gql`
|
||||||
query($filter: _UserFilter, $first: Int, $offset: Int, $email: String) {
|
query($filter: _UserFilter, $first: Int, $offset: Int, $email: String) {
|
||||||
User(email: $email, filter: $filter, first: $first, offset: $offset, orderBy: createdAt_desc) {
|
User(
|
||||||
id
|
email: $email
|
||||||
name
|
filter: $filter
|
||||||
slug
|
first: $first
|
||||||
role
|
offset: $offset
|
||||||
createdAt
|
orderBy: createdAt_desc
|
||||||
contributionsCount
|
) {
|
||||||
commentedCount
|
id
|
||||||
shoutedCount
|
name
|
||||||
|
slug
|
||||||
|
role
|
||||||
|
createdAt
|
||||||
|
contributionsCount
|
||||||
|
commentedCount
|
||||||
|
shoutedCount
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
`
|
||||||
`)
|
|
||||||
},
|
},
|
||||||
variables() {
|
variables() {
|
||||||
const { offset, first, email, filter } = this
|
const { offset, first, email, filter } = this
|
||||||
|
|||||||
@ -1,11 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<ds-card>
|
<ds-card>
|
||||||
<h2 style="margin-bottom: .2em;">Mehr Informationen</h2>
|
<h2 style="margin-bottom: .2em;">{{ $t('post.moreInfo.title') }}</h2>
|
||||||
<p>Hier findest du weitere infos zum Thema.</p>
|
<p>{{ $t('post.moreInfo.description') }}</p>
|
||||||
<ds-space />
|
<ds-space />
|
||||||
<h3>
|
<h3>
|
||||||
<ds-icon name="compass" />
|
<!-- <ds-icon name="compass" /> -->
|
||||||
Themenkategorien
|
{{ $t('post.moreInfo.titleOfCategoriesSection') }}
|
||||||
</h3>
|
</h3>
|
||||||
<div class="tags">
|
<div class="tags">
|
||||||
<ds-icon
|
<ds-icon
|
||||||
@ -22,8 +22,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<template v-if="post.tags && post.tags.length">
|
<template v-if="post.tags && post.tags.length">
|
||||||
<h3>
|
<h3>
|
||||||
<ds-icon name="tags" />
|
<!-- <ds-icon name="tags" /> -->
|
||||||
Schlagwörter
|
{{ $t('post.moreInfo.titleOfHashtagsSection') }}
|
||||||
</h3>
|
</h3>
|
||||||
<div class="tags">
|
<div class="tags">
|
||||||
<ds-tag v-for="tag in post.tags" :key="tag.id">
|
<ds-tag v-for="tag in post.tags" :key="tag.id">
|
||||||
@ -32,7 +32,7 @@
|
|||||||
</ds-tag>
|
</ds-tag>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<h3>Verwandte Beiträge</h3>
|
<h3>{{ $t('post.moreInfo.titleOfRelatedContributionsSection') }}</h3>
|
||||||
<ds-section style="margin: 0 -1.5rem; padding: 1.5rem;">
|
<ds-section style="margin: 0 -1.5rem; padding: 1.5rem;">
|
||||||
<ds-flex v-if="post.relatedContributions && post.relatedContributions.length" gutter="small">
|
<ds-flex v-if="post.relatedContributions && post.relatedContributions.length" gutter="small">
|
||||||
<hc-post-card
|
<hc-post-card
|
||||||
@ -71,7 +71,7 @@ export default {
|
|||||||
apollo: {
|
apollo: {
|
||||||
Post: {
|
Post: {
|
||||||
query() {
|
query() {
|
||||||
return gql(`
|
return gql`
|
||||||
query Post($slug: String!) {
|
query Post($slug: String!) {
|
||||||
Post(slug: $slug) {
|
Post(slug: $slug) {
|
||||||
id
|
id
|
||||||
@ -118,7 +118,7 @@ export default {
|
|||||||
shoutedCount
|
shoutedCount
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`)
|
`
|
||||||
},
|
},
|
||||||
variables() {
|
variables() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user