mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
translate about / home button
This commit is contained in:
parent
410736b1bb
commit
dbcf0bd051
5 changed files with 14 additions and 10 deletions
|
@ -46,9 +46,9 @@ export default {
|
||||||
if (!this.settings || !this.settings.footerLinks) return []
|
if (!this.settings || !this.settings.footerLinks) return []
|
||||||
return this.settings.footerLinks.map(link => {
|
return this.settings.footerLinks.map(link => {
|
||||||
if (/^https?:\/\//.test(link.href)) {
|
if (/^https?:\/\//.test(link.href)) {
|
||||||
return { href: link.href, label: link.label }
|
return { href: link.href, label: link.label.startsWith('common.') ? this.$t(link.label) : link.label }
|
||||||
} else {
|
} else {
|
||||||
return { to: link.href, label: link.label }
|
return { to: link.href, label: link.label.startsWith('common.') ? this.$t(link.label) : link.label }
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,8 +81,8 @@ v-container
|
||||||
:label="$t('common.url')")
|
:label="$t('common.url')")
|
||||||
v-card-actions
|
v-card-actions
|
||||||
v-spacer
|
v-spacer
|
||||||
v-btn(link @click='linkModal=false' color='error') {{$t('common.cancel')}}
|
v-btn(outlined @click='linkModal=false' color='error') {{$t('common.cancel')}}
|
||||||
v-btn(link @click='addFooterLink' color='primary' :disabled='!valid') {{$t('common.add')}}
|
v-btn(outlined @click='addFooterLink' color='primary' :disabled='!valid') {{$t('common.add')}}
|
||||||
|
|
||||||
v-card-title {{$t('admin.footer_links')}}
|
v-card-title {{$t('admin.footer_links')}}
|
||||||
v-card-text
|
v-card-text
|
||||||
|
@ -166,8 +166,9 @@ export default {
|
||||||
this.setSetting({
|
this.setSetting({
|
||||||
key: 'footerLinks',
|
key: 'footerLinks',
|
||||||
value: [
|
value: [
|
||||||
{ href: '/about', label: 'about' },
|
{ href: '/', label: 'common.home' },
|
||||||
{ href: '/', label: 'home' }]
|
{ href: '/about', label: 'common.about' }
|
||||||
|
]
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
forceLogoReload () {
|
forceLogoReload () {
|
||||||
|
|
|
@ -93,7 +93,8 @@
|
||||||
"help_translate": "Help Translate",
|
"help_translate": "Help Translate",
|
||||||
"show_map": "Show map",
|
"show_map": "Show map",
|
||||||
"calendar": "Calendar",
|
"calendar": "Calendar",
|
||||||
"home": "Home"
|
"home": "Home",
|
||||||
|
"about": "About"
|
||||||
},
|
},
|
||||||
"login": {
|
"login": {
|
||||||
"description": "By logging in you can publish new events.",
|
"description": "By logging in you can publish new events.",
|
||||||
|
|
|
@ -93,7 +93,9 @@
|
||||||
"latitude": "Latitudine",
|
"latitude": "Latitudine",
|
||||||
"longitude": "Longitudine",
|
"longitude": "Longitudine",
|
||||||
"getting_there": "Come arrivare",
|
"getting_there": "Come arrivare",
|
||||||
"calendar": "Calendario"
|
"calendar": "Calendario",
|
||||||
|
"home": "Home",
|
||||||
|
"about": "Cos'è"
|
||||||
},
|
},
|
||||||
"login": {
|
"login": {
|
||||||
"description": "Entrando puoi pubblicare nuovi eventi.",
|
"description": "Entrando puoi pubblicare nuovi eventi.",
|
||||||
|
|
|
@ -40,8 +40,8 @@ const defaultSettings = {
|
||||||
hide_thumbs: false,
|
hide_thumbs: false,
|
||||||
hide_calendar: false,
|
hide_calendar: false,
|
||||||
footerLinks: [
|
footerLinks: [
|
||||||
{ href: '/', label: 'home' },
|
{ href: '/', label: 'common.home' },
|
||||||
{ href: '/about', label: 'about' }
|
{ href: '/about', label: 'common.about' }
|
||||||
],
|
],
|
||||||
plugins: [],
|
plugins: [],
|
||||||
admin_email: config.admin_email || '',
|
admin_email: config.admin_email || '',
|
||||||
|
|
Loading…
Reference in a new issue