Added translations for known error messages

This commit is contained in:
RemixDev 2020-07-23 16:18:28 +02:00
parent 9d074bc538
commit 3fa8b34d37
5 changed files with 32 additions and 11 deletions

File diff suppressed because one or more lines are too long

View File

@ -193,7 +193,7 @@ export default {
},
updateQueue(update) {
// downloaded and failed default to false?
const { uuid, downloaded, failed, progress, error, data } = update
const { uuid, downloaded, failed, progress, error, data, errid } = update
if (uuid && this.queue.indexOf(uuid) > -1) {
if (downloaded) {
@ -216,7 +216,7 @@ export default {
$('#download_' + uuid + ' .queue_failed').text(this.queueList[uuid].failed)
}
this.queueList[uuid].errors.push({ message: error, data: data })
this.queueList[uuid].errors.push({ message: error, data: data, errid: errid })
}
if (progress) {

View File

@ -1,7 +1,7 @@
<template>
<div id="errors_tab" class="main_tabcontent">
<h1>{{ $t('errors.title') }} {{ title }}</h1>
<table>
<h1>{{ $t('errors.title', [title]) }}</h1>
<table class="table table--tracklist">
<tr>
<th>ID</th>
<th>{{ $tc('globals.listTabs.artist', 1) }}</th>
@ -12,7 +12,7 @@
<td>{{ error.data.id }}</td>
<td>{{ error.data.artist }}</td>
<td>{{ error.data.title }}</td>
<td>{{ error.message }}</td>
<td>{{ error.errid ? $t(`errors.ids.${error.errid}`) : error.message }}</td>
</tr>
</table>
</div>

View File

@ -29,7 +29,17 @@ const en = {
download: 'Download Chart'
},
errors: {
title: 'Errors for'
title: 'Errors for {0}',
ids: {
notOnDeezer: 'This track is not available on Deezer!',
notEncoded: 'Track not yet encoded!',
notEncodedNoAlternative: 'Track not yet encoded and no alternative found!',
wrongBitrate: 'Track not found at desired bitrate.',
wrongBitrateNoAlternative: 'Track not found at desired bitrate and no alternative found!',
no360RA: 'Track is not available in Reality Audio 360.',
notAvailable: 'Track not available on deezer\'s servers!',
notAvailableNoAlternative: 'Track not available on deezer\'s servers and no alternative found!'
}
},
favorites: {
title: 'Favorites',

View File

@ -29,7 +29,17 @@ const it = {
download: 'Scarica Classifica'
},
errors: {
title: 'Errori riguardanti'
title: 'Errori riguardanti {0}',
ids: {
notOnDeezer: 'Questa traccia non è disponibile su Deezer!',
notEncoded: 'Traccia non ancora codificata!',
notEncodedNoAlternative: 'Traccia non ancora codificata e nessuna alternativa trovata!',
wrongBitrate: 'Traccia non trovata con il bitrate specificato.',
wrongBitrateNoAlternative: 'Traccia non trovata con il bitrate specificato e nessuna alternativa trovata!',
no360RA: 'Traccia non disponibile in Reality Audio 360.',
notAvailable: 'Traccia non presente sui server di Deezer!',
notAvailableNoAlternative: 'Traccia non presente sui server di Deezer e nessuna alternativa trovata!'
}
},
favorites: {
title: 'Preferiti',
@ -77,6 +87,7 @@ const it = {
downloads: 'download',
toasts: {
addedToQueue: '{0} aggiunto alla coda',
alreadyInQueue: '{0} è già nella coda!',
finishDownload: '{0} ha finito di scaricarsi.',
allDownloaded: 'Tutti i download completati!',
refreshFavs: 'Preferiti ricaricati!',