Skip to content
Snippets Groups Projects
Commit 0446a2b0 authored by Bat's avatar Bat
Browse files

i18n: federation views

parent b4b481cf
No related branches found
No related tags found
No related merge requests found
...@@ -3,16 +3,16 @@ ...@@ -3,16 +3,16 @@
<div class="ui secondary pointing menu"> <div class="ui secondary pointing menu">
<router-link <router-link
class="ui item" class="ui item"
:to="{name: 'federation.libraries.list'}">Libraries</router-link> :to="{name: 'federation.libraries.list'}">{{ $t('Libraries') }}</router-link>
<router-link <router-link
class="ui item" class="ui item"
:to="{name: 'federation.tracks.list'}">Tracks</router-link> :to="{name: 'federation.tracks.list'}">{{ $t('Tracks') }}</router-link>
<div class="ui secondary right menu"> <div class="ui secondary right menu">
<router-link <router-link
class="ui item" class="ui item"
:to="{name: 'federation.followers.list'}"> :to="{name: 'federation.followers.list'}">
Followers {{ $t('Followers') }}
<div class="ui teal label" title="Pending requests">{{ requestsCount }}</div> <div class="ui teal label" :title="$t('Pending requests')">{{ requestsCount }}</div>
</router-link> </router-link>
</div> </div>
</div> </div>
......
...@@ -19,18 +19,18 @@ ...@@ -19,18 +19,18 @@
<tbody> <tbody>
<tr> <tr>
<td > <td >
Follow status {{ $t('Follow status') }}
<span :data-tooltip="$t('This indicate if the remote library granted you access')"><i class="question circle icon"></i></span> <span :data-tooltip="$t('This indicate if the remote library granted you access')"><i class="question circle icon"></i></span>
</td> </td>
<td> <td>
<template v-if="object.follow.approved === null"> <template v-if="object.follow.approved === null">
<i class="loading icon"></i> Pending approval <i class="loading icon"></i> {{ $t('Pending approval') }}
</template> </template>
<template v-else-if="object.follow.approved === true"> <template v-else-if="object.follow.approved === true">
<i class="check icon"></i> Following <i class="check icon"></i> {{ $t('Following') }}
</template> </template>
<template v-else-if="object.follow.approved === false"> <template v-else-if="object.follow.approved === false">
<i class="x icon"></i> Not following <i class="x icon"></i> {{ $t('Not following') }}
</template> </template>
</td> </td>
<td> <td>
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
</tr> </tr>
<tr> <tr>
<td> <td>
Federation {{ $t('Federation') }}
<span :data-tooltip="$t('Use this flag to enable/disable federation with this library')"><i class="question circle icon"></i></span> <span :data-tooltip="$t('Use this flag to enable/disable federation with this library')"><i class="question circle icon"></i></span>
</td> </td>
<td> <td>
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
</tr> </tr>
<tr> <tr>
<td> <td>
Auto importing {{ $t('Auto importing') }}
<span :data-tooltip="$t('When enabled, auto importing will automatically import new tracks published in this library')"><i class="question circle icon"></i></span> <span :data-tooltip="$t('When enabled, auto importing will automatically import new tracks published in this library')"><i class="question circle icon"></i></span>
</td> </td>
<td> <td>
...@@ -82,14 +82,14 @@ ...@@ -82,14 +82,14 @@
</tr> </tr>
--> -->
<tr> <tr>
<td>Library size</td> <td>{{ $t('Library size') }}</td>
<td> <td>
{{ object.tracks_count }} tracks {{ $t('{%count%} tracks', { count: object.tracks_count }) }}
</td> </td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>Last fetched</td> <td>{{ $t('Last fetched') }}</td>
<td> <td>
<human-date v-if="object.fetched_date" :date="object.fetched_date"></human-date> <human-date v-if="object.fetched_date" :date="object.fetched_date"></human-date>
<template v-else>Never</template> <template v-else>Never</template>
...@@ -97,10 +97,10 @@ ...@@ -97,10 +97,10 @@
@click="scan" @click="scan"
v-if="!scanTrigerred" v-if="!scanTrigerred"
:class="['ui', 'basic', {loading: isScanLoading}, 'button']"> :class="['ui', 'basic', {loading: isScanLoading}, 'button']">
<i class="sync icon"></i> Trigger scan <i class="sync icon"></i> {{ $t('Trigger scan') }}
</button> </button>
<button v-else class="ui success button"> <button v-else class="ui success button">
<i class="check icon"></i> Scan triggered! <i class="check icon"></i> {{ $t('Scan triggered!') }}
</button> </button>
</td> </td>
...@@ -110,10 +110,10 @@ ...@@ -110,10 +110,10 @@
</table> </table>
</div> </div>
<div class="ui hidden divider"></div> <div class="ui hidden divider"></div>
<button @click="fetchData" class="ui basic button">Refresh</button> <button @click="fetchData" class="ui basic button">{{ $t('Refresh') }}</button>
</div> </div>
<div class="ui vertical stripe segment"> <div class="ui vertical stripe segment">
<h2>Tracks available in this library</h2> <h2>{{ $t('Tracks available in this library') }}</h2>
<library-track-table v-if="!isLoading" :filters="{library: id}"></library-track-table> <library-track-table v-if="!isLoading" :filters="{library: id}"></library-track-table>
</div> </div>
</template> </template>
......
<template> <template>
<div v-title="'Followers'"> <div v-title="'Followers'">
<div class="ui vertical stripe segment"> <div class="ui vertical stripe segment">
<h2 class="ui header">Browsing followers</h2> <h2 class="ui header">{{ $t('Browsing followers') }}</h2>
<p> <p>
Be careful when accepting follow requests, as it means the follower {{ $t('Be careful when accepting follow requests, as it means the follower will have access to your entire library.') }}
will have access to your entire library.
</p> </p>
<div class="ui hidden divider"></div> <div class="ui hidden divider"></div>
<library-follow-table></library-follow-table> <library-follow-table></library-follow-table>
......
<template> <template>
<div v-title="'Libraries'"> <div v-title="'Libraries'">
<div class="ui vertical stripe segment"> <div class="ui vertical stripe segment">
<h2 class="ui header">Browsing libraries</h2> <h2 class="ui header">{{ $t('Browsing libraries') }}</h2>
<router-link <router-link
class="ui basic green button" class="ui basic green button"
:to="{name: 'federation.libraries.scan'}"> :to="{name: 'federation.libraries.scan'}">
<i class="plus icon"></i> <i class="plus icon"></i>
Add a new library {{ $t('Add a new library') }}
</router-link> </router-link>
<div class="ui hidden divider"></div> <div class="ui hidden divider"></div>
<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>Search</label> <label>{{ $t('Search') }}</label>
<input type="text" v-model="query" placeholder="Enter an library domain name..."/> <input type="text" v-model="query" placeholder="Enter an library domain name..."/>
</div> </div>
<div class="field"> <div class="field">
<label>Ordering</label> <label>{{ $t('Ordering') }}</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]">
{{ option[1] }} {{ option[1] }}
...@@ -24,14 +24,14 @@ ...@@ -24,14 +24,14 @@
</select> </select>
</div> </div>
<div class="field"> <div class="field">
<label>Ordering direction</label> <label>{{ $t('Ordering direction') }}</label>
<select class="ui dropdown" v-model="orderingDirection"> <select class="ui dropdown" v-model="orderingDirection">
<option value="">Ascending</option> <option value="">{{ $t('Ascending') }}</option>
<option value="-">Descending</option> <option value="-">{{ $t('Descending') }}</option>
</select> </select>
</div> </div>
<div class="field"> <div class="field">
<label>Results per page</label> <label>{{ $t('Results per page') }}</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>
......
<template> <template>
<div v-title="'Federated tracks'"> <div v-title="'Federated tracks'">
<div class="ui vertical stripe segment"> <div class="ui vertical stripe segment">
<h2 class="ui header">Browsing federated tracks</h2> <h2 class="ui header">{{ $t('Browsing federated tracks') }}</h2>
<div class="ui hidden divider"></div> <div class="ui hidden divider"></div>
<library-track-table :show-library="true"></library-track-table> <library-track-table :show-library="true"></library-track-table>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment