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 @@
@@ -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 @@
-
Search for some music
+
Search for some music
- Artists
+ Artists
- No artist matched your query
+ No artist matched your query
- Albums
+ Albums
- No album matched your query
+ No album matched your query
@@ -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
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 @@