From dc3785888bd7fa0d86c2b915fb26758aae8890b9 Mon Sep 17 00:00:00 2001
From: Alain Nussbaumer
Date: Mon, 25 Mar 2024 18:11:09 +0100
Subject: [PATCH] [web] Remove redundancy in the displayed texts
---
web-src/src/i18n/de.json | 21 ++++++---------------
web-src/src/i18n/en.json | 21 ++++++---------------
web-src/src/i18n/fr.json | 21 ++++++---------------
web-src/src/i18n/zh.json | 21 ++++++---------------
web-src/src/pages/PageSearchLibrary.vue | 2 +-
web-src/src/pages/PageSearchSpotify.vue | 9 +++------
6 files changed, 28 insertions(+), 67 deletions(-)
diff --git a/web-src/src/i18n/de.json b/web-src/src/i18n/de.json
index 82d4326d..58388ac0 100644
--- a/web-src/src/i18n/de.json
+++ b/web-src/src/i18n/de.json
@@ -420,13 +420,7 @@
"composers": "Komponisten",
"expression": "Ausdrücken",
"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-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",
+ "no-results": "Keine Ergebnisse gefunden",
"placeholder": "Suche",
"playlists": "Playlisten",
"podcasts": "Podcasts",
@@ -540,16 +534,13 @@
"search": {
"albums": "Alben",
"artists": "Künstler",
- "no-albums": "Keine Alben gefunden",
- "no-artists": "Keine Künstler gefunden",
- "no-playlists": "Keine Playlisten gefunden",
- "no-tracks": "Keine Tracks gefunden",
+ "no-results": "Keine Ergebnisse gefunden",
"placeholder": "Suche",
"playlists": "Playlisten",
- "show-all-albums": "Zeige das Album|Zeige alle {count} Alben",
- "show-all-artists": "Zeige den Künstler|Zeige alle {count} Künstler",
- "show-all-playlists": "Zeige die Playlist|Zeige alle {count} Playlisten",
- "show-all-tracks": "Zeige den Track|Zeige alle {count} Tracks",
+ "show-albums": "Zeige das Album|Zeige alle {count} Alben",
+ "show-artists": "Zeige den Künstler|Zeige alle {count} Künstler",
+ "show-playlists": "Zeige die Playlist|Zeige alle {count} Playlisten",
+ "show-tracks": "Zeige den Track|Zeige alle {count} Tracks",
"tracks": "Tracks"
}
}
diff --git a/web-src/src/i18n/en.json b/web-src/src/i18n/en.json
index b17f07f5..272e4d74 100644
--- a/web-src/src/i18n/en.json
+++ b/web-src/src/i18n/en.json
@@ -420,13 +420,7 @@
"composers": "Composers",
"expression": "expression",
"help": "Tip: you can search by a smart playlist query language {help} if you prefix it with {query}.",
- "no-albums": "No albums 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",
+ "no-results": "No results found",
"placeholder": "Search",
"playlists": "Playlists",
"podcasts": "Podcasts",
@@ -540,16 +534,13 @@
"search": {
"albums": "Albums",
"artists": "Artists",
- "no-albums": "No albums found",
- "no-artists": "No artists found",
- "no-playlists": "No playlists found",
- "no-tracks": "No tracks found",
+ "no-results": "No results found",
"placeholder": "Search",
"playlists": "Playlists",
- "show-all-albums": "Show the album|Show all {count} albums",
- "show-all-artists": "Show the artist|Show all {count} artists",
- "show-all-playlists": "Show the playlist|Show all {count} playlists",
- "show-all-tracks": "Show the track|Show all {count} tracks",
+ "show-albums": "Show the album|Show all {count} albums",
+ "show-artists": "Show the artist|Show all {count} artists",
+ "show-playlists": "Show the playlist|Show all {count} playlists",
+ "show-tracks": "Show the track|Show all {count} tracks",
"tracks": "Tracks"
}
}
diff --git a/web-src/src/i18n/fr.json b/web-src/src/i18n/fr.json
index 8ccd53da..a3ca6230 100644
--- a/web-src/src/i18n/fr.json
+++ b/web-src/src/i18n/fr.json
@@ -420,13 +420,7 @@
"composers": "Compositeurs",
"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}",
- "no-albums": "Aucun album 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",
+ "no-results": "Aucun résultat trouvé",
"placeholder": "Recherche",
"playlists": "Listes de lecture",
"podcasts": "Podcasts",
@@ -540,16 +534,13 @@
"search": {
"albums": "Albums",
"artists": "Artistes",
- "no-albums": "Aucun album trouvé",
- "no-artists": "Aucun artiste trouvé",
- "no-playlists": "Aucune liste de lecture trouvée",
- "no-tracks": "Aucune piste trouvée",
+ "no-results": "Aucun résultat trouvé",
"placeholder": "Recherche",
"playlists": "Listes de lecture",
- "show-all-albums": "Afficher l’album|Afficher les {count} albums",
- "show-all-artists": "Afficher l’artistes|Afficher les {count} artistes",
- "show-all-playlists": "Afficher la liste de lecture|Afficher les {count} listes de lecture",
- "show-all-tracks": "Afficher la piste|Afficher les {count} pistes",
+ "show-albums": "Afficher l’album|Afficher les {count} albums",
+ "show-artists": "Afficher l’artistes|Afficher les {count} artistes",
+ "show-playlists": "Afficher la liste de lecture|Afficher les {count} listes de lecture",
+ "show-tracks": "Afficher la piste|Afficher les {count} pistes",
"tracks": "Pistes"
}
}
diff --git a/web-src/src/i18n/zh.json b/web-src/src/i18n/zh.json
index e440c40a..d6005b99 100644
--- a/web-src/src/i18n/zh.json
+++ b/web-src/src/i18n/zh.json
@@ -420,13 +420,7 @@
"composers": "作曲家",
"expression": "表达式",
"help": "提示:如果您使用 {query} 前缀,则可以通过智能播放列表查询语言 {help} 进行搜索",
- "no-albums": "没有发现专辑",
- "no-artists": "没有发现艺人",
- "no-audiobooks": "没有发现有声书",
- "no-composers": "没有发现作曲家",
- "no-playlists": "没有发现播放列表",
- "no-podcasts": "没有发现播客",
- "no-tracks": "没有发现曲目",
+ "no-results": "未找到结果",
"placeholder": "搜索",
"playlists": "播放列表",
"podcasts": "播客",
@@ -540,16 +534,13 @@
"search": {
"albums": "专辑",
"artists": "艺人",
- "no-albums": "没有发现专辑",
- "no-artists": "没有发现艺人",
- "no-playlists": "没有发现播放列表",
- "no-tracks": "没有发现曲目",
+ "no-results": "未找到结果",
"placeholder": "搜索",
"playlists": "播放列表",
- "show-all-albums": "显示专辑|显示所有 {count} 个专辑",
- "show-all-artists": "显示艺人|显示所有 {count} 位艺人",
- "show-all-playlists": "显示播放列表|显示所有 {count} 个播放列表",
- "show-all-tracks": "显示曲目|显示所有 {count} 只曲目",
+ "show-albums": "显示专辑|显示所有 {count} 个专辑",
+ "show-artists": "显示艺人|显示所有 {count} 位艺人",
+ "show-playlists": "显示播放列表|显示所有 {count} 个播放列表",
+ "show-tracks": "显示曲目|显示所有 {count} 只曲目",
"tracks": "曲目"
}
}
diff --git a/web-src/src/pages/PageSearchLibrary.vue b/web-src/src/pages/PageSearchLibrary.vue
index 38ff22c2..3f7204e6 100644
--- a/web-src/src/pages/PageSearchLibrary.vue
+++ b/web-src/src/pages/PageSearchLibrary.vue
@@ -69,7 +69,7 @@
-
+
diff --git a/web-src/src/pages/PageSearchSpotify.vue b/web-src/src/pages/PageSearchSpotify.vue
index 598c9fd6..b71ee845 100644
--- a/web-src/src/pages/PageSearchSpotify.vue
+++ b/web-src/src/pages/PageSearchSpotify.vue
@@ -63,7 +63,7 @@
@click="open_search(type)"
v-text="
$t(
- `page.spotify.search.show-all-${type}s`,
+ `page.spotify.search.show-${type}s`,
results[type].total,
{
count: $filters.number(results[type].total)
@@ -74,7 +74,7 @@
-
+
@@ -170,10 +170,7 @@ export default {
open_search(type) {
this.$router.push({
name: 'search-spotify',
- query: {
- query: this.$route.query.query,
- type
- }
+ query: { query: this.$route.query.query, type }
})
},
reset() {