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

Merge branch 'i18n-library-radios' into develop

parents 4672c8d5 2d3ef2a3
No related branches found
No related tags found
No related merge requests found
...@@ -2,33 +2,30 @@ ...@@ -2,33 +2,30 @@
<div class="ui vertical stripe segment" v-title="'Radio Builder'"> <div class="ui vertical stripe segment" v-title="'Radio Builder'">
<div> <div>
<div> <div>
<h2 class="ui header">Builder</h2> <h2 class="ui header"><i18next path="Builder"/></h2>
<p> <i18next tag="p" path="You can use this interface to build your own custom radio, which will play tracks according to your criteria"/>
You can use this interface to build your own custom radio, which <div class="ui form">
will play tracks according to your criteria
</p>
<div class="ui form">
<div class="inline fields"> <div class="inline fields">
<div class="field"> <div class="field">
<label for="name">Radio name</label> <i18next tag="label" for="name" path="Radio name"/>
<input id="name" type="text" v-model="radioName" placeholder="My awesome radio" /> <input id="name" type="text" v-model="radioName" placeholder="My awesome radio" />
</div> </div>
<div class="field"> <div class="field">
<input id="public" type="checkbox" v-model="isPublic" /> <input id="public" type="checkbox" v-model="isPublic" />
<label for="public">Display publicly</label> <i18next tag="label" for="public" path="Display publicly"/>
</div> </div>
<button :disabled="!canSave" @click="save" class="ui green button">Save</button> <button :disabled="!canSave" @click="save" class="ui green button"><i18ext path="Save"/></button>
<radio-button v-if="id" type="custom" :custom-radio-id="id"></radio-button> <radio-button v-if="id" type="custom" :custom-radio-id="id"></radio-button>
</div> </div>
</div> </div>
<div class="ui form"> <div class="ui form">
<p>Add filters to customize your radio</p> <p><i18next path="Add filters to customize your radio"/></p>
<div class="inline field"> <div class="inline field">
<select class="ui dropdown" v-model="currentFilterType"> <select class="ui dropdown" v-model="currentFilterType">
<option value="">Select a filter</option> <option value=""><i18next path="Select a filter"/></option>
<option v-for="f in availableFilters" :value="f.type">{{ f.label }}</option> <option v-for="f in availableFilters" :value="f.type">{{ f.label }}</option>
</select> </select>
<button :disabled="!currentFilterType" @click="add" class="ui button">Add filter</button> <button :disabled="!currentFilterType" @click="add" class="ui button"><i18next path="Add filter"/></button>
</div> </div>
<p v-if="currentFilter"> <p v-if="currentFilter">
{{ currentFilter.help_text }} {{ currentFilter.help_text }}
...@@ -37,11 +34,11 @@ ...@@ -37,11 +34,11 @@
<table class="ui table"> <table class="ui table">
<thead> <thead>
<tr> <tr>
<th class="two wide">Filter name</th> <i18next tag="th" class="two wide" path="Filter name"/>
<th class="one wide">Exclude</th> <i18next tag="th" class="one wide" path="Exclude"/>
<th class="six wide">Config</th> <i18next tag="th" class="six wide" path="Config"/>
<th class="five wide">Candidates</th> <i18next tag="th" class="five wide" path="Candidates"/>
<th class="two wide">Actions</th> <i18next tag="th" class="two wide" path="Actions"/>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
...@@ -57,9 +54,9 @@ ...@@ -57,9 +54,9 @@
</tbody> </tbody>
</table> </table>
<template v-if="checkResult"> <template v-if="checkResult">
<h3 class="ui header"> <i18next tag="h3" class="ui header" path="{%0%} tracks matching combined filters">
{{ checkResult.candidates.count }} tracks matching combined filters {{ checkResult.candidates.count }}
</h3> </i18next>
<track-table v-if="checkResult.candidates.sample" :tracks="checkResult.candidates.sample"></track-table> <track-table v-if="checkResult.candidates.sample" :tracks="checkResult.candidates.sample"></track-table>
</template> </template>
</div> </div>
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
</span> </span>
<modal v-if="checkResult" :show.sync="showCandidadesModal"> <modal v-if="checkResult" :show.sync="showCandidadesModal">
<div class="header"> <div class="header">
Track matching filter <i18next path="Track matching filter"/>
</div> </div>
<div class="content"> <div class="content">
<div class="description"> <div class="description">
...@@ -51,13 +51,13 @@ ...@@ -51,13 +51,13 @@
</div> </div>
<div class="actions"> <div class="actions">
<div class="ui black deny button"> <div class="ui black deny button">
Cancel <i18next path="Cancel"/>
</div> </div>
</div> </div>
</modal> </modal>
</td> </td>
<td> <td>
<button @click="$emit('delete', index)" class="ui basic red button">Remove</button> <button @click="$emit('delete', index)" class="ui basic red button"><i18next path="Remove"/></button>
</td> </td>
</tr> </tr>
</template> </template>
......
...@@ -563,3 +563,51 @@ msgstr "No lyrics available for this track." ...@@ -563,3 +563,51 @@ msgstr "No lyrics available for this track."
msgid "Search on lyrics.wikia.com" msgid "Search on lyrics.wikia.com"
msgstr "Search on lyrics.wikia.com" msgstr "Search on lyrics.wikia.com"
msgid "Builder"
msgstr "Builder"
msgid "You can use this interface to build your own custom radio, which will play tracks according to your criteria"
msgstr "You can use this interface to build your own custom radio, which will play tracks according to your criteria"
msgid "Radio name"
msgstr "Radio name"
msgid "Display publicly"
msgstr "Display publicly"
msgid "Save"
msgstr "Save"
msgid "Add filters to customize your radio"
msgstr "Add filters to customize your radio"
msgid "Select a filter"
msgstr "Select a filter"
msgid "Add filter"
msgstr "Add filter"
msgid "Filter name"
msgstr "Filter name"
msgid "Exclude"
msgstr "Exclude"
msgid "Config"
msgstr "Config"
msgid "Candidates"
msgstr "Candidates"
msgid "Actions"
msgstr "Actions"
msgid "{%0%} tracks matching combined filters"
msgstr "{%0%} tracks matching combined filters"
msgid "Track matching filter"
msgstr "Track matching filter"
msgid "Remove"
msgstr "Remove"
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