Added context strings

merge-requests/622/head
Jo Vuit 2019-02-11 15:54:37 +01:00
rodzic 279c941ee1
commit 3ac2feca23
1 zmienionych plików z 11 dodań i 11 usunięć

Wyświetl plik

@ -1,13 +1,13 @@
<template> <template>
<modal @update:show="update" :show="$store.state.playlists.showModal"> <modal @update:show="update" :show="$store.state.playlists.showModal">
<div class="header"> <div class="header">
<translate>Manage playlists</translate> <translate :translate-context="'Popup/Playlist/Title/Verb'">Manage playlists</translate>
</div> </div>
<div class="scrolling content"> <div class="scrolling content">
<div class="description"> <div class="description">
<template v-if="track"> <template v-if="track">
<h4 class="ui header"><translate>Current track</translate></h4> <h4 class="ui header"><translate :translate-context="'Popup/Playlist/Title'">Current track</translate></h4>
<translate <translate :translate-context="'Popup/Playlist/Paragraph'"
v-translate="{artist: track.artist.name, title: track.title}" v-translate="{artist: track.artist.name, title: track.title}"
:translate-params="{artist: track.artist.name, title: track.title}"> :translate-params="{artist: track.artist.name, title: track.title}">
"%{ title }", by %{ artist } "%{ title }", by %{ artist }
@ -18,20 +18,20 @@
<playlist-form :key="formKey"></playlist-form> <playlist-form :key="formKey"></playlist-form>
<div class="ui divider"></div> <div class="ui divider"></div>
<div v-if="errors.length > 0" class="ui negative message"> <div v-if="errors.length > 0" class="ui negative message">
<div class="header"><translate>We cannot add the track to a playlist</translate></div> <div class="header"><translate :translate-context="'Popup/Playlist/Error message.Title'">The track can't be added to a playlist</translate></div>
<ul class="list"> <ul class="list">
<li v-for="error in errors">{{ error }}</li> <li v-for="error in errors">{{ error }}</li>
</ul> </ul>
</div> </div>
</div> </div>
<h4 class="ui header"><translate>Available playlists</translate></h4> <h4 class="ui header"><translate :translate-context="'Popup/Playlist/Title'">Available playlists</translate></h4>
<table class="ui unstackable very basic table"> <table class="ui unstackable very basic table">
<thead> <thead>
<tr> <tr>
<th></th> <th></th>
<th><translate>Name</translate></th> <th><translate :translate-context="'*/*/Table.Label'">Name</translate></th>
<th class="sorted descending"><translate>Last modification</translate></th> <th class="sorted descending"><translate :translate-context="'Popup/Playlist/Table.Label/Short'">Last modification</translate></th>
<th><translate>Tracks</translate></th> <th><translate :translate-context="'*/*/Table.Label'">Tracks</translate></th>
<th></th> <th></th>
</tr> </tr>
</thead> </thead>
@ -52,7 +52,7 @@
class="ui green icon basic small right floated button" class="ui green icon basic small right floated button"
:title="labels.addToPlaylist" :title="labels.addToPlaylist"
@click="addToPlaylist(playlist.id)"> @click="addToPlaylist(playlist.id)">
<i class="plus icon"></i> <translate>Add track</translate> <i class="plus icon"></i> <translate :translate-context="'Popup/Playlist/Table.Button.Label/Verb'">Add track</translate>
</div> </div>
</td> </td>
</tr> </tr>
@ -61,7 +61,7 @@
</div> </div>
</div> </div>
<div class="actions"> <div class="actions">
<div class="ui cancel button"><translate>Cancel</translate></div> <div class="ui cancel button"><translate :translate-context="'Popup/Playlist/Button.Label'">Cancel</translate></div>
</div> </div>
</modal> </modal>
</template> </template>
@ -113,7 +113,7 @@ export default {
}), }),
labels () { labels () {
return { return {
addToPlaylist: this.$gettext('Add to this playlist') addToPlaylist: this.$pgettext('Popup/Playlist/Table.Button.Tooltip/Verb', 'Add to this playlist')
} }
}, },
sortedPlaylists () { sortedPlaylists () {