From 3bed93d6c6befe2517d409c5e72aeddf3c524d24 Mon Sep 17 00:00:00 2001 From: Jo Vuit <jo.vuitton@gmail.com> Date: Thu, 7 Feb 2019 16:15:50 +0100 Subject: [PATCH] Add context --- front/src/components/favorites/TrackFavoriteIcon.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/front/src/components/favorites/TrackFavoriteIcon.vue b/front/src/components/favorites/TrackFavoriteIcon.vue index 690dab21b6..7ba3f7fe47 100644 --- a/front/src/components/favorites/TrackFavoriteIcon.vue +++ b/front/src/components/favorites/TrackFavoriteIcon.vue @@ -1,8 +1,8 @@ <template> <button @click="$store.dispatch('favorites/toggle', track.id)" v-if="button" :class="['ui', 'pink', {'inverted': isFavorite}, {'favorited': isFavorite}, 'button']"> <i class="heart icon"></i> - <translate v-if="isFavorite">In favorites</translate> - <translate v-else>Add to favorites</translate> + <translate v-if="isFavorite" :translate-context="'Content/Track/Button.Message'">In favorites</translate> + <translate v-else :translate-context="'Content/Track/Button.Message'">Add to favorites</translate> </button> <button v-else @@ -23,9 +23,9 @@ export default { computed: { title () { if (this.isFavorite) { - return this.$gettext('Remove from favorites') + return this.$pgettext('*/Favorites/Icon.Tooltip/Verb', 'Remove from favorites') } else { - return this.$gettext('Add to favorites') + return this.$pgettext('*/Favorites/Icon.Tooltip/Verb', 'Add to favorites') } }, isFavorite () { -- GitLab