[web] Remove redundancy in the displayed texts

This commit is contained in:
Alain Nussbaumer 2024-03-25 18:11:09 +01:00
parent 36842dfc04
commit dc3785888b
6 changed files with 28 additions and 67 deletions

View File

@ -420,13 +420,7 @@
"composers": "Komponisten", "composers": "Komponisten",
"expression": "Ausdrücken", "expression": "Ausdrücken",
"help": "Tip: Du kannst mit einer Smart-Playlist-Abfrage-Sprache nach {help} suchen wenn Du dem Ausdruck ein {query} voranstellst.", "help": "Tip: Du kannst mit einer Smart-Playlist-Abfrage-Sprache nach {help} suchen wenn Du dem Ausdruck ein {query} voranstellst.",
"no-albums": "Keine Alben gefunden", "no-results": "Keine Ergebnisse gefunden",
"no-artists": "Keine Künstler gefunden",
"no-audiobooks": "Keine Hörbücher gefunden",
"no-composers": "Keine Komponisten gefunden",
"no-playlists": "Keine Playlisten gefunden",
"no-podcasts": "Keine Podcasts gefunden",
"no-tracks": "Keine Tracks gefunden",
"placeholder": "Suche", "placeholder": "Suche",
"playlists": "Playlisten", "playlists": "Playlisten",
"podcasts": "Podcasts", "podcasts": "Podcasts",
@ -540,16 +534,13 @@
"search": { "search": {
"albums": "Alben", "albums": "Alben",
"artists": "Künstler", "artists": "Künstler",
"no-albums": "Keine Alben gefunden", "no-results": "Keine Ergebnisse gefunden",
"no-artists": "Keine Künstler gefunden",
"no-playlists": "Keine Playlisten gefunden",
"no-tracks": "Keine Tracks gefunden",
"placeholder": "Suche", "placeholder": "Suche",
"playlists": "Playlisten", "playlists": "Playlisten",
"show-all-albums": "Zeige das Album|Zeige alle {count} Alben", "show-albums": "Zeige das Album|Zeige alle {count} Alben",
"show-all-artists": "Zeige den Künstler|Zeige alle {count} Künstler", "show-artists": "Zeige den Künstler|Zeige alle {count} Künstler",
"show-all-playlists": "Zeige die Playlist|Zeige alle {count} Playlisten", "show-playlists": "Zeige die Playlist|Zeige alle {count} Playlisten",
"show-all-tracks": "Zeige den Track|Zeige alle {count} Tracks", "show-tracks": "Zeige den Track|Zeige alle {count} Tracks",
"tracks": "Tracks" "tracks": "Tracks"
} }
} }

View File

@ -420,13 +420,7 @@
"composers": "Composers", "composers": "Composers",
"expression": "expression", "expression": "expression",
"help": "Tip: you can search by a smart playlist query language {help} if you prefix it with {query}.", "help": "Tip: you can search by a smart playlist query language {help} if you prefix it with {query}.",
"no-albums": "No albums found", "no-results": "No results found",
"no-artists": "No artists found",
"no-audiobooks": "No audiobooks found",
"no-composers": "No composers found",
"no-playlists": "No playlists found",
"no-podcasts": "No podcasts found",
"no-tracks": "No tracks found",
"placeholder": "Search", "placeholder": "Search",
"playlists": "Playlists", "playlists": "Playlists",
"podcasts": "Podcasts", "podcasts": "Podcasts",
@ -540,16 +534,13 @@
"search": { "search": {
"albums": "Albums", "albums": "Albums",
"artists": "Artists", "artists": "Artists",
"no-albums": "No albums found", "no-results": "No results found",
"no-artists": "No artists found",
"no-playlists": "No playlists found",
"no-tracks": "No tracks found",
"placeholder": "Search", "placeholder": "Search",
"playlists": "Playlists", "playlists": "Playlists",
"show-all-albums": "Show the album|Show all {count} albums", "show-albums": "Show the album|Show all {count} albums",
"show-all-artists": "Show the artist|Show all {count} artists", "show-artists": "Show the artist|Show all {count} artists",
"show-all-playlists": "Show the playlist|Show all {count} playlists", "show-playlists": "Show the playlist|Show all {count} playlists",
"show-all-tracks": "Show the track|Show all {count} tracks", "show-tracks": "Show the track|Show all {count} tracks",
"tracks": "Tracks" "tracks": "Tracks"
} }
} }

View File

@ -420,13 +420,7 @@
"composers": "Compositeurs", "composers": "Compositeurs",
"expression": "expression", "expression": "expression",
"help": "Astuce : vous pouvez effectuer une recherche avec une {help} du langage de requête de liste de lecture intelligente en préfixant votre requête avec {query}", "help": "Astuce : vous pouvez effectuer une recherche avec une {help} du langage de requête de liste de lecture intelligente en préfixant votre requête avec {query}",
"no-albums": "Aucun album trouvé", "no-results": "Aucun résultat trouvé",
"no-artists": "Aucun artiste trouvé",
"no-audiobooks": "Aucun livre audio trouvé",
"no-composers": "Aucun compositeur trouvé",
"no-playlists": "Aucune liste de lecture trouvée",
"no-podcasts": "Aucune podcast trouvé",
"no-tracks": "Aucune piste trouvée",
"placeholder": "Recherche", "placeholder": "Recherche",
"playlists": "Listes de lecture", "playlists": "Listes de lecture",
"podcasts": "Podcasts", "podcasts": "Podcasts",
@ -540,16 +534,13 @@
"search": { "search": {
"albums": "Albums", "albums": "Albums",
"artists": "Artistes", "artists": "Artistes",
"no-albums": "Aucun album trouvé", "no-results": "Aucun résultat trouvé",
"no-artists": "Aucun artiste trouvé",
"no-playlists": "Aucune liste de lecture trouvée",
"no-tracks": "Aucune piste trouvée",
"placeholder": "Recherche", "placeholder": "Recherche",
"playlists": "Listes de lecture", "playlists": "Listes de lecture",
"show-all-albums": "Afficher lalbum|Afficher les {count} albums", "show-albums": "Afficher lalbum|Afficher les {count} albums",
"show-all-artists": "Afficher lartistes|Afficher les {count} artistes", "show-artists": "Afficher lartistes|Afficher les {count} artistes",
"show-all-playlists": "Afficher la liste de lecture|Afficher les {count} listes de lecture", "show-playlists": "Afficher la liste de lecture|Afficher les {count} listes de lecture",
"show-all-tracks": "Afficher la piste|Afficher les {count} pistes", "show-tracks": "Afficher la piste|Afficher les {count} pistes",
"tracks": "Pistes" "tracks": "Pistes"
} }
} }

View File

@ -420,13 +420,7 @@
"composers": "作曲家", "composers": "作曲家",
"expression": "表达式", "expression": "表达式",
"help": "提示:如果您使用 {query} 前缀,则可以通过智能播放列表查询语言 {help} 进行搜索", "help": "提示:如果您使用 {query} 前缀,则可以通过智能播放列表查询语言 {help} 进行搜索",
"no-albums": "没有发现专辑", "no-results": "未找到结果",
"no-artists": "没有发现艺人",
"no-audiobooks": "没有发现有声书",
"no-composers": "没有发现作曲家",
"no-playlists": "没有发现播放列表",
"no-podcasts": "没有发现播客",
"no-tracks": "没有发现曲目",
"placeholder": "搜索", "placeholder": "搜索",
"playlists": "播放列表", "playlists": "播放列表",
"podcasts": "播客", "podcasts": "播客",
@ -540,16 +534,13 @@
"search": { "search": {
"albums": "专辑", "albums": "专辑",
"artists": "艺人", "artists": "艺人",
"no-albums": "没有发现专辑", "no-results": "未找到结果",
"no-artists": "没有发现艺人",
"no-playlists": "没有发现播放列表",
"no-tracks": "没有发现曲目",
"placeholder": "搜索", "placeholder": "搜索",
"playlists": "播放列表", "playlists": "播放列表",
"show-all-albums": "显示专辑|显示所有 {count} 个专辑", "show-albums": "显示专辑|显示所有 {count} 个专辑",
"show-all-artists": "显示艺人|显示所有 {count} 位艺人", "show-artists": "显示艺人|显示所有 {count} 位艺人",
"show-all-playlists": "显示播放列表|显示所有 {count} 个播放列表", "show-playlists": "显示播放列表|显示所有 {count} 个播放列表",
"show-all-tracks": "显示曲目|显示所有 {count} 只曲目", "show-tracks": "显示曲目|显示所有 {count} 只曲目",
"tracks": "曲目" "tracks": "曲目"
} }
} }

View File

@ -69,7 +69,7 @@
</p> </p>
</nav> </nav>
<p v-if="!results[type].total" class="has-text-centered-mobile"> <p v-if="!results[type].total" class="has-text-centered-mobile">
<i v-text="$t('page.search.no-tracks')" /> <i v-text="$t('page.search.no-results')" />
</p> </p>
</template> </template>
</content-with-heading> </content-with-heading>

View File

@ -63,7 +63,7 @@
@click="open_search(type)" @click="open_search(type)"
v-text=" v-text="
$t( $t(
`page.spotify.search.show-all-${type}s`, `page.spotify.search.show-${type}s`,
results[type].total, results[type].total,
{ {
count: $filters.number(results[type].total) count: $filters.number(results[type].total)
@ -74,7 +74,7 @@
</p> </p>
</nav> </nav>
<p v-if="!results[type].total" class="has-text-centered-mobile"> <p v-if="!results[type].total" class="has-text-centered-mobile">
<i v-text="$t(`page.spotify.search.no-${type}s`)" /> <i v-text="$t(`page.spotify.search.no-results`)" />
</p> </p>
</template> </template>
</content-with-heading> </content-with-heading>
@ -170,10 +170,7 @@ export default {
open_search(type) { open_search(type) {
this.$router.push({ this.$router.push({
name: 'search-spotify', name: 'search-spotify',
query: { query: { query: this.$route.query.query, type }
query: this.$route.query.query,
type
}
}) })
}, },
reset() { reset() {