Fix plurals

This commit is contained in:
An Phan 2016-06-25 18:30:37 +08:00
parent 1cabe4f5b2
commit 800c84fe05
No known key found for this signature in database
GPG key ID: 05536BB4BCDC02A2
7 changed files with 8 additions and 8 deletions

View file

@ -16,7 +16,7 @@
<a class="artist" v-if="isNormalArtist" @click.prevent="viewArtistDetails(album.artist)">{{ album.artist.name }}</a> <a class="artist" v-if="isNormalArtist" @click.prevent="viewArtistDetails(album.artist)">{{ album.artist.name }}</a>
<span class="nope" v-else>{{ album.artist.name }}</span> <span class="nope" v-else>{{ album.artist.name }}</span>
{{ meta.songCount }} {{ meta.songCount | pluralize('song') }} {{ meta.songCount | pluralize('song') }}
{{ meta.totalLength }} {{ meta.totalLength }}

View file

@ -12,9 +12,9 @@
@click.prevent="showingControls = false"></i> @click.prevent="showingControls = false"></i>
<span class="meta" v-show="meta.songCount"> <span class="meta" v-show="meta.songCount">
{{ artist.albums.length }} {{ artist.albums.length | pluralize('album') }} {{ artist.albums.length | pluralize('album') }}
{{ meta.songCount }} {{ meta.songCount | pluralize('song') }} {{ meta.songCount | pluralize('song') }}
{{ meta.totalLength }} {{ meta.totalLength }}

View file

@ -10,7 +10,7 @@
@click.prevent="showingControls = false"></i> @click.prevent="showingControls = false"></i>
<span class="meta" v-show="meta.songCount"> <span class="meta" v-show="meta.songCount">
{{ meta.songCount }} {{ meta.songCount | pluralize('song') }} {{ meta.songCount | pluralize('song') }}
{{ meta.totalLength }} {{ meta.totalLength }}
<template v-if="sharedState.allowDownload && state.songs.length"> <template v-if="sharedState.allowDownload && state.songs.length">

View file

@ -10,7 +10,7 @@
@click.prevent="showingControls = false"></i> @click.prevent="showingControls = false"></i>
<span class="meta" v-show="meta.songCount"> <span class="meta" v-show="meta.songCount">
{{ meta.songCount }} {{ meta.songCount | pluralize('song') }} {{ meta.songCount | pluralize('song') }}
{{ meta.totalLength }} {{ meta.totalLength }}
<template v-if="sharedState.allowDownload && playlist.songs.length"> <template v-if="sharedState.allowDownload && playlist.songs.length">

View file

@ -10,7 +10,7 @@
@click.prevent="showingControls = false"></i> @click.prevent="showingControls = false"></i>
<span class="meta" v-show="meta.songCount"> <span class="meta" v-show="meta.songCount">
{{ meta.songCount }} {{ meta.songCount | pluralize('song') }} {{ meta.songCount | pluralize('song') }}
{{ meta.totalLength }} {{ meta.totalLength }}
</span> </span>

View file

@ -10,7 +10,7 @@
@click.prevent="showingControls = false"></i> @click.prevent="showingControls = false"></i>
<span class="meta" v-show="meta.songCount"> <span class="meta" v-show="meta.songCount">
{{ meta.songCount }} {{ meta.songCount | pluralize('song') }} {{ meta.songCount | pluralize('song') }}
{{ meta.totalLength }} {{ meta.totalLength }}
</span> </span>

View file

@ -1,6 +1,6 @@
<template> <template>
<div class="add-to-playlist" v-show="showing"> <div class="add-to-playlist" v-show="showing">
<p>Add {{ songs.length }} {{ songs.length | pluralize('song') }} to</p> <p>Add {{ songs.length | pluralize('song') }} to</p>
<ul> <ul>
<li v-if="mergedSettings.canQueue" @click="queueSongsAfterCurrent">After Current Song</li> <li v-if="mergedSettings.canQueue" @click="queueSongsAfterCurrent">After Current Song</li>