Added translations for known error messages
This commit is contained in:
		
							parent
							
								
									9d074bc538
								
							
						
					
					
						commit
						3fa8b34d37
					
				
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| @ -193,7 +193,7 @@ export default { | |||||||
| 		}, | 		}, | ||||||
| 		updateQueue(update) { | 		updateQueue(update) { | ||||||
| 			// downloaded and failed default to false? | 			// 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 (uuid && this.queue.indexOf(uuid) > -1) { | ||||||
| 				if (downloaded) { | 				if (downloaded) { | ||||||
| @ -216,7 +216,7 @@ export default { | |||||||
| 						$('#download_' + uuid + ' .queue_failed').text(this.queueList[uuid].failed) | 						$('#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) { | 				if (progress) { | ||||||
|  | |||||||
| @ -1,7 +1,7 @@ | |||||||
| <template> | <template> | ||||||
| 	<div id="errors_tab" class="main_tabcontent"> | 	<div id="errors_tab" class="main_tabcontent"> | ||||||
| 		<h1>{{ $t('errors.title') }} {{ title }}</h1> | 		<h1>{{ $t('errors.title', [title]) }}</h1> | ||||||
| 		<table> | 		<table class="table table--tracklist"> | ||||||
| 			<tr> | 			<tr> | ||||||
| 				<th>ID</th> | 				<th>ID</th> | ||||||
| 				<th>{{ $tc('globals.listTabs.artist', 1) }}</th> | 				<th>{{ $tc('globals.listTabs.artist', 1) }}</th> | ||||||
| @ -12,7 +12,7 @@ | |||||||
| 				<td>{{ error.data.id }}</td> | 				<td>{{ error.data.id }}</td> | ||||||
| 				<td>{{ error.data.artist }}</td> | 				<td>{{ error.data.artist }}</td> | ||||||
| 				<td>{{ error.data.title }}</td> | 				<td>{{ error.data.title }}</td> | ||||||
| 				<td>{{ error.message }}</td> | 				<td>{{ error.errid ? $t(`errors.ids.${error.errid}`) : error.message }}</td> | ||||||
| 			</tr> | 			</tr> | ||||||
| 		</table> | 		</table> | ||||||
| 	</div> | 	</div> | ||||||
| @ -49,4 +49,4 @@ export default { | |||||||
| </script> | </script> | ||||||
| 
 | 
 | ||||||
| <style> | <style> | ||||||
| </style> | </style> | ||||||
|  | |||||||
| @ -29,7 +29,17 @@ const en = { | |||||||
| 		download: 'Download Chart' | 		download: 'Download Chart' | ||||||
| 	}, | 	}, | ||||||
| 	errors: { | 	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: { | 	favorites: { | ||||||
| 		title: 'Favorites', | 		title: 'Favorites', | ||||||
|  | |||||||
| @ -29,7 +29,17 @@ const it = { | |||||||
| 		download: 'Scarica Classifica' | 		download: 'Scarica Classifica' | ||||||
| 	}, | 	}, | ||||||
| 	errors: { | 	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: { | 	favorites: { | ||||||
| 		title: 'Preferiti', | 		title: 'Preferiti', | ||||||
| @ -77,6 +87,7 @@ const it = { | |||||||
| 	downloads: 'download', | 	downloads: 'download', | ||||||
| 	toasts: { | 	toasts: { | ||||||
| 		addedToQueue: '{0} aggiunto alla coda', | 		addedToQueue: '{0} aggiunto alla coda', | ||||||
|  | 		alreadyInQueue: '{0} è già nella coda!', | ||||||
| 		finishDownload: '{0} ha finito di scaricarsi.', | 		finishDownload: '{0} ha finito di scaricarsi.', | ||||||
| 		allDownloaded: 'Tutti i download completati!', | 		allDownloaded: 'Tutti i download completati!', | ||||||
| 		refreshFavs: 'Preferiti ricaricati!', | 		refreshFavs: 'Preferiti ricaricati!', | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user