[web] Fix translation for genre page. Alignment of logic between artist, composer, and genre pages when navigating to albums or tracks.

This commit is contained in:
Alain Nussbaumer 2022-06-04 16:40:21 +02:00 committed by chme
parent bb294710e6
commit afb897aa47
9 changed files with 26 additions and 40 deletions

View File

@ -61,7 +61,7 @@ export default {
open_composer: function (composer) { open_composer: function (composer) {
this.selected_composer = composer this.selected_composer = composer
this.$router.push({ this.$router.push({
name: 'ComposerTracks', name: 'ComposerAlbums',
params: { composer: composer.name } params: { composer: composer.name }
}) })
}, },

View File

@ -263,7 +263,7 @@
} }
}, },
"artist": { "artist": {
"album-count": "{count} albums {'|'} ", "album-count": "{count} albums",
"shuffle": "Shuffle", "shuffle": "Shuffle",
"track-count": "{count} tracks", "track-count": "{count} tracks",
"sort-by": { "sort-by": {
@ -330,14 +330,9 @@
} }
}, },
"composer": { "composer": {
"album-count": "{count} albums {'|'}", "album-count": "{count} albums",
"shuffle": "Shuffle", "shuffle": "Shuffle",
"track-count": "{count} tracks", "track-count": "{count} tracks"
"tracks": {
"album-count": "{count} albums",
"track-count": " {'|'} {count} tracks",
"shuffle": "Shuffle"
}
}, },
"composers": { "composers": {
"count": "{count} composers", "count": "{count} composers",
@ -348,13 +343,9 @@
"title": "Files" "title": "Files"
}, },
"genre": { "genre": {
"album-count": "{count} albums {'|'} ", "album-count": "{count} albums",
"shuffle": "Shuffle", "shuffle": "Shuffle",
"tracks": { "track-count": "{count} tracks"
"album-count": "{count} albums {'|'} ",
"count": " {count} tracks",
"shuffle": "Shuffle"
}
}, },
"genres": { "genres": {
"count": "{count} genres", "count": "{count} genres",

View File

@ -263,7 +263,7 @@
} }
}, },
"artist": { "artist": {
"album-count": "{count} albums {'|'} ", "album-count": "{count} albums",
"shuffle": "Lecture aléatoire", "shuffle": "Lecture aléatoire",
"track-count": "{count} pistes", "track-count": "{count} pistes",
"sort-by": { "sort-by": {
@ -330,14 +330,9 @@
} }
}, },
"composer": { "composer": {
"album-count": "{count} albums {'|'}", "album-count": "{count} albums",
"shuffle": "Lecture aléatoire", "shuffle": "Lecture aléatoire",
"track-count": "{count} pistes", "track-count": "{count} pistes"
"pistes": {
"album-count": "{count} albums",
"track-count": " {'|'} {count} pistes",
"shuffle": "Lecture aléatoire"
}
}, },
"composers": { "composers": {
"count": "{count} compositeurs", "count": "{count} compositeurs",
@ -348,13 +343,9 @@
"title": "Fichiers" "title": "Fichiers"
}, },
"genre": { "genre": {
"album-count": "{count} albums {'|'} ", "album-count": "{count} albums",
"shuffle": "Lecture aléatoire", "shuffle": "Lecture aléatoire",
"pistes": { "track-count": "{count} pistes"
"album-count": "{count} albums {'|'} ",
"count": " {count} pistes",
"shuffle": "Lecture aléatoire"
}
}, },
"genres": { "genres": {
"count": "{count} genres", "count": "{count} genres",

View File

@ -37,6 +37,7 @@
<span <span
v-text="$t('page.artist.album-count', { count: artist.album_count })" v-text="$t('page.artist.album-count', { count: artist.album_count })"
/> />
<span>&nbsp;|&nbsp;</span>
<a <a
class="has-text-link" class="has-text-link"
@click="open_tracks" @click="open_tracks"

View File

@ -26,12 +26,11 @@
<a <a
class="has-text-link" class="has-text-link"
@click="open_artist" @click="open_artist"
v-text=" v-text="$t('page.artist.album-count', { count: artist.album_count })"
$t('page.artist.track-count', { />
albums: artist.album_count, <span>&nbsp;|&nbsp;</span>
tracks: artist.track_count <span
}) v-text="$t('page.artist.track-count', { count: artist.track_count })"
"
/> />
</p> </p>
<list-tracks :tracks="tracks.items" :uris="track_uris" /> <list-tracks :tracks="tracks.items" :uris="track_uris" />

View File

@ -25,6 +25,7 @@
$t('page.composer.album-count', { count: composer.album_count }) $t('page.composer.album-count', { count: composer.album_count })
" "
/> />
<span>&nbsp;|&nbsp;</span>
<a <a
class="has-text-link" class="has-text-link"
@click="open_tracks" @click="open_tracks"

View File

@ -14,7 +14,7 @@
</a> </a>
<a class="button is-small is-dark is-rounded" @click="play"> <a class="button is-small is-dark is-rounded" @click="play">
<mdicon class="icon" name="shuffle" size="16" /> <mdicon class="icon" name="shuffle" size="16" />
<span v-text="$t('page.composer.tracks.shuffle')" /> <span v-text="$t('page.composer.shuffle')" />
</a> </a>
</div> </div>
</template> </template>
@ -24,11 +24,12 @@
class="has-text-link" class="has-text-link"
@click="open_albums" @click="open_albums"
v-text=" v-text="
$t('page.composer.tracks.album-count', { $t('page.composer.album-count', {
count: composer.album_count count: composer.album_count
}) })
" "
/> />
<span>&nbsp;|&nbsp;</span>
<span <span
v-text=" v-text="
$t('page.composer.track-count', { count: composer.track_count }) $t('page.composer.track-count', { count: composer.track_count })

View File

@ -26,6 +26,7 @@
<span <span
v-text="$t('page.genre.album-count', { count: genre.album_count })" v-text="$t('page.genre.album-count', { count: genre.album_count })"
/> />
<span>&nbsp;|&nbsp;</span>
<a <a
class="has-text-link" class="has-text-link"
@click="open_tracks" @click="open_tracks"

View File

@ -17,7 +17,7 @@
</a> </a>
<a class="button is-small is-dark is-rounded" @click="play"> <a class="button is-small is-dark is-rounded" @click="play">
<mdicon class="icon" name="shuffle" size="16" /> <mdicon class="icon" name="shuffle" size="16" />
<span v-text="$t('page.genre.tracks.shuffle')" /> <span v-text="$t('page.genre.shuffle')" />
</a> </a>
</div> </div>
</template> </template>
@ -27,11 +27,12 @@
class="has-text-link" class="has-text-link"
@click="open_genre" @click="open_genre"
v-text=" v-text="
$t('page.genre.tracks.album-count', { count: genre.album_count }) $t('page.genre.album-count', { count: genre.album_count })
" "
/> />
<span>&nbsp;|&nbsp;</span>
<span <span
v-text="$t('page.genre.tracks.count', { count: genre.track_count })" v-text="$t('page.genre.track-count', { count: genre.track_count })"
/> />
</p> </p>
<list-tracks :tracks="tracks.items" :expression="expression" /> <list-tracks :tracks="tracks.items" :expression="expression" />