Skip to content

Commit f1621fe

Browse files
authored
Merge pull request #524 from dweymouth/feature/toasts
Show success/error "toast" message when adding tracks to playlists
2 parents 9390f7b + 7c657ac commit f1621fe

File tree

14 files changed

+395
-18
lines changed

14 files changed

+395
-18
lines changed

res/translations/de.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,5 +239,10 @@
239239
"Sept": "Sept",
240240
"Oct": "Okt",
241241
"Nov": "Nov",
242-
"Dec": "Dec"
242+
"Dec": "Dec",
243+
244+
"playlist.addedtracks": {
245+
"one": "Added {{.trackCount}} track to playlist",
246+
"other": "Added {{.trackCount}} tracks to playlist"
247+
}
243248
}

res/translations/en.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"All": "All",
1818
"All Tracks": "All Tracks",
1919
"Alt. URL": "Alt. URL",
20+
"An error occurred adding tracks to the playlist": "An error occurred adding tracks to the playlist",
2021
"Are you sure you want to delete the server": "Are you sure you want to delete the server",
2122
"Artist": "Artist",
2223
"Artist (A-Z)": "Artist (A-Z)",
@@ -69,6 +70,7 @@
6970
"Enter": "Enter",
7071
"EP": "EP",
7172
"Equalizer": "Equalizer",
73+
"Error": "Error",
7274
"Exclusive mode": "Exclusive mode",
7375
"Favorites": "Favorites",
7476
"Field Recording": "Field Recording",
@@ -188,6 +190,7 @@
188190
"Spoken Word": "Spoken Word",
189191
"Startup page": "Startup page",
190192
"Stopped": "Stopped",
193+
"Success": "Success",
191194
"Support the project": "Support the project",
192195
"Switch Servers": "Switch Servers",
193196
"Testing connection": "Testing connection",
@@ -242,5 +245,10 @@
242245
"Sept": "Sept",
243246
"Oct": "Oct",
244247
"Nov": "Nov",
245-
"Dec": "Dec"
248+
"Dec": "Dec",
249+
250+
"playlist.addedtracks": {
251+
"one": "Added one track to playlist",
252+
"other": "Added {{.trackCount}} tracks to playlist"
253+
}
246254
}

res/translations/es.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"All": "Todos",
1818
"All Tracks": "Todas las pistas",
1919
"Alt. URL": "URL alternativa",
20+
"An error occurred adding tracks to the playlist": "Ha ocurrido un error al añadir pistas a la lista de reproducción",
2021
"Are you sure you want to delete the server": "¿Estás seguro de que quieres eliminar el servidor?",
2122
"Artist": "Artista",
2223
"Artist (A-Z)": "Artista (A-Z)",
@@ -69,6 +70,7 @@
6970
"Enter": "Ingresar",
7071
"EP": "EP",
7172
"Equalizer": "Ecualizador",
73+
"Error": "Error",
7274
"Exclusive mode": "Modo exclusivo",
7375
"Favorites": "Favoritos",
7476
"Field Recording": "Grabación en campo",
@@ -187,6 +189,7 @@
187189
"Spoken Word": "Palabra Hablada",
188190
"Startup page": "Página de inicio",
189191
"Stopped": "Detenida",
192+
"Success": "Éxito",
190193
"Support the project": "Apoya el proyecto",
191194
"Switch Servers": "Cambiar servidores",
192195
"Testing connection": "Probando conexión",
@@ -241,5 +244,10 @@
241244
"Sept": "Set",
242245
"Oct": "Oct",
243246
"Nov": "Nov",
244-
"Dec": "Dic"
247+
"Dec": "Dic",
248+
249+
"playlist.addedtracks": {
250+
"one": "Se ha añadido una pista a la lista de reproducción",
251+
"other": "Se han añadido {{.trackCount}} pistas a la lista de reproducción"
252+
}
245253
}

res/translations/fr.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,5 +240,10 @@
240240
"Sept": "Sept",
241241
"Oct": "Oct",
242242
"Nov": "Nov",
243-
"Dec": "Déc"
243+
"Dec": "Déc",
244+
245+
"playlist.addedtracks": {
246+
"one": "Une piste ajoutée à la liste de lecture",
247+
"other": "{{.trackCount}} pistes ajoutées à la liste de lecture"
248+
}
244249
}

res/translations/it.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,5 +238,10 @@
238238
"Sept": "Set",
239239
"Oct": "Ott",
240240
"Nov": "Nov",
241-
"Dec": "Dic"
241+
"Dec": "Dic",
242+
243+
"playlist.addedtracks": {
244+
"one": "Added {{.trackCount}} track to playlist",
245+
"other": "Added {{.trackCount}} tracks to playlist"
246+
}
242247
}

res/translations/ja.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,5 +228,10 @@
228228
"Remove from queue": "キューから削除",
229229
"Play song radio": "曲をラジオで再生",
230230
"to":"to",
231-
"by":"by"
231+
"by":"by",
232+
233+
"playlist.addedtracks": {
234+
"one": "Added {{.trackCount}} track to playlist",
235+
"other": "Added {{.trackCount}} tracks to playlist"
236+
}
232237
}

res/translations/pl.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,5 +228,10 @@
228228
"Remove from queue": "Usuń z kolejki odtwarzania",
229229
"Play song radio": "Odtwórz mix utworów",
230230
"to":"do",
231-
"by":"przez"
231+
"by":"przez",
232+
233+
"playlist.addedtracks": {
234+
"one": "Added {{.trackCount}} track to playlist",
235+
"other": "Added {{.trackCount}} tracks to playlist"
236+
}
232237
}

res/translations/pt_BR.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,5 +228,10 @@
228228
"Remove from queue": "Remover da fila",
229229
"Play song radio": "Reproduzir rádio da faixa",
230230
"to":"a",
231-
"by":"de"
231+
"by":"de",
232+
233+
"playlist.addedtracks": {
234+
"one": "Added {{.trackCount}} track to playlist",
235+
"other": "Added {{.trackCount}} tracks to playlist"
236+
}
232237
}

res/translations/ro.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,5 +230,10 @@
230230
"Sept": "Sept",
231231
"Oct": "Oct",
232232
"Nov": "Noiem",
233-
"Dec": "Dec"
233+
"Dec": "Dec",
234+
235+
"playlist.addedtracks": {
236+
"one": "Added {{.trackCount}} track to playlist",
237+
"other": "Added {{.trackCount}} tracks to playlist"
238+
}
234239
}

res/translations/zh.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,5 +216,10 @@
216216
"Unset favorite": "取消收藏",
217217
"Remove from queue": "从队列中移除",
218218
"Size": "大小",
219-
"Play song radio": "播放歌曲电台"
219+
"Play song radio": "播放歌曲电台",
220+
221+
"playlist.addedtracks": {
222+
"one": "Added {{.trackCount}} track to playlist",
223+
"other": "Added {{.trackCount}} tracks to playlist"
224+
}
220225
}

0 commit comments

Comments
 (0)