Skip to content

Commit

Permalink
Fix #467: translate "public/private playlist by" as single string
Browse files Browse the repository at this point in the history
  • Loading branch information
dweymouth committed Aug 16, 2024
1 parent 72e670f commit d635408
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 34 deletions.
5 changes: 2 additions & 3 deletions res/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 2 additions & 3 deletions res/translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 2 additions & 3 deletions res/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 2 additions & 3 deletions res/translations/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 2 additions & 3 deletions res/translations/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 2 additions & 3 deletions res/translations/pt_BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 2 additions & 3 deletions res/translations/ro.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 2 additions & 3 deletions res/translations/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,11 @@
"Playing": "正在播放",
"Playlist": "播放列表",
"Playlists": "播放列表",
"playlist by": "播放列表作者",
"Plays": "播放",
"Prevent clipping": "防止削波",
"Previous": "上一个",
"Private": "私人",
"Public": "公开",
"Private playlist by": "私人 播放列表作者",
"Public playlist by": "公开 播放列表作者",
"Random": "随机",
"Rating": "评分",
"reissued": "重新发行",
Expand Down
5 changes: 2 additions & 3 deletions res/translations/zhHans.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,11 @@
"Playing": "正在播放",
"Playlist": "播放列表",
"Playlists": "播放列表",
"playlist by": "播放列表作者",
"Plays": "播放",
"Prevent clipping": "防止削波",
"Previous": "上一个",
"Private": "私人",
"Public": "公开",
"Private playlist by": "私人 播放列表作者",
"Public playlist by": "公开 播放列表作者",
"Random": "随机",
"Rating": "评分",
"reissued": "重新发行",
Expand Down
5 changes: 2 additions & 3 deletions res/translations/zhHant.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,11 @@
"Playing": "正在播放",
"Playlist": "播放清單",
"Playlists": "播放清單",
"playlist by": "播放清單作者",
"Plays": "播放",
"Prevent clipping": "防止削波",
"Previous": "上一個",
"Private": "私人",
"Public": "公開",
"Private playlist by": "私人 播放清單作者",
"Public playlist by": "公開 播放清單作者",
"Random": "隨機",
"Rating": "評分",
"reissued": "重新發行",
Expand Down
7 changes: 3 additions & 4 deletions ui/browsing/playlistpage.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d635408

Please sign in to comment.