more i18n stuff, added missing labels and such
This commit is contained in:
parent
3e1aeb6d2c
commit
4c158e636b
|
@ -58,6 +58,8 @@
|
||||||
<BooleanSetting
|
<BooleanSetting
|
||||||
path=":pleroma.:restrict_unauthenticated.:timelines.:local"
|
path=":pleroma.:restrict_unauthenticated.:timelines.:local"
|
||||||
indeterminate-state=":if_instance_is_private"
|
indeterminate-state=":if_instance_is_private"
|
||||||
|
swap-description-and-label
|
||||||
|
hide-description
|
||||||
>
|
>
|
||||||
LOCAL TIMELINES
|
LOCAL TIMELINES
|
||||||
</BooleanSetting>
|
</BooleanSetting>
|
||||||
|
@ -66,6 +68,8 @@
|
||||||
<BooleanSetting
|
<BooleanSetting
|
||||||
path=":pleroma.:restrict_unauthenticated.:timelines.:federated"
|
path=":pleroma.:restrict_unauthenticated.:timelines.:federated"
|
||||||
indeterminate-state=":if_instance_is_private"
|
indeterminate-state=":if_instance_is_private"
|
||||||
|
swap-description-and-label
|
||||||
|
hide-description
|
||||||
>
|
>
|
||||||
FED TIMELINES
|
FED TIMELINES
|
||||||
</BooleanSetting>
|
</BooleanSetting>
|
||||||
|
@ -82,6 +86,8 @@
|
||||||
<BooleanSetting
|
<BooleanSetting
|
||||||
path=":pleroma.:restrict_unauthenticated.:profiles.:local"
|
path=":pleroma.:restrict_unauthenticated.:profiles.:local"
|
||||||
indeterminate-state=":if_instance_is_private"
|
indeterminate-state=":if_instance_is_private"
|
||||||
|
swap-description-and-label
|
||||||
|
hide-description
|
||||||
>
|
>
|
||||||
LOCAL PROFILES
|
LOCAL PROFILES
|
||||||
</BooleanSetting>
|
</BooleanSetting>
|
||||||
|
@ -90,6 +96,8 @@
|
||||||
<BooleanSetting
|
<BooleanSetting
|
||||||
path=":pleroma.:restrict_unauthenticated.:profiles.:remote"
|
path=":pleroma.:restrict_unauthenticated.:profiles.:remote"
|
||||||
indeterminate-state=":if_instance_is_private"
|
indeterminate-state=":if_instance_is_private"
|
||||||
|
swap-description-and-label
|
||||||
|
hide-description
|
||||||
>
|
>
|
||||||
FED PROFILES
|
FED PROFILES
|
||||||
</BooleanSetting>
|
</BooleanSetting>
|
||||||
|
@ -106,6 +114,8 @@
|
||||||
<BooleanSetting
|
<BooleanSetting
|
||||||
path=":pleroma.:restrict_unauthenticated.:activities.:local"
|
path=":pleroma.:restrict_unauthenticated.:activities.:local"
|
||||||
indeterminate-state=":if_instance_is_private"
|
indeterminate-state=":if_instance_is_private"
|
||||||
|
swap-description-and-label
|
||||||
|
hide-description
|
||||||
>
|
>
|
||||||
LOCAL STATUSES
|
LOCAL STATUSES
|
||||||
</BooleanSetting>
|
</BooleanSetting>
|
||||||
|
@ -114,6 +124,8 @@
|
||||||
<BooleanSetting
|
<BooleanSetting
|
||||||
path=":pleroma.:restrict_unauthenticated.:activities.:remote"
|
path=":pleroma.:restrict_unauthenticated.:activities.:remote"
|
||||||
indeterminate-state=":if_instance_is_private"
|
indeterminate-state=":if_instance_is_private"
|
||||||
|
swap-description-and-label
|
||||||
|
hide-description
|
||||||
>
|
>
|
||||||
FED STATUSES
|
FED STATUSES
|
||||||
</BooleanSetting>
|
</BooleanSetting>
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
class="label"
|
class="label"
|
||||||
:class="{ 'faint': shouldBeDisabled }"
|
:class="{ 'faint': shouldBeDisabled }"
|
||||||
>
|
>
|
||||||
<template v-if="backendDescription">
|
<template v-if="backendDescriptionLabel">
|
||||||
{{ backendDescriptionLabel }}
|
{{ backendDescriptionLabel }}
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
v-if="matchesExpertLevel"
|
v-if="matchesExpertLevel"
|
||||||
class="ChoiceSetting"
|
class="ChoiceSetting"
|
||||||
>
|
>
|
||||||
<template v-if="backendDescription">
|
<template v-if="backendDescriptionLabel">
|
||||||
{{ backendDescriptionLabel }}
|
{{ backendDescriptionLabel }}
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
class="NumberSetting"
|
class="NumberSetting"
|
||||||
>
|
>
|
||||||
<label :for="path" :class="{ 'faint': shouldBeDisabled }">
|
<label :for="path" :class="{ 'faint': shouldBeDisabled }">
|
||||||
<template v-if="backendDescription">
|
<template v-if="backendDescriptionLabel">
|
||||||
{{ backendDescriptionLabel + ' ' }}
|
{{ backendDescriptionLabel + ' ' }}
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
|
|
|
@ -33,6 +33,18 @@ export default {
|
||||||
type: String,
|
type: String,
|
||||||
default: undefined
|
default: undefined
|
||||||
},
|
},
|
||||||
|
hideDescription: {
|
||||||
|
type: Boolean
|
||||||
|
},
|
||||||
|
swapDescriptionAndLabel: {
|
||||||
|
type: Boolean
|
||||||
|
},
|
||||||
|
overrideBackendDescription: {
|
||||||
|
type: Boolean
|
||||||
|
},
|
||||||
|
overrideBackendDescriptionLabel: {
|
||||||
|
type: Boolean
|
||||||
|
},
|
||||||
draftMode: {
|
draftMode: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: undefined
|
default: undefined
|
||||||
|
@ -95,10 +107,35 @@ export default {
|
||||||
return get(this.$store.state.adminSettings.descriptions, this.path)
|
return get(this.$store.state.adminSettings.descriptions, this.path)
|
||||||
},
|
},
|
||||||
backendDescriptionLabel () {
|
backendDescriptionLabel () {
|
||||||
return this.backendDescription?.label
|
if (this.realSource !== 'admin') return ''
|
||||||
|
if (!this.backendDescription || this.overrideBackendDescriptionLabel) {
|
||||||
|
return this.$t([
|
||||||
|
'admin_dash',
|
||||||
|
'temp_overrides',
|
||||||
|
...this.canonPath.map(p => p.replace(/\./g, '_DOT_')),
|
||||||
|
'label'
|
||||||
|
].join('.'))
|
||||||
|
} else {
|
||||||
|
return this.swapDescriptionAndLabel
|
||||||
|
? this.backendDescription?.description
|
||||||
|
: this.backendDescription?.label
|
||||||
|
}
|
||||||
},
|
},
|
||||||
backendDescriptionDescription () {
|
backendDescriptionDescription () {
|
||||||
return this.backendDescription?.description
|
if (this.realSource !== 'admin') return ''
|
||||||
|
if (this.hideDescription) return null
|
||||||
|
if (!this.backendDescription || this.overrideBackendDescription) {
|
||||||
|
return this.$t([
|
||||||
|
'admin_dash',
|
||||||
|
'temp_overrides',
|
||||||
|
...this.canonPath.map(p => p.replace(/\./g, '_DOT_')),
|
||||||
|
'description'
|
||||||
|
].join('.'))
|
||||||
|
} else {
|
||||||
|
return this.swapDescriptionAndLabel
|
||||||
|
? this.backendDescription?.label
|
||||||
|
: this.backendDescription?.description
|
||||||
|
}
|
||||||
},
|
},
|
||||||
backendDescriptionSuggestions () {
|
backendDescriptionSuggestions () {
|
||||||
return this.backendDescription?.suggestions
|
return this.backendDescription?.suggestions
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
class="StringSetting"
|
class="StringSetting"
|
||||||
>
|
>
|
||||||
<label :for="path" :class="{ 'faint': shouldBeDisabled }">
|
<label :for="path" :class="{ 'faint': shouldBeDisabled }">
|
||||||
<template v-if="backendDescription">
|
<template v-if="backendDescriptionLabel">
|
||||||
{{ backendDescriptionLabel + ' ' }}
|
{{ backendDescriptionLabel + ' ' }}
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
|
|
|
@ -864,7 +864,14 @@
|
||||||
"instance": "Instance information",
|
"instance": "Instance information",
|
||||||
"registrations": "User sign-ups",
|
"registrations": "User sign-ups",
|
||||||
"captcha_header": "CAPTCHA",
|
"captcha_header": "CAPTCHA",
|
||||||
"kocaptcha": "KoCaptcha settings"
|
"kocaptcha": "KoCaptcha settings",
|
||||||
|
"access": "Instance access",
|
||||||
|
"restrict": {
|
||||||
|
"header": "Restrict access",
|
||||||
|
"timelines": "Timelines access",
|
||||||
|
"profiles": "User profiles access",
|
||||||
|
"activities": "Statues/activities access"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"limits": {
|
"limits": {
|
||||||
"arbitrary_limits": "Arbitrary limits",
|
"arbitrary_limits": "Arbitrary limits",
|
||||||
|
@ -890,6 +897,20 @@
|
||||||
"default_frontend_tip": "Default front-end will be shown to all users. Currently there's no way to for a user to select personal front-end. If you switch away from PleromaFE you'll most likely have to use old and buggy AdminFE to do instance configuration until we replace it.",
|
"default_frontend_tip": "Default front-end will be shown to all users. Currently there's no way to for a user to select personal front-end. If you switch away from PleromaFE you'll most likely have to use old and buggy AdminFE to do instance configuration until we replace it.",
|
||||||
"default_frontend_tip2": "WIP: Since Pleroma backend doesn't properly list all installed frontends you'll have to enter name and reference manually. List below provides shortcuts to fill the values.",
|
"default_frontend_tip2": "WIP: Since Pleroma backend doesn't properly list all installed frontends you'll have to enter name and reference manually. List below provides shortcuts to fill the values.",
|
||||||
"available_frontends": "Available for install"
|
"available_frontends": "Available for install"
|
||||||
|
},
|
||||||
|
"temp_overrides": {
|
||||||
|
":pleroma": {
|
||||||
|
":instance": {
|
||||||
|
":description_limit": {
|
||||||
|
"label": "Limit",
|
||||||
|
"description": "Character limit for attachment descriptions"
|
||||||
|
},
|
||||||
|
":background_image": {
|
||||||
|
"label": "Background image",
|
||||||
|
"description": "Background image (primarily used by PleromaFE)"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"time": {
|
"time": {
|
||||||
|
|
Loading…
Reference in New Issue