Added context strings
This commit is contained in:
parent
5f9be0b330
commit
7d19392d62
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<div>
|
||||
<h2><translate>Search for some music</translate></h2>
|
||||
<h2><translate :translate-context="'Content/Search/Title'">Search for some music</translate></h2>
|
||||
<div :class="['ui', {'loading': isLoading }, 'search']">
|
||||
<div class="ui icon big input">
|
||||
<i class="search icon"></i>
|
||||
|
@ -8,22 +8,22 @@
|
|||
</div>
|
||||
</div>
|
||||
<template v-if="query.length > 0">
|
||||
<h3 class="ui title"><translate>Artists</translate></h3>
|
||||
<h3 class="ui title"><translate :translate-context="'Content/Search/Title'">Artists</translate></h3>
|
||||
<div v-if="results.artists.length > 0" class="ui stackable three column grid">
|
||||
<div class="column" :key="artist.id" v-for="artist in results.artists">
|
||||
<artist-card class="fluid" :artist="artist" ></artist-card>
|
||||
</div>
|
||||
</div>
|
||||
<p v-else><translate>No artist matched your query</translate></p>
|
||||
<p v-else><translate :translate-context="'Content/Search/Paragraph'">No artist matched your query</translate></p>
|
||||
</template>
|
||||
<template v-if="query.length > 0">
|
||||
<h3 class="ui title"><translate>Albums</translate></h3>
|
||||
<h3 class="ui title"><translate :translate-context="'Content/Search/Title'">Albums</translate></h3>
|
||||
<div v-if="results.albums.length > 0" class="ui stackable three column grid">
|
||||
<div class="column" :key="album.id" v-for="album in results.albums">
|
||||
<album-card class="fluid" :album="album" ></album-card>
|
||||
</div>
|
||||
</div>
|
||||
<p v-else><translate>No album matched your query</translate></p>
|
||||
<p v-else><translate :translate-context="'Content/Search/Paragraph'">No album matched your query</translate></p>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -62,7 +62,7 @@ export default {
|
|||
computed: {
|
||||
labels () {
|
||||
return {
|
||||
searchPlaceholder: this.$gettext('Artist, album, track…')
|
||||
searchPlaceholder: this.$pgettext('*/Search/Input.Placeholder', 'Artist, album, track…')
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue