Skip to content
Snippets Groups Projects
Commit 2cbb983b authored by Jo Vuit's avatar Jo Vuit
Browse files

Added string context

parent 86889e21
Branches
Tags
No related merge requests found
...@@ -37,15 +37,15 @@ ...@@ -37,15 +37,15 @@
{{ library.size | humanSize }} {{ library.size | humanSize }}
</span> </span>
<i class="music icon"></i> <i class="music icon"></i>
<translate :translate-params="{count: library.uploads_count}" :translate-n="library.uploads_count" translate-plural="%{ count } tracks">%{ count } track</translate> <translate :translate-context="'Content/Library/Card.List item'" :translate-params="{count: library.uploads_count}" :translate-n="library.uploads_count" translate-plural="%{ count } tracks">%{ count } track</translate>
</div> </div>
</div> </div>
<div class="ui bottom basic attached buttons"> <div class="ui bottom basic attached buttons">
<router-link :to="{name: 'content.libraries.detail.upload', params: {id: library.uuid}}" class="ui button"> <router-link :to="{name: 'content.libraries.detail.upload', params: {id: library.uuid}}" class="ui button">
<translate>Upload</translate> <translate :translate-context="'Content/Library/Card.Button.Label/Verb'">Upload</translate>
</router-link> </router-link>
<router-link :to="{name: 'content.libraries.detail', params: {id: library.uuid}}" exact class="ui button"> <router-link :to="{name: 'content.libraries.detail', params: {id: library.uuid}}" exact class="ui button">
<translate>Detail</translate> <translate :translate-context="'Content/Library/Card.Button.Label/Noun'">Details</translate>
</router-link> </router-link>
</div> </div>
</div> </div>
...@@ -55,10 +55,10 @@ export default { ...@@ -55,10 +55,10 @@ export default {
props: ['library'], props: ['library'],
computed: { computed: {
labels () { labels () {
let me = this.$gettext('Visibility: nobody except me') let me = this.$pgettext('Content/Library/Card.Help text', 'Visibility: nobody except me')
let instance = this.$gettext('Visibility: everyone on this instance') let instance = this.$pgettext('Content/Library/Card.Help text', 'Visibility: everyone on this instance')
let everyone = this.$gettext('Visibility: everyone, including other instances') let everyone = this.$pgettext('Content/Library/Card.Help text', 'Visibility: everyone, including other instances')
let size = this.$gettext('Total size of the files in this library') let size = this.$pgettext('Content/Library/Card.Help text', 'Total size of the files in this library')
return { return {
tooltips: { tooltips: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment