Add context
This commit is contained in:
parent
711a667d26
commit
3bed93d6c6
|
@ -1,8 +1,8 @@
|
||||||
<template>
|
<template>
|
||||||
<button @click="$store.dispatch('favorites/toggle', track.id)" v-if="button" :class="['ui', 'pink', {'inverted': isFavorite}, {'favorited': isFavorite}, 'button']">
|
<button @click="$store.dispatch('favorites/toggle', track.id)" v-if="button" :class="['ui', 'pink', {'inverted': isFavorite}, {'favorited': isFavorite}, 'button']">
|
||||||
<i class="heart icon"></i>
|
<i class="heart icon"></i>
|
||||||
<translate v-if="isFavorite">In favorites</translate>
|
<translate v-if="isFavorite" :translate-context="'Content/Track/Button.Message'">In favorites</translate>
|
||||||
<translate v-else>Add to favorites</translate>
|
<translate v-else :translate-context="'Content/Track/Button.Message'">Add to favorites</translate>
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
v-else
|
v-else
|
||||||
|
@ -23,9 +23,9 @@ export default {
|
||||||
computed: {
|
computed: {
|
||||||
title () {
|
title () {
|
||||||
if (this.isFavorite) {
|
if (this.isFavorite) {
|
||||||
return this.$gettext('Remove from favorites')
|
return this.$pgettext('*/Favorites/Icon.Tooltip/Verb', 'Remove from favorites')
|
||||||
} else {
|
} else {
|
||||||
return this.$gettext('Add to favorites')
|
return this.$pgettext('*/Favorites/Icon.Tooltip/Verb', 'Add to favorites')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
isFavorite () {
|
isFavorite () {
|
||||||
|
|
Loading…
Reference in New Issue