diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index f92d73438..05254b76d 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -442,6 +442,7 @@ This hierarchical structure is made of several parts: - ``Admin`` - ``Album`` - ``Artist`` + - ``Embed`` - ``Home`` - ``Login`` - ``Library`` @@ -451,6 +452,7 @@ This hierarchical structure is made of several parts: - ``Favorites`` - ``Notifications`` - ``Radio`` + - ``Search`` - ``Settings`` - ``Signup`` - ``Track`` diff --git a/front/src/components/audio/EmbedWizard.vue b/front/src/components/audio/EmbedWizard.vue index 7a50ffa54..f919ec5cd 100644 --- a/front/src/components/audio/EmbedWizard.vue +++ b/front/src/components/audio/EmbedWizard.vue @@ -4,22 +4,22 @@
- -

Leave empty for a responsive widget

+ +

Leave empty for a responsive widget

- - -

Copy/paste this code in your website HTML

+ + +

Copy/paste this code in your website HTML

@@ -27,7 +27,7 @@
-

Preview

+

Preview

diff --git a/front/src/components/audio/PlayButton.vue b/front/src/components/audio/PlayButton.vue index 425d0a1d7..a84ee67d5 100644 --- a/front/src/components/audio/PlayButton.vue +++ b/front/src/components/audio/PlayButton.vue @@ -7,22 +7,22 @@ :disabled="!playable" :class="buttonClasses.concat(['ui', {loading: isLoading}, {'mini': discrete}, {disabled: !playable}])"> - +
diff --git a/front/src/components/audio/Player.vue b/front/src/components/audio/Player.vue index 575f68736..5df3248bf 100644 --- a/front/src/components/audio/Player.vue +++ b/front/src/components/audio/Player.vue @@ -62,14 +62,14 @@
- We cannot load this track + The track cannot be loaded

- The next track will play automatically in a few seconds… + The next track will play automatically in a few seconds…

- You may have a connectivity issue. + You may have a connectivity issue.

@@ -280,7 +280,7 @@ export default { return } let self = this - let msg = this.$gettext("Queue shuffled!") + let msg = this.$pgettext('Content/Queue/Message', "Queue shuffled!") this.isShuffling = true setTimeout(() => { self.$store.dispatch("queue/shuffle", () => { @@ -346,24 +346,24 @@ export default { progress: "player/progress" }), labels() { - let audioPlayer = this.$gettext("Media player") - let previousTrack = this.$gettext("Previous track") - let play = this.$gettext("Play track") - let pause = this.$gettext("Pause track") - let next = this.$gettext("Next track") - let unmute = this.$gettext("Unmute") - let mute = this.$gettext("Mute") - let loopingDisabled = this.$gettext( + let audioPlayer = this.$pgettext('Sidebar/Player/Hidden text', "Media player") + let previousTrack = this.$pgettext('Sidebar/Player/Icon.Tooltip', "Previous track") + let play = this.$pgettext('Sidebar/Player/Icon.Tooltip/Verb', "Play track") + let pause = this.$pgettext('Sidebar/Player/Icon.Tooltip/Verb', "Pause track") + let next = this.$pgettext('Sidebar/Player/Icon.Tooltip', "Next track") + let unmute = this.$pgettext('Sidebar/Player/Icon.Tooltip/Verb', "Unmute") + let mute = this.$pgettext('Sidebar/Player/Icon.Tooltip/Verb', "Mute") + let loopingDisabled = this.$pgettext('Sidebar/Player/Icon.Tooltip', "Looping disabled. Click to switch to single-track looping." ) - let loopingSingle = this.$gettext( + let loopingSingle = this.$pgettext('Sidebar/Player/Icon.Tooltip', "Looping on a single track. Click to switch to whole queue looping." ) - let loopingWhole = this.$gettext( + let loopingWhole = this.$pgettext('Sidebar/Player/Icon.Tooltip', "Looping on whole queue. Click to disable looping." ) - let shuffle = this.$gettext("Shuffle your queue") - let clear = this.$gettext("Clear your queue") + let shuffle = this.$pgettext('Sidebar/Player/Icon.Tooltip/Verb', "Shuffle your queue") + let clear = this.$pgettext('Sidebar/Player/Icon.Tooltip/Verb', "Clear your queue") return { audioPlayer, previousTrack, diff --git a/front/src/components/audio/Search.vue b/front/src/components/audio/Search.vue index dd250ca09..7c3c540ca 100644 --- a/front/src/components/audio/Search.vue +++ b/front/src/components/audio/Search.vue @@ -1,6 +1,6 @@ @@ -62,7 +62,7 @@ export default { computed: { labels () { return { - searchPlaceholder: this.$gettext('Artist, album, track…') + searchPlaceholder: this.$pgettext('*/Search/Input.Placeholder', 'Artist, album, track…') } } }, diff --git a/front/src/components/audio/SearchBar.vue b/front/src/components/audio/SearchBar.vue index 534ac0ac4..c1190f474 100644 --- a/front/src/components/audio/SearchBar.vue +++ b/front/src/components/audio/SearchBar.vue @@ -17,14 +17,14 @@ export default { computed: { labels () { return { - placeholder: this.$gettext('Search for artists, albums, tracks…') + placeholder: this.$pgettext('Sidebar/Search/Input.Placeholder', 'Search for artists, albums, tracks…') } } }, mounted () { - let artistLabel = this.$gettext('Artist') - let albumLabel = this.$gettext('Album') - let trackLabel = this.$gettext('Track') + let artistLabel = this.$pgettext('Sidebar/Search/Title', 'Artist') + let albumLabel = this.$pgettext('Sidebar/Search/Title', 'Album') + let trackLabel = this.$pgettext('Sidebar/Search/Title', 'Track') let self = this jQuery(this.$el).search({ type: 'category', diff --git a/front/src/components/audio/album/Card.vue b/front/src/components/audio/album/Card.vue index 2f19d7fbb..75505d6f9 100644 --- a/front/src/components/audio/album/Card.vue +++ b/front/src/components/audio/album/Card.vue @@ -11,7 +11,7 @@
- By %{ artist } + By %{ artist } – {{ album.release_date | year }}
@@ -36,21 +36,21 @@
- Show %{ count } more track + Show %{ count } more track - Collapse + Collapse
- Play all + Play all - %{ count } track + %{ count } track
diff --git a/front/src/components/audio/artist/Card.vue b/front/src/components/audio/artist/Card.vue index 1876c42c0..82af12524 100644 --- a/front/src/components/audio/artist/Card.vue +++ b/front/src/components/audio/artist/Card.vue @@ -28,10 +28,10 @@
- Show 1 more album + Show 1 more album - Collapse + Collapse
@@ -39,10 +39,10 @@
- 1 album + 1 album - Play all + Play all
diff --git a/front/src/components/audio/track/Row.vue b/front/src/components/audio/track/Row.vue index d3b7dc734..e3005c388 100644 --- a/front/src/components/audio/track/Row.vue +++ b/front/src/components/audio/track/Row.vue @@ -38,7 +38,7 @@ {{ time.parse(track.uploads[0].duration) }} - N/A + N/A diff --git a/front/src/components/audio/track/Table.vue b/front/src/components/audio/track/Table.vue index 937025807..1134e88a8 100644 --- a/front/src/components/audio/track/Table.vue +++ b/front/src/components/audio/track/Table.vue @@ -4,10 +4,10 @@ - Title - Artist - Album - Duration + Title + Artist + Album + Duration diff --git a/front/src/components/playlists/Card.vue b/front/src/components/playlists/Card.vue index 344eb5fbf..70ac34097 100644 --- a/front/src/components/playlists/Card.vue +++ b/front/src/components/playlists/Card.vue @@ -16,7 +16,7 @@ | - diff --git a/front/src/components/playlists/Editor.vue b/front/src/components/playlists/Editor.vue index 5b5311f14..fee9ef6b0 100644 --- a/front/src/components/playlists/Editor.vue +++ b/front/src/components/playlists/Editor.vue @@ -2,16 +2,16 @@

- Playlist editor + Playlist editor

@@ -29,7 +29,7 @@ :class="['ui', {disabled: queueTracks.length === 0}, 'labeled', 'icon', 'button']" :title="labels.copyTitle"> - @@ -38,16 +38,16 @@
- Clear playlist + Clear playlist

- Do you want to clear the playlist "%{ playlist }"? + Do you want to clear the playlist "%{ playlist }"?

-

This will remove all tracks from this playlist and cannot be undone.

-

Clear playlist

+

This will remove all tracks from this playlist and cannot be undone.

+

Clear playlist