From d6354086bb9bebd1dd4189233b65a09c0eb48661 Mon Sep 17 00:00:00 2001 From: Drew Weymouth Date: Fri, 16 Aug 2024 08:38:02 -0700 Subject: [PATCH] Fix #467: translate "public/private playlist by" as single string --- res/translations/en.json | 5 ++--- res/translations/es.json | 5 ++--- res/translations/fr.json | 5 ++--- res/translations/it.json | 5 ++--- res/translations/pl.json | 5 ++--- res/translations/pt_BR.json | 5 ++--- res/translations/ro.json | 5 ++--- res/translations/zh.json | 5 ++--- res/translations/zhHans.json | 5 ++--- res/translations/zhHant.json | 5 ++--- ui/browsing/playlistpage.go | 7 +++---- 11 files changed, 23 insertions(+), 34 deletions(-) diff --git a/res/translations/en.json b/res/translations/en.json index 08d9b692..2e902ccb 100644 --- a/res/translations/en.json +++ b/res/translations/en.json @@ -133,12 +133,11 @@ "Playing": "Playing", "Playlist": "Playlist", "Playlists": "Playlists", - "playlist by": "playlist by", "Plays": "Plays", "Prevent clipping": "Prevent clipping", "Previous": "Previous", - "Private": "Private", - "Public": "Public", + "Private playlist by": "Private playlist by", + "Public playlist by": "Public playlist by", "Random": "Random", "Rating": "Rating", "reissued": "reissued", diff --git a/res/translations/es.json b/res/translations/es.json index aff58886..bd7f1dde 100644 --- a/res/translations/es.json +++ b/res/translations/es.json @@ -133,12 +133,11 @@ "Playing": "Reproduciendo", "Playlist": "Lista de reproducción", "Playlists": "Listas de reproducción", - "playlist by": "lista de reproducción de", "Plays": "Reproducciones", "Prevent clipping": "Prevenir recortes", "Previous": "Anterior", - "Private": "Privado", - "Public": "Público", + "Private playlist by": "Lista de reproducción privada de", + "Public playlist by": "Lista de reproducción pública de", "Random": "Aleatorio", "Rating": "Calificación", "reissued": "emitido nuevamente", diff --git a/res/translations/fr.json b/res/translations/fr.json index b906f40e..b510ccef 100644 --- a/res/translations/fr.json +++ b/res/translations/fr.json @@ -133,12 +133,11 @@ "Playing": "Lecture en cours", "Playlist": "Liste de lecture", "Playlists": "Listes de lecture", - "playlist by": "liste de lecture créée par", "Plays": "Lectures", "Prevent clipping": "Empêcher le clipping", "Previous": "Précédente", - "Private": "Privée", - "Public": "Publique", + "Private playlist by": "Liste de lecture privée créée par", + "Public playlist by": "Liste de lecture publique créée par", "Random": "Aléatoire", "Rating": "Notation", "reissued": "ressorti", diff --git a/res/translations/it.json b/res/translations/it.json index ae0385a2..2333d185 100644 --- a/res/translations/it.json +++ b/res/translations/it.json @@ -133,12 +133,11 @@ "Playing": "Riproduzione in corso", "Playlist": "Playlist", "Playlists": "Playlist", - "playlist by": "playlist by", "Plays": "Nº ascolti", "Prevent clipping": "Previeni clipping", "Previous": "Precedente", - "Private": "Privata", - "Public": "Pubblica", + "Private playlist by": "Playlist privata by", + "Public playlist by": "Playlist pubblica by", "Random": "Casuale", "Rating": "Rating", "reissued": "reissued", diff --git a/res/translations/pl.json b/res/translations/pl.json index f926e035..ccb63995 100644 --- a/res/translations/pl.json +++ b/res/translations/pl.json @@ -127,12 +127,11 @@ "Playing": "Odtwarza", "Playlist": "Playlista", "Playlists": "Playlisty", - "playlist by": "playlista przez", "Plays": "Ilość odtworzeń", "Prevent clipping": "Zapobiegnij przycicnaniu", "Previous": "Poprzednie", - "Private": "Prywatna", - "Public": "Publiczne", + "Private playlist by": "Prywatna playlista przez", + "Public playlist by": "Publiczne playlista przez", "Random": "Losowe", "Rating": "Ocena", "reissued": "odnowiony", diff --git a/res/translations/pt_BR.json b/res/translations/pt_BR.json index b1e79dbd..606a7c21 100644 --- a/res/translations/pt_BR.json +++ b/res/translations/pt_BR.json @@ -133,12 +133,11 @@ "Playing": "Tocando", "Playlist": "Lista de reprodução", "Playlists": "Listas de reprodução", - "playlist by": "lista de reprodução por", "Plays": "Reproduções", "Prevent clipping": "Evitar clipping", "Previous": "Anterior", - "Private": "Privado", - "Public": "Público", + "Private playlist by": "Lista de reprodução privado por", + "Public playlist by": "Lista de reprodução público por", "Random": "Aleatório", "Rating": "Classificação", "reissued": "reeditado", diff --git a/res/translations/ro.json b/res/translations/ro.json index be96f481..ba6cac5a 100644 --- a/res/translations/ro.json +++ b/res/translations/ro.json @@ -127,12 +127,11 @@ "Playing": "Redare", "Playlist": "Playlist", "Playlists": "Playlist-uri", - "playlist by": "playlist de", "Plays": "Redări", "Prevent clipping": "Previne distorsiunea", "Previous": "Anterior", - "Private": "Privat", - "Public": "Public", + "Private playlist by": "Playlist privat de", + "Public playlist by": "Playlist public de", "Random": "Aleatoriu", "Rating": "Rating", "reissued": "reeditat", diff --git a/res/translations/zh.json b/res/translations/zh.json index 40097320..b7ef9b1d 100644 --- a/res/translations/zh.json +++ b/res/translations/zh.json @@ -127,12 +127,11 @@ "Playing": "正在播放", "Playlist": "播放列表", "Playlists": "播放列表", - "playlist by": "播放列表作者", "Plays": "播放", "Prevent clipping": "防止削波", "Previous": "上一个", - "Private": "私人", - "Public": "公开", + "Private playlist by": "私人 播放列表作者", + "Public playlist by": "公开 播放列表作者", "Random": "随机", "Rating": "评分", "reissued": "重新发行", diff --git a/res/translations/zhHans.json b/res/translations/zhHans.json index 551e4d05..a6f20eb9 100644 --- a/res/translations/zhHans.json +++ b/res/translations/zhHans.json @@ -127,12 +127,11 @@ "Playing": "正在播放", "Playlist": "播放列表", "Playlists": "播放列表", - "playlist by": "播放列表作者", "Plays": "播放", "Prevent clipping": "防止削波", "Previous": "上一个", - "Private": "私人", - "Public": "公开", + "Private playlist by": "私人 播放列表作者", + "Public playlist by": "公开 播放列表作者", "Random": "随机", "Rating": "评分", "reissued": "重新发行", diff --git a/res/translations/zhHant.json b/res/translations/zhHant.json index 3e6e7856..a3a678e7 100644 --- a/res/translations/zhHant.json +++ b/res/translations/zhHant.json @@ -127,12 +127,11 @@ "Playing": "正在播放", "Playlist": "播放清單", "Playlists": "播放清單", - "playlist by": "播放清單作者", "Plays": "播放", "Prevent clipping": "防止削波", "Previous": "上一個", - "Private": "私人", - "Public": "公開", + "Private playlist by": "私人 播放清單作者", + "Public playlist by": "公開 播放清單作者", "Random": "隨機", "Rating": "評分", "reissued": "重新發行", diff --git a/ui/browsing/playlistpage.go b/ui/browsing/playlistpage.go index 8ed3ad98..01221d0a 100644 --- a/ui/browsing/playlistpage.go +++ b/ui/browsing/playlistpage.go @@ -343,12 +343,11 @@ func (a *PlaylistPageHeader) Update(playlist *mediaprovider.PlaylistWithTracks) } func (a *PlaylistPageHeader) formatPlaylistOwnerStr(p *mediaprovider.PlaylistWithTracks) string { - pubPriv := lang.L("Public") + pubPriv := lang.L("Public playlist by") if !p.Public { - pubPriv = lang.L("Private") + pubPriv = lang.L("Private playlist by") } - playlistBy := lang.L("playlist by") - return fmt.Sprintf("%s %s %s", pubPriv, playlistBy, p.Owner) + return fmt.Sprintf("%s %s", pubPriv, p.Owner) } func (a *PlaylistPageHeader) formatPlaylistTrackTimeStr(p *mediaprovider.PlaylistWithTracks) string {