diff --git a/changes/changelog.d/833.bugfix b/changes/changelog.d/833.bugfix new file mode 100644 index 000000000..06ce086f5 --- /dev/null +++ b/changes/changelog.d/833.bugfix @@ -0,0 +1 @@ +Fixed broken translation on home and track detail page (#833) diff --git a/front/src/components/Home.vue b/front/src/components/Home.vue index b88369d95..9393d9b78 100644 --- a/front/src/components/Home.vue +++ b/front/src/components/Home.vue @@ -68,12 +68,7 @@
-
- Get quality metadata about your music thanks to MusicBrainz -
+
@@ -147,6 +142,10 @@ export default { return { title: this.$pgettext('Head/Home/Title', "Welcome") } + }, + musicbrainzItem () { + let msg = this.$pgettext('Content/Home/List item/Verb', 'Get quality metadata about your music thanks to MusicBrainz') + return this.$gettextInterpolate(msg, {url: this.musicbrainzUrl}) } } } diff --git a/front/src/components/library/TrackBase.vue b/front/src/components/library/TrackBase.vue index 639c8f51b..4d396bd1a 100644 --- a/front/src/components/library/TrackBase.vue +++ b/front/src/components/library/TrackBase.vue @@ -14,11 +14,7 @@
{{ track.title }} -
-
From album %{ album } by %{ artist }
-
+
@@ -218,6 +214,10 @@ export default { ")" ) }, + subtitle () { + let msg = this.$pgettext('Content/Track/Paragraph', 'From album %{ album } by %{ artist }') + return this.$gettextInterpolate(msg, {album: this.track.album.title, artist: this.track.artist.name, albumUrl: this.albumUrl, artistUrl: this.artistUrl}) + } }, watch: { id() {