From b74a44fbe1c71c749b5911a4e36b51b201e26382 Mon Sep 17 00:00:00 2001 From: Jo Vuit Date: Thu, 7 Feb 2019 17:24:55 +0100 Subject: [PATCH 1/3] Added context --- front/src/components/library/Album.vue | 27 +++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/front/src/components/library/Album.vue b/front/src/components/library/Album.vue index bb33b7e7f..17fcf572b 100644 --- a/front/src/components/library/Album.vue +++ b/front/src/components/library/Album.vue @@ -14,33 +14,33 @@
- Artist page + Artist page
- Play all + Play all - Search on Wikipedia + Search on Wikipedia - View on MusicBrainz + View on MusicBrainz @@ -150,7 +151,7 @@ export default { computed: { labels() { return { - title: this.$gettext("Album") + title: this.$pgettext('Head/Album/Title/Name', 'Album') } }, publicLibraries () { @@ -180,7 +181,7 @@ export default { ) }, subtitle () { - let msg = this.$ngettext('Album containing %{ count } track, by %{ artist }', 'Album containing %{ count } tracks, by %{ artist }', this.album.tracks.length) + let msg = this.$npgettext('Content/Album/Title', 'Album containing %{ count } track, by %{ artist }', 'Album containing %{ count } tracks, by %{ artist }', this.album.tracks.length) return this.$gettextInterpolate(msg, {count: this.album.tracks.length, artist: this.album.artist.name}) } }, -- GitLab From 6ae6fcd5dba2a9471155877a66010823d9f2c104 Mon Sep 17 00:00:00 2001 From: Jo Vuit Date: Thu, 7 Feb 2019 17:28:49 +0100 Subject: [PATCH 2/3] Added content type Popup --- CONTRIBUTING.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 25ff14c2a..085975a53 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -434,6 +434,7 @@ This hierarchical structure is made of several parts: - ``Menu`` - ``Modal`` - ``Sidebar`` + - ``Popup`` - ``*`` for strings that are not tied to a specific location - The feature part, which is required, and refers to the feature associated with the translated string: -- GitLab From 16ab90b38f8e9f0fef1a44c953c2266d5aa3fd8a Mon Sep 17 00:00:00 2001 From: Jo Vuit Date: Thu, 7 Feb 2019 17:32:17 +0100 Subject: [PATCH 3/3] Modified context --- front/src/components/library/Album.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/src/components/library/Album.vue b/front/src/components/library/Album.vue index 17fcf572b..f57cfbbc3 100644 --- a/front/src/components/library/Album.vue +++ b/front/src/components/library/Album.vue @@ -181,7 +181,7 @@ export default { ) }, subtitle () { - let msg = this.$npgettext('Content/Album/Title', 'Album containing %{ count } track, by %{ artist }', 'Album containing %{ count } tracks, by %{ artist }', this.album.tracks.length) + let msg = this.$npgettext('Content/Album/Header.Title', 'Album containing %{ count } track, by %{ artist }', 'Album containing %{ count } tracks, by %{ artist }', this.album.tracks.length) return this.$gettextInterpolate(msg, {count: this.album.tracks.length, artist: this.album.artist.name}) } }, -- GitLab