mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 04:39:25 +02:00
Use <translate> instead of to avoid extraction issues
This commit is contained in:
parent
0f997f897c
commit
0cfefe7a19
74 changed files with 507 additions and 507 deletions
|
@ -3,11 +3,11 @@
|
|||
<div class="ui inline form">
|
||||
<div class="fields">
|
||||
<div class="ui field">
|
||||
<label>{{ $gettext('Search') }}</label>
|
||||
<label><translate>Search</translate></label>
|
||||
<input type="text" v-model="search" placeholder="Search by title, artist, domain..." />
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>{{ $gettext('Ordering') }}</label>
|
||||
<label><translate>Ordering</translate></label>
|
||||
<select class="ui dropdown" v-model="ordering">
|
||||
<option v-for="option in orderingOptions" :value="option[0]">
|
||||
{{ option[1] }}
|
||||
|
@ -15,7 +15,7 @@
|
|||
</select>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>{{ $gettext('Ordering direction') }}</label>
|
||||
<label><translate>Ordering direction</translate></label>
|
||||
<select class="ui dropdown" v-model="orderingDirection">
|
||||
<option value="+">Ascending</option>
|
||||
<option value="-">Descending</option>
|
||||
|
@ -35,14 +35,14 @@
|
|||
:action-url="'manage/library/track-files/action/'"
|
||||
:filters="actionFilters">
|
||||
<template slot="header-cells">
|
||||
<th>{{ $gettext('Title') }}</th>
|
||||
<th>{{ $gettext('Artist') }}</th>
|
||||
<th>{{ $gettext('Album') }}</th>
|
||||
<th>{{ $gettext('Import date') }}</th>
|
||||
<th>{{ $gettext('Type') }}</th>
|
||||
<th>{{ $gettext('Bitrate') }}</th>
|
||||
<th>{{ $gettext('Duration') }}</th>
|
||||
<th>{{ $gettext('Size') }}</th>
|
||||
<th><translate>Title</translate></th>
|
||||
<th><translate>Artist</translate></th>
|
||||
<th><translate>Album</translate></th>
|
||||
<th><translate>Import date</translate></th>
|
||||
<th><translate>Type</translate></th>
|
||||
<th><translate>Bitrate</translate></th>
|
||||
<th><translate>Duration</translate></th>
|
||||
<th><translate>Size</translate></th>
|
||||
</template>
|
||||
<template slot="row-cells" slot-scope="scope">
|
||||
<td>
|
||||
|
@ -61,25 +61,25 @@
|
|||
{{ scope.obj.audio_mimetype }}
|
||||
</td>
|
||||
<td v-else>
|
||||
{{ $gettext('N/A') }}
|
||||
<translate>N/A</translate>
|
||||
</td>
|
||||
<td v-if="scope.obj.bitrate">
|
||||
{{ scope.obj.bitrate | humanSize }}/s
|
||||
</td>
|
||||
<td v-else>
|
||||
{{ $gettext('N/A') }}
|
||||
<translate>N/A</translate>
|
||||
</td>
|
||||
<td v-if="scope.obj.duration">
|
||||
{{ time.parse(scope.obj.duration) }}
|
||||
</td>
|
||||
<td v-else>
|
||||
{{ $gettext('N/A') }}
|
||||
<translate>N/A</translate>
|
||||
</td>
|
||||
<td v-if="scope.obj.size">
|
||||
{{ scope.obj.size | humanSize }}
|
||||
</td>
|
||||
<td v-else>
|
||||
{{ $gettext('N/A') }}
|
||||
<translate>N/A</translate>
|
||||
</td>
|
||||
</template>
|
||||
</action-table>
|
||||
|
|
|
@ -3,11 +3,11 @@
|
|||
<div class="ui inline form">
|
||||
<div class="fields">
|
||||
<div class="ui field">
|
||||
<label>{{ $gettext('Search') }}</label>
|
||||
<label><translate>Search</translate></label>
|
||||
<input type="text" v-model="search" placeholder="Search by artist, username, comment..." />
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>{{ $gettext('Ordering') }}</label>
|
||||
<label><translate>Ordering</translate></label>
|
||||
<select class="ui dropdown" v-model="ordering">
|
||||
<option v-for="option in orderingOptions" :value="option[0]">
|
||||
{{ option[1] }}
|
||||
|
@ -15,7 +15,7 @@
|
|||
</select>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>{{ $gettext('Ordering direction') }}</label>
|
||||
<label><translate>Ordering direction</translate></label>
|
||||
<select class="ui dropdown" v-model="orderingDirection">
|
||||
<option value="+">Ascending</option>
|
||||
<option value="-">Descending</option>
|
||||
|
@ -24,11 +24,11 @@
|
|||
<div class="field">
|
||||
<label>{{ $gettext("Status") }}</label>
|
||||
<select class="ui dropdown" v-model="status">
|
||||
<option :value="null">{{ $gettext('All') }}</option>
|
||||
<option :value="'pending'">{{ $gettext('Pending') }}</option>
|
||||
<option :value="'accepted'">{{ $gettext('Accepted') }}</option>
|
||||
<option :value="'imported'">{{ $gettext('Imported') }}</option>
|
||||
<option :value="'closed'">{{ $gettext('Closed') }}</option>
|
||||
<option :value="null"><translate>All</translate></option>
|
||||
<option :value="'pending'"><translate>Pending</translate></option>
|
||||
<option :value="'accepted'"><translate>Accepted</translate></option>
|
||||
<option :value="'imported'"><translate>Imported</translate></option>
|
||||
<option :value="'closed'"><translate>Closed</translate></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -45,24 +45,24 @@
|
|||
:action-url="'manage/requests/import-requests/action/'"
|
||||
:filters="actionFilters">
|
||||
<template slot="header-cells">
|
||||
<th>{{ $gettext('User') }}</th>
|
||||
<th>{{ $gettext('Status') }}</th>
|
||||
<th>{{ $gettext('Artist') }}</th>
|
||||
<th>{{ $gettext('Albums') }}</th>
|
||||
<th>{{ $gettext('Comment') }}</th>
|
||||
<th>{{ $gettext('Creation date') }}</th>
|
||||
<th>{{ $gettext('Import date') }}</th>
|
||||
<th>{{ $gettext('Actions') }}</th>
|
||||
<th><translate>User</translate></th>
|
||||
<th><translate>Status</translate></th>
|
||||
<th><translate>Artist</translate></th>
|
||||
<th><translate>Albums</translate></th>
|
||||
<th><translate>Comment</translate></th>
|
||||
<th><translate>Creation date</translate></th>
|
||||
<th><translate>Import date</translate></th>
|
||||
<th><translate>Actions</translate></th>
|
||||
</template>
|
||||
<template slot="row-cells" slot-scope="scope">
|
||||
<td>
|
||||
{{ scope.obj.user.username }}
|
||||
</td>
|
||||
<td>
|
||||
<span class="ui green basic label" v-if="scope.obj.status === 'imported'">{{ $gettext('Imported') }}</span>
|
||||
<span class="ui pink basic label" v-else-if="scope.obj.status === 'accepted'">{{ $gettext('Accepted') }}</span>
|
||||
<span class="ui yellow basic label" v-else-if="scope.obj.status === 'pending'">{{ $gettext('Pending') }}</span>
|
||||
<span class="ui red basic label" v-else-if="scope.obj.status === 'closed'">{{ $gettext('Closed') }}</span>
|
||||
<span class="ui green basic label" v-if="scope.obj.status === 'imported'"><translate>Imported</translate></span>
|
||||
<span class="ui pink basic label" v-else-if="scope.obj.status === 'accepted'"><translate>Accepted</translate></span>
|
||||
<span class="ui yellow basic label" v-else-if="scope.obj.status === 'pending'"><translate>Pending</translate></span>
|
||||
<span class="ui red basic label" v-else-if="scope.obj.status === 'closed'"><translate>Closed</translate></span>
|
||||
</td>
|
||||
<td>
|
||||
<span :title="scope.obj.artist_name">{{ scope.obj.artist_name|truncate(30) }}</span>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<div>
|
||||
<form class="ui form" @submit.prevent="submit">
|
||||
<div v-if="errors.length > 0" class="ui negative message">
|
||||
<div class="header">{{ $gettext('Error while creating invitation') }}</div>
|
||||
<div class="header"><translate>Error while creating invitation</translate></div>
|
||||
<ul class="list">
|
||||
<li v-for="error in errors">{{ error }}</li>
|
||||
</ul>
|
||||
|
@ -14,7 +14,7 @@
|
|||
</div>
|
||||
<div class="ui field">
|
||||
<button :class="['ui', {loading: isLoading}, 'button']" :disabled="isLoading" type="submit">
|
||||
{{ $gettext('Get a new invitation') }}
|
||||
<translate>Get a new invitation</translate>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -24,8 +24,8 @@
|
|||
<table class="ui ui basic table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ $gettext('Code') }}</th>
|
||||
<th>{{ $gettext('Share link') }}</th>
|
||||
<th><translate>Code</translate></th>
|
||||
<th><translate>Share link</translate></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
@ -35,7 +35,7 @@
|
|||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<button class="ui basic button" @click="invitations = []">{{ $gettext('Clear') }}</button>
|
||||
<button class="ui basic button" @click="invitations = []"><translate>Clear</translate></button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<div class="ui inline form">
|
||||
<div class="fields">
|
||||
<div class="ui field">
|
||||
<label>{{ $gettext('Search') }}</label>
|
||||
<label><translate>Search</translate></label>
|
||||
<input type="text" v-model="search" placeholder="Search by username, email, code..." />
|
||||
</div>
|
||||
<div class="field">
|
||||
|
@ -17,9 +17,9 @@
|
|||
<div class="field">
|
||||
<label>{{ $gettext("Status") }}</label>
|
||||
<select class="ui dropdown" v-model="isOpen">
|
||||
<option :value="null">{{ $gettext('All') }}</option>
|
||||
<option :value="true">{{ $gettext('Open') }}</option>
|
||||
<option :value="false">{{ $gettext('Expired/used') }}</option>
|
||||
<option :value="null"><translate>All</translate></option>
|
||||
<option :value="true"><translate>Open</translate></option>
|
||||
<option :value="false"><translate>Expired/used</translate></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -36,20 +36,20 @@
|
|||
:action-url="'manage/users/invitations/action/'"
|
||||
:filters="actionFilters">
|
||||
<template slot="header-cells">
|
||||
<th>{{ $gettext('Owner') }}</th>
|
||||
<th>{{ $gettext('Status') }}</th>
|
||||
<th>{{ $gettext('Creation date') }}</th>
|
||||
<th>{{ $gettext('Expiration date') }}</th>
|
||||
<th>{{ $gettext('Code') }}</th>
|
||||
<th><translate>Owner</translate></th>
|
||||
<th><translate>Status</translate></th>
|
||||
<th><translate>Creation date</translate></th>
|
||||
<th><translate>Expiration date</translate></th>
|
||||
<th><translate>Code</translate></th>
|
||||
</template>
|
||||
<template slot="row-cells" slot-scope="scope">
|
||||
<td>
|
||||
<router-link :to="{name: 'manage.users.users.detail', params: {id: scope.obj.id }}">{{ scope.obj.owner.username }}</router-link>
|
||||
</td>
|
||||
<td>
|
||||
<span v-if="scope.obj.users.length > 0" class="ui green basic label">{{ $gettext('Used') }}</span>
|
||||
<span v-else-if="moment().isAfter(scope.obj.expiration_date)" class="ui red basic label">{{ $gettext('Expired') }}</span>
|
||||
<span v-else class="ui basic label">{{ $gettext('Not used') }}</span>
|
||||
<span v-if="scope.obj.users.length > 0" class="ui green basic label"><translate>Used</translate></span>
|
||||
<span v-else-if="moment().isAfter(scope.obj.expiration_date)" class="ui red basic label"><translate>Expired</translate></span>
|
||||
<span v-else class="ui basic label"><translate>Not used</translate></span>
|
||||
</td>
|
||||
<td>
|
||||
<human-date :date="scope.obj.creation_date"></human-date>
|
||||
|
|
|
@ -3,11 +3,11 @@
|
|||
<div class="ui inline form">
|
||||
<div class="fields">
|
||||
<div class="ui field">
|
||||
<label>{{ $gettext('Search') }}</label>
|
||||
<label><translate>Search</translate></label>
|
||||
<input type="text" v-model="search" placeholder="Search by username, email, name..." />
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>{{ $gettext('Ordering') }}</label>
|
||||
<label><translate>Ordering</translate></label>
|
||||
<select class="ui dropdown" v-model="ordering">
|
||||
<option v-for="option in orderingOptions" :value="option[0]">
|
||||
{{ option[1] }}
|
||||
|
@ -15,10 +15,10 @@
|
|||
</select>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>{{ $gettext('Ordering direction') }}</label>
|
||||
<label><translate>Ordering direction</translate></label>
|
||||
<select class="ui dropdown" v-model="orderingDirection">
|
||||
<option value="+">{{ $gettext('Ascending') }}</option>
|
||||
<option value="-">{{ $gettext('Descending') }}</option>
|
||||
<option value="+"><translate>Ascending</translate></option>
|
||||
<option value="-"><translate>Descending</translate></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -35,13 +35,13 @@
|
|||
:action-url="'manage/library/track-files/action/'"
|
||||
:filters="actionFilters">
|
||||
<template slot="header-cells">
|
||||
<th>{{ $gettext('Username') }}</th>
|
||||
<th>{{ $gettext('Email') }}</th>
|
||||
<th>{{ $gettext('Account status') }}</th>
|
||||
<th>{{ $gettext('Sign-up') }}</th>
|
||||
<th>{{ $gettext('Last activity') }}</th>
|
||||
<th>{{ $gettext('Permissions') }}</th>
|
||||
<th>{{ $gettext('Status') }}</th>
|
||||
<th><translate>Username</translate></th>
|
||||
<th><translate>Email</translate></th>
|
||||
<th><translate>Account status</translate></th>
|
||||
<th><translate>Sign-up</translate></th>
|
||||
<th><translate>Last activity</translate></th>
|
||||
<th><translate>Permissions</translate></th>
|
||||
<th><translate>Status</translate></th>
|
||||
</template>
|
||||
<template slot="row-cells" slot-scope="scope">
|
||||
<td>
|
||||
|
@ -59,7 +59,7 @@
|
|||
</td>
|
||||
<td>
|
||||
<human-date v-if="scope.obj.last_activity" :date="scope.obj.last_activity"></human-date>
|
||||
<template v-else>{{ $gettext('N/A') }}</template>
|
||||
<template v-else><translate>N/A</translate></template>
|
||||
</td>
|
||||
<td>
|
||||
<template v-for="p in permissions">
|
||||
|
@ -67,9 +67,9 @@
|
|||
</template>
|
||||
</td>
|
||||
<td>
|
||||
<span v-if="scope.obj.is_superuser" class="ui pink label">{{ $gettext('Admin') }}</span>
|
||||
<span v-else-if="scope.obj.is_staff" class="ui purple label">{{ $gettext('Staff member') }}</span>
|
||||
<span v-else class="ui basic label">{{ $gettext('regular user') }}</span>
|
||||
<span v-if="scope.obj.is_superuser" class="ui pink label"><translate>Admin</translate></span>
|
||||
<span v-else-if="scope.obj.is_staff" class="ui purple label"><translate>Staff member</translate></span>
|
||||
<span v-else class="ui basic label"><translate>regular user</translate></span>
|
||||
</td>
|
||||
</template>
|
||||
</action-table>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue