[web] Fix missing translation in audiobook page. Reorganise some translations to be more coherent.

This commit is contained in:
Alain Nussbaumer 2022-06-04 13:57:08 +02:00 committed by chme
parent ba7cea01e4
commit 6221f40e96
8 changed files with 59 additions and 55 deletions

View File

@ -17,7 +17,7 @@
name="account-music" name="account-music"
size="16" size="16"
/> />
<span v-text="$t('tabs.audiobooks.authors')" /> <span v-text="$t('page.audiobooks.tabs.authors')" />
</a> </a>
</li> </li>
</router-link> </router-link>
@ -29,7 +29,7 @@
<li :class="{ 'is-active': isActive }"> <li :class="{ 'is-active': isActive }">
<a @click="navigate" @keypress.enter="navigate"> <a @click="navigate" @keypress.enter="navigate">
<mdicon class="icon is-small" name="album" size="16" /> <mdicon class="icon is-small" name="album" size="16" />
<span v-text="$t('tabs.audiobooks.audiobooks')" /> <span v-text="$t('page.audiobooks.tabs.audiobooks')" />
</a> </a>
</li> </li>
</router-link> </router-link>

View File

@ -13,7 +13,7 @@
<li :class="{ 'is-active': isActive }"> <li :class="{ 'is-active': isActive }">
<a @click="navigate" @keypress.enter="navigate"> <a @click="navigate" @keypress.enter="navigate">
<mdicon class="icon is-small" name="web" size="16" /> <mdicon class="icon is-small" name="web" size="16" />
<span v-text="$t('page.settings.tabs.music.browse')" /> <span v-text="$t('page.browse.tabs.browse')" />
</a> </a>
</li> </li>
</router-link> </router-link>
@ -29,7 +29,7 @@
name="account-music" name="account-music"
size="16" size="16"
/> />
<span v-text="$t('page.settings.tabs.music.artists')" /> <span v-text="$t('page.browse.tabs.artists')" />
</a> </a>
</li> </li>
</router-link> </router-link>
@ -41,7 +41,7 @@
<li :class="{ 'is-active': isActive }"> <li :class="{ 'is-active': isActive }">
<a @click="navigate" @keypress.enter="navigate"> <a @click="navigate" @keypress.enter="navigate">
<mdicon class="icon is-small" name="album" size="16" /> <mdicon class="icon is-small" name="album" size="16" />
<span v-text="$t('page.settings.tabs.music.albums')" /> <span v-text="$t('page.browse.tabs.albums')" />
</a> </a>
</li> </li>
</router-link> </router-link>
@ -53,7 +53,7 @@
<li :class="{ 'is-active': isActive }"> <li :class="{ 'is-active': isActive }">
<a @click="navigate" @keypress.enter="navigate"> <a @click="navigate" @keypress.enter="navigate">
<mdicon class="icon is-small" name="speaker" size="16" /> <mdicon class="icon is-small" name="speaker" size="16" />
<span v-text="$t('page.settings.tabs.music.genres')" /> <span v-text="$t('page.browse.tabs.genres')" />
</a> </a>
</li> </li>
</router-link> </router-link>
@ -69,7 +69,7 @@
name="book-open-page-variant" name="book-open-page-variant"
size="16" size="16"
/> />
<span v-text="$t('page.settings.tabs.music.composers')" /> <span v-text="$t('page.browse.tabs.composers')" />
</a> </a>
</li> </li>
</router-link> </router-link>
@ -82,7 +82,7 @@
<li :class="{ 'is-active': isActive }"> <li :class="{ 'is-active': isActive }">
<a @click="navigate" @keypress.enter="navigate"> <a @click="navigate" @keypress.enter="navigate">
<mdicon class="icon is-small" name="spotify" size="16" /> <mdicon class="icon is-small" name="spotify" size="16" />
<span v-text="$t('page.settings.tabs.music.spotify')" /> <span v-text="$t('page.browse.tabs.spotify')" />
</a> </a>
</li> </li>
</router-link> </router-link>

View File

@ -12,7 +12,7 @@
> >
<a @click="search_library"> <a @click="search_library">
<mdicon class="icon is-small" name="bookshelf" size="16" /> <mdicon class="icon is-small" name="bookshelf" size="16" />
<span v-text="$t('page.settings.tabs.search.library')" /> <span v-text="$t('page.search.tabs.library')" />
</a> </a>
</li> </li>
<li <li
@ -22,7 +22,7 @@
> >
<a @click="search_spotify"> <a @click="search_spotify">
<mdicon class="icon is-small" name="spotify" size="16" /> <mdicon class="icon is-small" name="spotify" size="16" />
<span v-text="$t('page.settings.tabs.search.spotify')" /> <span v-text="$t('page.search.tabs.spotify')" />
</a> </a>
</li> </li>
</ul> </ul>

View File

@ -12,7 +12,7 @@
> >
<li :class="{ 'is-active': isActive }"> <li :class="{ 'is-active': isActive }">
<a @click="navigate" @keypress.enter="navigate"> <a @click="navigate" @keypress.enter="navigate">
<span v-text="$t('page.settings.tabs.settings.general')" /> <span v-text="$t('page.settings.tabs.general')" />
</a> </a>
</li> </li>
</router-link> </router-link>
@ -25,7 +25,7 @@
<a @click="navigate" @keypress.enter="navigate"> <a @click="navigate" @keypress.enter="navigate">
<span <span
v-text=" v-text="
$t('page.settings.tabs.settings.remotes-and-outputs') $t('page.settings.tabs.remotes-and-outputs')
" "
/> />
</a> </a>
@ -38,7 +38,7 @@
> >
<li :class="{ 'is-active': isActive }"> <li :class="{ 'is-active': isActive }">
<a @click="navigate" @keypress.enter="navigate"> <a @click="navigate" @keypress.enter="navigate">
<span v-text="$t('page.settings.tabs.settings.artwork')" /> <span v-text="$t('page.settings.tabs.artwork')" />
</a> </a>
</li> </li>
</router-link> </router-link>
@ -50,7 +50,7 @@
<li :class="{ 'is-active': isActive }"> <li :class="{ 'is-active': isActive }">
<a @click="navigate" @keypress.enter="navigate"> <a @click="navigate" @keypress.enter="navigate">
<span <span
v-text="$t('page.settings.tabs.settings.online-services')" v-text="$t('page.settings.tabs.online-services')"
/> />
</a> </a>
</li> </li>

View File

@ -302,6 +302,10 @@
"artists": { "artists": {
"count": "{count} authors", "count": "{count} authors",
"title": "Authors" "title": "Authors"
},
"tabs": {
"authors": "Authors",
"audiobooks": "Audiobooks"
} }
}, },
"browse": { "browse": {
@ -315,6 +319,14 @@
"recently-played": { "recently-played": {
"title": "Recently played", "title": "Recently played",
"tracks": "tracks" "tracks": "tracks"
},
"tabs": {
"albums": "Albums",
"artists": "Artists",
"browse": "Browse",
"composers": "Composers",
"genres": "Genres",
"spotify": "Spotify"
} }
}, },
"composer": { "composer": {
@ -409,7 +421,11 @@
"show-playlists": "Show all {count} playlists", "show-playlists": "Show all {count} playlists",
"show-podcasts": "Show all {count} podcasts", "show-podcasts": "Show all {count} podcasts",
"show-tracks": "Show all {count} tracks", "show-tracks": "Show all {count} tracks",
"tracks": "Tracks" "tracks": "Tracks",
"tabs": {
"library": "Library",
"spotify": "Spotify"
}
}, },
"settings": { "settings": {
"artwork": { "artwork": {
@ -481,24 +497,10 @@
"logout": "Logout" "logout": "Logout"
}, },
"tabs": { "tabs": {
"music": { "artwork": "Artwork",
"albums": "Albums", "general": "General",
"artists": "Artists", "online-services": "Online Services",
"browse": "Browse", "remotes-and-outputs": "Remotes and Outputs"
"composers": "Composers",
"genres": "Genres",
"spotify": "Spotify"
},
"search": {
"library": "Library",
"spotify": "Spotify"
},
"settings": {
"artwork": "Artwork",
"general": "General",
"online-services": "Online Services",
"remotes-and-outputs": "Remotes and Outputs"
}
} }
}, },
"spotify": { "spotify": {

View File

@ -302,6 +302,10 @@
"artists": { "artists": {
"count": "{count} auteurs", "count": "{count} auteurs",
"title": "Auteurs" "title": "Auteurs"
},
"tabs": {
"authors": "Auteurs",
"audiobooks": "Livres audio"
} }
}, },
"browse": { "browse": {
@ -315,6 +319,14 @@
"recently-played": { "recently-played": {
"title": "Lectures récentes", "title": "Lectures récentes",
"pistes": "pistes" "pistes": "pistes"
},
"tabs": {
"albums": "Albums",
"artists": "Artistes",
"browse": "Parcourir",
"composers": "Compositeurs",
"genres": "Genres",
"spotify": "Spotify"
} }
}, },
"composer": { "composer": {
@ -409,7 +421,11 @@
"show-playlists": "Afficher les {count} listes de lecture", "show-playlists": "Afficher les {count} listes de lecture",
"show-podcasts": "Afficher les {count} podcasts", "show-podcasts": "Afficher les {count} podcasts",
"show-tracks": "Afficher les {count} pistes", "show-tracks": "Afficher les {count} pistes",
"pistes": "Pistes" "pistes": "Pistes",
"tabs": {
"library": "Bibliothèque",
"spotify": "Spotify"
}
}, },
"settings": { "settings": {
"artwork": { "artwork": {
@ -481,24 +497,10 @@
"logout": "Se déconnecter" "logout": "Se déconnecter"
}, },
"tabs": { "tabs": {
"music": { "artwork": "Illustrations",
"albums": "Albums", "general": "Général",
"artists": "Artistes", "online-services": "Services en ligne",
"browse": "Parcourir", "remotes-and-outputs": "Télécommandes et sorties"
"composers": "Compositeurs",
"genres": "Genres",
"spotify": "Spotify"
},
"search": {
"library": "Library",
"spotify": "Spotify"
},
"settings": {
"artwork": "Illustrations",
"general": "Général",
"online-services": "Services en ligne",
"remotes-and-outputs": "Télécommandes et sorties"
}
} }
}, },
"spotify": { "spotify": {

View File

@ -9,7 +9,7 @@
<p class="title is-4" v-text="$t('page.audiobooks.artists.title')" /> <p class="title is-4" v-text="$t('page.audiobooks.artists.title')" />
<p <p
class="heading" class="heading"
v-text="$t('page.audiobooks.artists.count', { count: tists.count })" v-text="$t('page.audiobooks.artists.count', { count: artists.count })"
/> />
</template> </template>
<template #heading-right /> <template #heading-right />

View File

@ -14,7 +14,7 @@
</div> </div>
<div v-if="spotify.spotify_installed"> <div v-if="spotify.spotify_installed">
<div class="notification is-size-7"> <div class="notification is-size-7">
<b v-text="$t('page.settings.services.spotify.requirements')" /> <span v-text="$t('page.settings.services.spotify.requirements')" />
<span <span
v-if="use_libspotity" v-if="use_libspotity"
v-text="$t('page.settings.services.spotify.help')" v-text="$t('page.settings.services.spotify.help')"
@ -49,7 +49,7 @@
</div> </div>
<p class="help"> <p class="help">
<span v-text="$t('page.settings.services.spotify.scopes')" /> <span v-text="$t('page.settings.services.spotify.scopes')" />
<code v-text="spotify_required_scope.join()" /> <code v-text="spotify_required_scope.join(', ')" />
</p> </p>
<div <div
v-if="spotify.webapi_token_valid" v-if="spotify.webapi_token_valid"