From f2812c67ce50f6c661aa25f1b8db9005f1569d07 Mon Sep 17 00:00:00 2001 From: Eliot Berriot <contact@eliotberriot.com> Date: Tue, 2 Oct 2018 19:23:10 +0200 Subject: [PATCH] Fixed a small pluralization issue (#542) --- front/src/components/audio/album/Card.vue | 4 ++-- front/src/views/content/libraries/Card.vue | 4 ++-- front/src/views/content/remote/Card.vue | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/front/src/components/audio/album/Card.vue b/front/src/components/audio/album/Card.vue index 0c5a7c80..a439a16b 100644 --- a/front/src/components/audio/album/Card.vue +++ b/front/src/components/audio/album/Card.vue @@ -38,7 +38,7 @@ </table> <div class="center aligned segment" v-if="album.tracks.length > initialTracks"> <em v-if="!showAllTracks" @click="showAllTracks = true" class="expand"> - <translate :translate-params="{count: album.tracks.length - initialTracks}" :translate-n="album.tracks.length - initialTracks" translate-plural="Show %{ count } more tracks">Show 1 more track</translate> + <translate :translate-params="{count: album.tracks.length - initialTracks}" :translate-n="album.tracks.length - initialTracks" translate-plural="Show %{ count } more tracks">Show %{ count } more track</translate> </em> <em v-else @click="showAllTracks = false" class="expand"> <translate>Collapse</translate> @@ -52,7 +52,7 @@ </play-button> <span> <i class="music icon"></i> - <translate :translate-params="{count: album.tracks.length}" :translate-n="album.tracks.length" translate-plural="%{ count } tracks">1 track</translate> + <translate :translate-params="{count: album.tracks.length}" :translate-n="album.tracks.length" translate-plural="%{ count } tracks">%{ count } track</translate> </span> </div> </div> diff --git a/front/src/views/content/libraries/Card.vue b/front/src/views/content/libraries/Card.vue index 12d6d7d5..6b327f37 100644 --- a/front/src/views/content/libraries/Card.vue +++ b/front/src/views/content/libraries/Card.vue @@ -36,8 +36,8 @@ <i class="database icon"></i> {{ library.size | humanSize }} </span> - <i class="music icon"></i> {{ library.uploads_count }} - <translate :translate-params="{count: library.uploads_count}" :translate-n="library.uploads_count" translate-plural="%{ count } tracks">1 track</translate> + <i class="music icon"></i> + <translate :translate-params="{count: library.uploads_count}" :translate-n="library.uploads_count" translate-plural="%{ count } tracks">%{ count } track</translate> </div> </div> <div class="ui bottom basic attached buttons"> diff --git a/front/src/views/content/remote/Card.vue b/front/src/views/content/remote/Card.vue index 48f5896a..862a9a69 100644 --- a/front/src/views/content/remote/Card.vue +++ b/front/src/views/content/remote/Card.vue @@ -24,7 +24,7 @@ </div> <div class="meta"> <i class="music icon"></i> - <translate :translate-params="{count: library.uploads_count}" :translate-n="library.uploads_count" translate-plural="%{ count } tracks">1 tracks</translate> + <translate :translate-params="{count: library.uploads_count}" :translate-n="library.uploads_count" translate-plural="%{ count } tracks">%{ count } tracks</translate> </div> <div v-if="latestScan" class="meta"> <template v-if="latestScan.status === 'pending'"> -- GitLab