Use <translate> instead of to avoid extraction issues

This commit is contained in:
Eliot Berriot 2018-07-01 15:31:34 +02:00
parent 0f997f897c
commit 0cfefe7a19
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
74 changed files with 507 additions and 507 deletions

View file

@ -1,29 +1,29 @@
<template>
<form class="ui form" @submit.prevent="submit()">
<h4 v-if="title" class="ui header">{{ $gettext('Create a new playlist') }}</h4>
<h4 v-if="title" class="ui header"><translate>Create a new playlist</translate></h4>
<div v-if="success" class="ui positive message">
<div class="header">
<template v-if="playlist">
{{ $gettext('Playlist updated') }}
<translate>Playlist updated</translate>
</template>
<template v-else>
{{ $gettext('Playlist created') }}
<translate>Playlist created</translate>
</template>
</div>
</div>
<div v-if="errors.length > 0" class="ui negative message">
<div class="header">{{ $gettext('We cannot create the playlist') }}</div>
<div class="header"><translate>We cannot create the playlist</translate></div>
<ul class="list">
<li v-for="error in errors">{{ error }}</li>
</ul>
</div>
<div class="three fields">
<div class="field">
<label>{{ $gettext('Playlist name') }}</label>
<label><translate>Playlist name</translate></label>
<input v-model="name" required type="text" placeholder="My awesome playlist" />
</div>
<div class="field">
<label>{{ $gettext('Playlist visibility') }}</label>
<label><translate>Playlist visibility</translate></label>
<select class="ui dropdown" v-model="privacyLevel">
<option :value="c.value" v-for="c in privacyLevelChoices">{{ c.label }}</option>
</select>
@ -31,8 +31,8 @@
<div class="field">
<label>&nbsp;</label>
<button :class="['ui', 'fluid', {'loading': isLoading}, 'button']" type="submit">
<template v-if="playlist">{{ $gettext('Update playlist') }}</template>
<template v-else>{{ $gettext('Create playlist') }}</template>
<template v-if="playlist"><translate>Update playlist</translate></template>
<template v-else><translate>Create playlist</translate></template>
</button>
</div>
</div>