refactor(i18n): replace download terminology with offline library
- Update en.json and es.json with new terminology - Change "Download" to "Make available offline" - Change "Downloads" section to "Offline Library" - Update notifications: cachingStarted, cachedForOffline, cachingFailed - Update UI copy in SettingsView, TrackMenu, AlbumMenu - Update toast messages in +page.svelte to use offline terminology - Change DownloadButton tooltips to use offline language cc
This commit is contained in:
1 parent
cab7b0f952
commit
0f025ae5ef
7 files changed
+71
-71
No files matched your search
@@ -337,7 +337,7 @@
|
||||
}}
|
||||
>
|
||||
<CloudDownload size={14} />
|
||||
<span>Save album for offline</span>
|
||||
<span>Make album available offline</span>
|
||||
<ChevronRight size={14} class="chevron" />
|
||||
{#if downloadOpen}
|
||||
<div class="submenu" bind:this={downloadSubmenuEl} style={downloadSubmenuStyle}>
|
||||
@@ -353,7 +353,7 @@
|
||||
{:else}
|
||||
<button class="menu-item" onclick={() => handleAction(onDownload)}>
|
||||
<CloudDownload size={14} />
|
||||
<span>Save album for offline</span>
|
||||
<span>Make album available offline</span>
|
||||
</button>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
@@ -55,11 +55,11 @@
|
||||
return $t('offline.featureDisabled');
|
||||
}
|
||||
switch (status) {
|
||||
case 'none': return 'Save for offline';
|
||||
case 'none': return 'Make available offline';
|
||||
case 'queued': return 'Queued for offline';
|
||||
case 'downloading': return `Downloading ${progress}%`;
|
||||
case 'downloading': return `Preparing for offline ${progress}%`;
|
||||
case 'ready': return 'Available offline (click to remove)';
|
||||
case 'failed': return 'Failed to save for offline (click to retry)';
|
||||
case 'failed': return 'Failed to cache for offline (click to retry)';
|
||||
default: return '';
|
||||
}
|
||||
});
|
||||
|
||||
@@ -472,7 +472,7 @@
|
||||
}}
|
||||
>
|
||||
<CloudDownload size={14} />
|
||||
<span>Save for offline</span>
|
||||
<span>Make available offline</span>
|
||||
<ChevronRight size={14} class="chevron" />
|
||||
{#if downloadOpen}
|
||||
<div class="submenu" bind:this={downloadSubmenuEl} style={downloadSubmenuStyle}>
|
||||
@@ -494,7 +494,7 @@
|
||||
{:else}
|
||||
<button class="menu-item" onclick={() => handleAction(onDownload)}>
|
||||
<CloudDownload size={14} />
|
||||
<span>Save for offline</span>
|
||||
<span>Make available offline</span>
|
||||
</button>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
@@ -133,7 +133,7 @@
|
||||
{ id: 'playback', label: 'Playback' },
|
||||
{ id: 'offline', label: 'Offline' },
|
||||
{ id: 'appearance', label: 'Appearance' },
|
||||
{ id: 'downloads', label: 'Downloads' },
|
||||
{ id: 'downloads', label: 'Offline Library' },
|
||||
{ id: 'library', label: 'Library' },
|
||||
{ id: 'integrations', label: 'Integrations' },
|
||||
{ id: 'storage', label: 'Storage' },
|
||||
@@ -1256,7 +1256,7 @@
|
||||
notifyDownloadSettingsChanged();
|
||||
} catch (err) {
|
||||
console.error('Failed to repair downloads:', err);
|
||||
showToast('Failed to repair downloads: ' + String(err), 'error');
|
||||
showToast('Failed to repair offline library: ' + String(err), 'error');
|
||||
} finally {
|
||||
isRepairingDownloads = false;
|
||||
}
|
||||
@@ -1666,12 +1666,12 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Downloads Section -->
|
||||
<!-- Offline Library Section -->
|
||||
<section class="section" bind:this={downloadsSection}>
|
||||
<h3 class="section-title">{$t('settings.downloads.title')}</h3>
|
||||
<p class="section-note">{$t('settings.downloads.offlineCacheDisclaimer')}</p>
|
||||
<h3 class="section-title">{$t('settings.offlineLibrary.title')}</h3>
|
||||
<p class="section-note">{$t('settings.offlineLibrary.disclaimer')}</p>
|
||||
<div class="setting-row">
|
||||
<span class="setting-label">{$t('settings.downloads.downloadedTracks')}</span>
|
||||
<span class="setting-label">{$t('settings.offlineLibrary.cachedTracks')}</span>
|
||||
<span class="setting-value">
|
||||
{#if downloadStats}
|
||||
{downloadStats.readyTracks} tracks ({formatBytes(downloadStats.totalSizeBytes)})
|
||||
@@ -1683,14 +1683,14 @@
|
||||
<div class="setting-row">
|
||||
<div class="setting-with-description">
|
||||
<span class="setting-label">Show in Local Library</span>
|
||||
<span class="setting-description">Display downloaded Qobuz™ tracks in your Local Library</span>
|
||||
<span class="setting-description">Display offline Qobuz™ tracks in your Local Library</span>
|
||||
</div>
|
||||
<Toggle enabled={showQobuzDownloadsInLibrary} onchange={handleShowDownloadsChange} />
|
||||
</div>
|
||||
<div class="setting-row">
|
||||
<div class="setting-with-description">
|
||||
<span class="setting-label">Repair Downloads</span>
|
||||
<span class="setting-description">Fix download markers lost during library scans</span>
|
||||
<span class="setting-label">Repair Offline Library</span>
|
||||
<span class="setting-description">Fix offline markers lost during library scans</span>
|
||||
</div>
|
||||
<button
|
||||
class="clear-btn"
|
||||
@@ -1701,7 +1701,7 @@
|
||||
</button>
|
||||
</div>
|
||||
<div class="setting-row last">
|
||||
<span class="setting-label">Clear Downloads</span>
|
||||
<span class="setting-label">Clear Offline Library</span>
|
||||
<button
|
||||
class="clear-btn"
|
||||
onclick={handleClearDownloads}
|
||||
|
||||
@@ -138,8 +138,8 @@
|
||||
"shuffle": "Shuffle",
|
||||
"addToQueue": "Add to Queue",
|
||||
"addToPlaylist": "Add to Playlist",
|
||||
"download": "Download",
|
||||
"downloadAll": "Download All",
|
||||
"makeAvailableOffline": "Make available offline",
|
||||
"makeAllAvailableOffline": "Make all available offline",
|
||||
"disc": "Disc"
|
||||
},
|
||||
"artist": {
|
||||
@@ -284,7 +284,7 @@
|
||||
"addToPlaylist": "Add to Playlist",
|
||||
"addToFavorites": "Add to Favorites",
|
||||
"removeFromFavorites": "Remove from Favorites",
|
||||
"download": "Download",
|
||||
"makeAvailableOffline": "Make available offline",
|
||||
"share": "Share",
|
||||
"viewAlbum": "View Album",
|
||||
"viewArtist": "View Artist",
|
||||
@@ -384,22 +384,22 @@
|
||||
},
|
||||
"storage": {
|
||||
"title": "Storage",
|
||||
"queueCacheNote": "Queue list storage. Clear if you have playback issues. (This is not the Downloads cache.)",
|
||||
"queueCacheNote": "Queue list storage. Clear if you have playback issues. (This is not the Offline Library cache.)",
|
||||
"queueCacheStats": "{tracks} tracks using {used} / {max}",
|
||||
"cachedTracks": "Cached Queue Tracks",
|
||||
"cacheSize": "Queue Cache Size",
|
||||
"clearCache": "Clear queue cache",
|
||||
"clearing": "Clearing..."
|
||||
},
|
||||
"downloads": {
|
||||
"title": "Downloads",
|
||||
"offlineCacheDisclaimer": "Offline downloads are a local cache for offline playback only while you have a valid subscription. You do not receive a license to keep or redistribute the content. If your subscription becomes invalid, QBZ will delete all downloaded content after 3 days.",
|
||||
"downloadedTracks": "Downloaded Tracks",
|
||||
"clearDownloads": "Clear All",
|
||||
"offlineLibrary": {
|
||||
"title": "Offline Library",
|
||||
"disclaimer": "The offline library is a temporary playback cache for offline listening while you have a valid Qobuz subscription. You do not receive a license to keep or redistribute the content. If your subscription becomes invalid, QBZ will remove all cached content after 3 days.",
|
||||
"cachedTracks": "Offline Tracks",
|
||||
"clearCache": "Clear All",
|
||||
"openFolder": "Open Folder"
|
||||
},
|
||||
"networkDownloadWarning": "The selected folder is on a network drive.",
|
||||
"networkDownloadWarningDetail": "Downloaded tracks may not be available when the network is disconnected or in offline mode. Are you sure you want to use this location?",
|
||||
"networkCacheWarning": "The selected folder is on a network drive.",
|
||||
"networkCacheWarningDetail": "Cached tracks may not be available when the network is disconnected or in offline mode. Are you sure you want to use this location?",
|
||||
"lyrics": {
|
||||
"title": "Lyrics",
|
||||
"lyricsCache": "Lyrics Cache",
|
||||
@@ -440,9 +440,9 @@
|
||||
"removedFromPlaylist": "Removed from playlist",
|
||||
"playlistCreated": "Playlist created",
|
||||
"playlistDeleted": "Playlist deleted",
|
||||
"downloadStarted": "Download started",
|
||||
"downloadComplete": "Download complete",
|
||||
"downloadFailed": "Download failed",
|
||||
"cachingStarted": "Preparing for offline",
|
||||
"cachedForOffline": "Now available offline",
|
||||
"cachingFailed": "Failed to cache for offline",
|
||||
"scanComplete": "Library scan complete",
|
||||
"scanCancelled": "Library scan cancelled",
|
||||
"scanFailed": "Library scan failed",
|
||||
@@ -458,7 +458,7 @@
|
||||
"qualityNotAvailable": "Requested quality is not available",
|
||||
"loadFailed": "Failed to load",
|
||||
"playbackFailed": "Playback failed",
|
||||
"downloadFailed": "Download failed",
|
||||
"cachingFailed": "Failed to prepare for offline",
|
||||
"saveFailed": "Failed to save"
|
||||
},
|
||||
"time": {
|
||||
|
||||
@@ -138,8 +138,8 @@
|
||||
"shuffle": "Aleatorio",
|
||||
"addToQueue": "Agregar a la Cola",
|
||||
"addToPlaylist": "Agregar a Lista",
|
||||
"download": "Descargar",
|
||||
"downloadAll": "Descargar Todo",
|
||||
"makeAvailableOffline": "Disponible offline",
|
||||
"makeAllAvailableOffline": "Todo disponible offline",
|
||||
"disc": "Disco"
|
||||
},
|
||||
"artist": {
|
||||
@@ -284,7 +284,7 @@
|
||||
"addToPlaylist": "Agregar a Lista",
|
||||
"addToFavorites": "Agregar a Favoritos",
|
||||
"removeFromFavorites": "Quitar de Favoritos",
|
||||
"download": "Descargar",
|
||||
"makeAvailableOffline": "Disponible offline",
|
||||
"share": "Compartir",
|
||||
"viewAlbum": "Ver Álbum",
|
||||
"viewArtist": "Ver Artista",
|
||||
@@ -384,22 +384,22 @@
|
||||
},
|
||||
"storage": {
|
||||
"title": "Almacenamiento",
|
||||
"queueCacheNote": "Almacenamiento de la cola. Límpialo si tienes problemas de reproducción. (No es el caché de Descargas.)",
|
||||
"queueCacheNote": "Almacenamiento de la cola. Límpialo si tienes problemas de reproducción. (No es la Biblioteca Offline.)",
|
||||
"queueCacheStats": "{tracks} pistas usando {used} / {max}",
|
||||
"cachedTracks": "Pistas de la cola en caché",
|
||||
"cacheSize": "Tamaño de caché de la cola",
|
||||
"clearCache": "Limpiar caché de la cola",
|
||||
"clearing": "Limpiando..."
|
||||
},
|
||||
"downloads": {
|
||||
"title": "Descargas",
|
||||
"offlineCacheDisclaimer": "Las descargas offline son un caché local solo para reproducción sin conexión mientras tengas una suscripción válida. No recibes una licencia para conservar o redistribuir el contenido. Si tu suscripción deja de ser válida, QBZ eliminará todo el contenido descargado después de 3 días.",
|
||||
"downloadedTracks": "Pistas Descargadas",
|
||||
"clearDownloads": "Limpiar Todo",
|
||||
"offlineLibrary": {
|
||||
"title": "Biblioteca Offline",
|
||||
"disclaimer": "La biblioteca offline es un caché temporal de reproducción para escucha sin conexión mientras tengas una suscripción válida de Qobuz. No recibes una licencia para conservar o redistribuir el contenido. Si tu suscripción deja de ser válida, QBZ eliminará todo el contenido en caché después de 3 días.",
|
||||
"cachedTracks": "Pistas Offline",
|
||||
"clearCache": "Limpiar Todo",
|
||||
"openFolder": "Abrir Carpeta"
|
||||
},
|
||||
"networkDownloadWarning": "La carpeta seleccionada está en una unidad de red.",
|
||||
"networkDownloadWarningDetail": "Las pistas descargadas pueden no estar disponibles cuando la red esté desconectada o en modo offline. ¿Estás seguro de que quieres usar esta ubicación?",
|
||||
"networkCacheWarning": "La carpeta seleccionada está en una unidad de red.",
|
||||
"networkCacheWarningDetail": "Las pistas en caché pueden no estar disponibles cuando la red esté desconectada o en modo offline. ¿Estás seguro de que quieres usar esta ubicación?",
|
||||
"lyrics": {
|
||||
"title": "Letras",
|
||||
"lyricsCache": "Caché de Letras",
|
||||
@@ -440,9 +440,9 @@
|
||||
"removedFromPlaylist": "Eliminado de la lista",
|
||||
"playlistCreated": "Lista creada",
|
||||
"playlistDeleted": "Lista eliminada",
|
||||
"downloadStarted": "Descarga iniciada",
|
||||
"downloadComplete": "Descarga completa",
|
||||
"downloadFailed": "Descarga fallida",
|
||||
"cachingStarted": "Preparando para offline",
|
||||
"cachedForOffline": "Ahora disponible offline",
|
||||
"cachingFailed": "Error al preparar para offline",
|
||||
"scanComplete": "Escaneo de biblioteca completo",
|
||||
"scanCancelled": "Escaneo de biblioteca cancelado",
|
||||
"scanFailed": "Escaneo de biblioteca fallido",
|
||||
@@ -458,7 +458,7 @@
|
||||
"qualityNotAvailable": "La calidad solicitada no está disponible",
|
||||
"loadFailed": "Error al cargar",
|
||||
"playbackFailed": "Error de reproducción",
|
||||
"downloadFailed": "Error de descarga",
|
||||
"cachingFailed": "Error al preparar para offline",
|
||||
"saveFailed": "Error al guardar"
|
||||
},
|
||||
"time": {
|
||||
|
||||
+24
-24
@@ -657,11 +657,11 @@
|
||||
});
|
||||
|
||||
if (tracksToDownload.length === 0) {
|
||||
showToast('All tracks already downloaded', 'info');
|
||||
showToast('All tracks already available offline', 'info');
|
||||
return;
|
||||
}
|
||||
|
||||
showToast(`Downloading ${tracksToDownload.length} tracks from "${album.title}"`, 'info');
|
||||
showToast(`Preparing ${tracksToDownload.length} tracks from "${album.title}" for offline`, 'info');
|
||||
|
||||
for (const track of tracksToDownload) {
|
||||
try {
|
||||
@@ -1227,20 +1227,20 @@
|
||||
bitDepth: track.bitDepth,
|
||||
sampleRate: track.samplingRate,
|
||||
});
|
||||
showToast(`Downloading "${track.title}"`, 'info');
|
||||
showToast(`Preparing "${track.title}" for offline`, 'info');
|
||||
} catch (err) {
|
||||
console.error('Failed to start download:', err);
|
||||
showToast('Failed to start download', 'error');
|
||||
console.error('Failed to cache for offline:', err);
|
||||
showToast('Failed to prepare for offline', 'error');
|
||||
}
|
||||
}
|
||||
|
||||
async function handleTrackRemoveDownload(trackId: number) {
|
||||
try {
|
||||
await removeDownload(trackId);
|
||||
showToast('Removed from downloads', 'info');
|
||||
showToast('Removed from offline library', 'info');
|
||||
} catch (err) {
|
||||
console.error('Failed to remove download:', err);
|
||||
showToast('Failed to remove download', 'error');
|
||||
console.error('Failed to remove from offline:', err);
|
||||
showToast('Failed to remove from offline library', 'error');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1267,10 +1267,10 @@
|
||||
bitDepth: 'bitDepth' in track ? track.bitDepth : undefined,
|
||||
sampleRate: 'samplingRate' in track ? track.samplingRate : undefined,
|
||||
});
|
||||
showToast(`Re-downloading "${track.title}"`, 'info');
|
||||
showToast(`Refreshing "${track.title}" for offline`, 'info');
|
||||
} catch (err) {
|
||||
console.error('Failed to re-download:', err);
|
||||
showToast('Failed to re-download', 'error');
|
||||
console.error('Failed to refresh offline copy:', err);
|
||||
showToast('Failed to refresh offline copy', 'error');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1287,11 +1287,11 @@
|
||||
});
|
||||
|
||||
if (tracksToDownload.length === 0) {
|
||||
showToast('All tracks already downloaded', 'info');
|
||||
showToast('All tracks already available offline', 'info');
|
||||
return;
|
||||
}
|
||||
|
||||
showToast(`Downloading ${tracksToDownload.length} tracks from "${selectedAlbum.title}"`, 'info');
|
||||
showToast(`Preparing ${tracksToDownload.length} tracks from "${selectedAlbum.title}" for offline`, 'info');
|
||||
|
||||
for (const track of tracksToDownload) {
|
||||
try {
|
||||
@@ -1307,7 +1307,7 @@
|
||||
sampleRate: track.samplingRate,
|
||||
});
|
||||
} catch (err) {
|
||||
console.error(`Failed to queue download for "${track.title}":`, err);
|
||||
console.error(`Failed to queue "${track.title}" for offline:`, err);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1325,8 +1325,8 @@
|
||||
|
||||
async function handleReDownloadAlbum() {
|
||||
if (!selectedAlbum) return;
|
||||
|
||||
showToast(`Re-downloading all tracks from "${selectedAlbum.title}"`, 'info');
|
||||
|
||||
showToast(`Refreshing all tracks from "${selectedAlbum.title}" for offline`, 'info');
|
||||
|
||||
for (const track of selectedAlbum.tracks) {
|
||||
try {
|
||||
@@ -1342,7 +1342,7 @@
|
||||
sampleRate: track.samplingRate,
|
||||
});
|
||||
} catch (err) {
|
||||
console.error(`Failed to queue re-download for "${track.title}":`, err);
|
||||
console.error(`Failed to refresh "${track.title}" for offline:`, err);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1360,11 +1360,11 @@
|
||||
try {
|
||||
const album = await invoke<QobuzAlbum>('get_album', { albumId });
|
||||
if (!album || !album.tracks || album.tracks.data.length === 0) {
|
||||
showToast('Failed to load album for re-download', 'error');
|
||||
showToast('Failed to load album for offline refresh', 'error');
|
||||
return;
|
||||
}
|
||||
|
||||
showToast(`Re-downloading all tracks from "${album.title}"`, 'info');
|
||||
showToast(`Refreshing all tracks from "${album.title}" for offline`, 'info');
|
||||
|
||||
for (const track of album.tracks.data) {
|
||||
try {
|
||||
@@ -1380,12 +1380,12 @@
|
||||
sampleRate: track.maximum_sampling_rate,
|
||||
});
|
||||
} catch (err) {
|
||||
console.error(`Failed to queue re-download for "${track.title}":`, err);
|
||||
console.error(`Failed to refresh "${track.title}" for offline:`, err);
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
console.error('Failed to load album:', err);
|
||||
showToast('Failed to load album for re-download', 'error');
|
||||
showToast('Failed to load album for offline refresh', 'error');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1413,10 +1413,10 @@
|
||||
bitDepth: track.bitDepth,
|
||||
sampleRate: track.samplingRate,
|
||||
});
|
||||
showToast(`Downloading "${track.title}"`, 'info');
|
||||
showToast(`Preparing "${track.title}" for offline`, 'info');
|
||||
} catch (err) {
|
||||
console.error('Failed to start download:', err);
|
||||
showToast('Failed to start download', 'error');
|
||||
console.error('Failed to prepare for offline:', err);
|
||||
showToast('Failed to prepare for offline', 'error');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user