Skip to content
Snippets Groups Projects
Commit 22749ea2 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Merge branch '662-favorites-List.vue' into 'develop'

Resolve "Add contexts to translatable strings"

See merge request funkwhale/funkwhale!584
parents d92f790e 95c43c2f
No related branches found
No related tags found
No related merge requests found
...@@ -434,6 +434,7 @@ This hierarchical structure is made of several parts: ...@@ -434,6 +434,7 @@ This hierarchical structure is made of several parts:
- ``Menu`` - ``Menu``
- ``Modal`` - ``Modal``
- ``Sidebar`` - ``Sidebar``
- ``Head``
- ``Popup`` - ``Popup``
- ``*`` for strings that are not tied to a specific location - ``*`` for strings that are not tied to a specific location
...@@ -447,6 +448,7 @@ This hierarchical structure is made of several parts: ...@@ -447,6 +448,7 @@ This hierarchical structure is made of several parts:
- ``Moderation`` - ``Moderation``
- ``Player`` - ``Player``
- ``Playlist`` - ``Playlist``
- ``Favorites``
- ``Notifications`` - ``Notifications``
- ``Radio`` - ``Radio``
- ``Settings`` - ``Settings``
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<section class="ui vertical center aligned stripe segment"> <section class="ui vertical center aligned stripe segment">
<div :class="['ui', {'active': isLoading}, 'inverted', 'dimmer']"> <div :class="['ui', {'active': isLoading}, 'inverted', 'dimmer']">
<div class="ui text loader"> <div class="ui text loader">
<translate>Loading your favorites…</translate> <translate :translate-context="'Content/Favorites/Message'">Loading your favorites…</translate>
</div> </div>
</div> </div>
<h2 v-if="results" class="ui center aligned icon header"> <h2 v-if="results" class="ui center aligned icon header">
...@@ -11,7 +11,8 @@ ...@@ -11,7 +11,8 @@
<translate <translate
translate-plural="%{ count } favorites" translate-plural="%{ count } favorites"
:translate-n="$store.state.favorites.count" :translate-n="$store.state.favorites.count"
:translate-params="{count: results.count}"> :translate-params="{count: results.count}"
:translate-context="'Content/Favorites/Title'">
1 favorite 1 favorite
</translate> </translate>
</h2> </h2>
...@@ -21,7 +22,7 @@ ...@@ -21,7 +22,7 @@
<div :class="['ui', {'loading': isLoading}, 'form']"> <div :class="['ui', {'loading': isLoading}, 'form']">
<div class="fields"> <div class="fields">
<div class="field"> <div class="field">
<label><translate>Ordering</translate></label> <label><translate :translate-context="'Content/Favorites/Dropdown.Title/Short, Name'">Ordering</translate></label>
<select class="ui dropdown" v-model="ordering"> <select class="ui dropdown" v-model="ordering">
<option v-for="option in orderingOptions" :value="option[0]"> <option v-for="option in orderingOptions" :value="option[0]">
{{ sharedLabels.filters[option[1]] }} {{ sharedLabels.filters[option[1]] }}
...@@ -29,14 +30,14 @@ ...@@ -29,14 +30,14 @@
</select> </select>
</div> </div>
<div class="field"> <div class="field">
<label><translate>Order</translate></label> <label><translate :translate-context="'Content/*/Dropdown.Label/Short, Name'">Order</translate></label>
<select class="ui dropdown" v-model="orderingDirection"> <select class="ui dropdown" v-model="orderingDirection">
<option value="+"><translate>Ascending</translate></option> <option value="+"><translate :translate-context="'Content/*/Dropdown/Short'">Ascending</translate></option>
<option value="-"><translate>Descending</translate></option> <option value="-"><translate :translate-context="'Content/*/Short'">Descending</translate></option>
</select> </select>
</div> </div>
<div class="field"> <div class="field">
<label><translate>Results per page</translate></label> <label><translate :translate-context="'Content/*/Dropdown.Label/Short, Name'">Results per page</translate></label>
<select class="ui dropdown" v-model="paginateBy"> <select class="ui dropdown" v-model="paginateBy">
<option :value="parseInt(12)">12</option> <option :value="parseInt(12)">12</option>
<option :value="parseInt(25)">25</option> <option :value="parseInt(25)">25</option>
...@@ -112,7 +113,7 @@ export default { ...@@ -112,7 +113,7 @@ export default {
computed: { computed: {
labels() { labels() {
return { return {
title: this.$gettext("Your Favorites") title: this.$pgettext('Head/Favorites/Title', 'Your Favorites')
} }
} }
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment