i18n: translate the slint-polish batch UI strings
Add the 10 new @tr labels (radio menu items, playlist Follow/Copy, MusicBrainz setting) plus the new toasts to all five locale catalogs (en/es/de/fr/pt); es is canonical Mexican, de/fr/pt machine-drafted and flagged for review. Convert the new user-facing toasts in enqueue_track_ids + the playlist-copy arm from raw strings to qbz_i18n::t / qbz_i18n::tf so they localize like the rest. cc
This commit is contained in:
7 files changed
+270
-7
No files matched your search
@@ -4077,3 +4077,54 @@ msgstr "Vorschläge aktualisieren"
|
||||
|
||||
msgid "Not interested"
|
||||
msgstr "Kein Interesse"
|
||||
|
||||
# Slint polish batch (radio / playlist follow-copy / MusicBrainz / reco)
|
||||
msgid "QBZ Radio"
|
||||
msgstr "QBZ-Radio"
|
||||
|
||||
msgid "Qobuz Radio"
|
||||
msgstr "Qobuz-Radio"
|
||||
|
||||
msgid "Create QBZ radio"
|
||||
msgstr "QBZ-Radio erstellen"
|
||||
|
||||
msgid "Create Qobuz radio"
|
||||
msgstr "Qobuz-Radio erstellen"
|
||||
|
||||
msgid "Follow on Qobuz"
|
||||
msgstr "Auf Qobuz folgen"
|
||||
|
||||
msgid "Following on Qobuz"
|
||||
msgstr "Folge ich auf Qobuz"
|
||||
|
||||
msgid "Copy to your library"
|
||||
msgstr "In deine Bibliothek kopieren"
|
||||
|
||||
msgid "METADATA"
|
||||
msgstr "METADATEN"
|
||||
|
||||
msgid "MusicBrainz"
|
||||
msgstr "MusicBrainz"
|
||||
|
||||
msgid "Enable artist relationships and enhanced metadata from MusicBrainz. No telemetry — it only matches releases to enrich artist pages and playlist song suggestions. Turn off to disable those sections."
|
||||
msgstr "Aktiviere Künstlerbeziehungen und erweiterte Metadaten von MusicBrainz. Keine Telemetrie — es gleicht nur Veröffentlichungen ab, um Künstlerseiten und Songvorschläge für Playlists anzureichern. Deaktiviere die Option, um diese Bereiche auszublenden."
|
||||
|
||||
msgid "No tracks to add"
|
||||
msgstr "Keine Titel zum Hinzufügen"
|
||||
|
||||
msgid "Failed to add tracks"
|
||||
msgstr "Titel konnten nicht hinzugefügt werden"
|
||||
|
||||
msgid "Copied to your library"
|
||||
msgstr "In deine Bibliothek kopiert"
|
||||
|
||||
msgid "Failed to copy playlist"
|
||||
msgstr "Playlist konnte nicht kopiert werden"
|
||||
|
||||
msgid "Playlist has no tracks to copy"
|
||||
msgstr "Die Playlist enthält keine Titel zum Kopieren"
|
||||
|
||||
msgid "Added {} track to queue"
|
||||
msgid_plural "Added {} tracks to queue"
|
||||
msgstr[0] "{} Titel zur Warteschlange hinzugefügt"
|
||||
msgstr[1] "{} Titel zur Warteschlange hinzugefügt"
|
||||
@@ -6,3 +6,54 @@ msgstr ""
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: en\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
# Slint polish batch (radio / playlist follow-copy / MusicBrainz / reco)
|
||||
msgid "QBZ Radio"
|
||||
msgstr "QBZ Radio"
|
||||
|
||||
msgid "Qobuz Radio"
|
||||
msgstr "Qobuz Radio"
|
||||
|
||||
msgid "Create QBZ radio"
|
||||
msgstr "Create QBZ radio"
|
||||
|
||||
msgid "Create Qobuz radio"
|
||||
msgstr "Create Qobuz radio"
|
||||
|
||||
msgid "Follow on Qobuz"
|
||||
msgstr "Follow on Qobuz"
|
||||
|
||||
msgid "Following on Qobuz"
|
||||
msgstr "Following on Qobuz"
|
||||
|
||||
msgid "Copy to your library"
|
||||
msgstr "Copy to your library"
|
||||
|
||||
msgid "METADATA"
|
||||
msgstr "METADATA"
|
||||
|
||||
msgid "MusicBrainz"
|
||||
msgstr "MusicBrainz"
|
||||
|
||||
msgid "Enable artist relationships and enhanced metadata from MusicBrainz. No telemetry — it only matches releases to enrich artist pages and playlist song suggestions. Turn off to disable those sections."
|
||||
msgstr "Enable artist relationships and enhanced metadata from MusicBrainz. No telemetry — it only matches releases to enrich artist pages and playlist song suggestions. Turn off to disable those sections."
|
||||
|
||||
msgid "No tracks to add"
|
||||
msgstr "No tracks to add"
|
||||
|
||||
msgid "Failed to add tracks"
|
||||
msgstr "Failed to add tracks"
|
||||
|
||||
msgid "Copied to your library"
|
||||
msgstr "Copied to your library"
|
||||
|
||||
msgid "Failed to copy playlist"
|
||||
msgstr "Failed to copy playlist"
|
||||
|
||||
msgid "Playlist has no tracks to copy"
|
||||
msgstr "Playlist has no tracks to copy"
|
||||
|
||||
msgid "Added {} track to queue"
|
||||
msgid_plural "Added {} tracks to queue"
|
||||
msgstr[0] "Added {} track to queue"
|
||||
msgstr[1] "Added {} tracks to queue"
|
||||
@@ -4060,3 +4060,54 @@ msgstr "Actualizar sugerencias"
|
||||
|
||||
msgid "Not interested"
|
||||
msgstr "No me interesa"
|
||||
|
||||
# Slint polish batch (radio / playlist follow-copy / MusicBrainz / reco)
|
||||
msgid "QBZ Radio"
|
||||
msgstr "Radio QBZ"
|
||||
|
||||
msgid "Qobuz Radio"
|
||||
msgstr "Radio Qobuz"
|
||||
|
||||
msgid "Create QBZ radio"
|
||||
msgstr "Crear radio QBZ"
|
||||
|
||||
msgid "Create Qobuz radio"
|
||||
msgstr "Crear radio Qobuz"
|
||||
|
||||
msgid "Follow on Qobuz"
|
||||
msgstr "Seguir en Qobuz"
|
||||
|
||||
msgid "Following on Qobuz"
|
||||
msgstr "Siguiendo en Qobuz"
|
||||
|
||||
msgid "Copy to your library"
|
||||
msgstr "Copiar a tu biblioteca"
|
||||
|
||||
msgid "METADATA"
|
||||
msgstr "METADATOS"
|
||||
|
||||
msgid "MusicBrainz"
|
||||
msgstr "MusicBrainz"
|
||||
|
||||
msgid "Enable artist relationships and enhanced metadata from MusicBrainz. No telemetry — it only matches releases to enrich artist pages and playlist song suggestions. Turn off to disable those sections."
|
||||
msgstr "Activa las relaciones entre artistas y los metadatos mejorados de MusicBrainz. Sin telemetría — solo empareja lanzamientos para enriquecer las páginas de artistas y las sugerencias de canciones de las listas de reproducción. Desactívalo para deshabilitar esas secciones."
|
||||
|
||||
msgid "No tracks to add"
|
||||
msgstr "No hay pistas para agregar"
|
||||
|
||||
msgid "Failed to add tracks"
|
||||
msgstr "No se pudieron agregar las pistas"
|
||||
|
||||
msgid "Copied to your library"
|
||||
msgstr "Copiado a tu biblioteca"
|
||||
|
||||
msgid "Failed to copy playlist"
|
||||
msgstr "No se pudo copiar la lista de reproducción"
|
||||
|
||||
msgid "Playlist has no tracks to copy"
|
||||
msgstr "La lista de reproducción no tiene pistas para copiar"
|
||||
|
||||
msgid "Added {} track to queue"
|
||||
msgid_plural "Added {} tracks to queue"
|
||||
msgstr[0] "Se agregó {} pista a la cola"
|
||||
msgstr[1] "Se agregaron {} pistas a la cola"
|
||||
@@ -4076,3 +4076,54 @@ msgstr "Actualiser les suggestions"
|
||||
|
||||
msgid "Not interested"
|
||||
msgstr "Pas intéressé"
|
||||
|
||||
# Slint polish batch (radio / playlist follow-copy / MusicBrainz / reco)
|
||||
msgid "QBZ Radio"
|
||||
msgstr "Radio QBZ"
|
||||
|
||||
msgid "Qobuz Radio"
|
||||
msgstr "Radio Qobuz"
|
||||
|
||||
msgid "Create QBZ radio"
|
||||
msgstr "Créer une radio QBZ"
|
||||
|
||||
msgid "Create Qobuz radio"
|
||||
msgstr "Créer une radio Qobuz"
|
||||
|
||||
msgid "Follow on Qobuz"
|
||||
msgstr "Suivre sur Qobuz"
|
||||
|
||||
msgid "Following on Qobuz"
|
||||
msgstr "Suivi sur Qobuz"
|
||||
|
||||
msgid "Copy to your library"
|
||||
msgstr "Copier dans votre bibliothèque"
|
||||
|
||||
msgid "METADATA"
|
||||
msgstr "MÉTADONNÉES"
|
||||
|
||||
msgid "MusicBrainz"
|
||||
msgstr "MusicBrainz"
|
||||
|
||||
msgid "Enable artist relationships and enhanced metadata from MusicBrainz. No telemetry — it only matches releases to enrich artist pages and playlist song suggestions. Turn off to disable those sections."
|
||||
msgstr "Activez les relations entre artistes et les métadonnées enrichies de MusicBrainz. Aucune télémétrie — l'option associe uniquement les sorties pour enrichir les pages d'artistes et les suggestions de titres des playlists. Désactivez-la pour masquer ces sections."
|
||||
|
||||
msgid "No tracks to add"
|
||||
msgstr "Aucun titre à ajouter"
|
||||
|
||||
msgid "Failed to add tracks"
|
||||
msgstr "Échec de l'ajout des titres"
|
||||
|
||||
msgid "Copied to your library"
|
||||
msgstr "Copié dans votre bibliothèque"
|
||||
|
||||
msgid "Failed to copy playlist"
|
||||
msgstr "Échec de la copie de la playlist"
|
||||
|
||||
msgid "Playlist has no tracks to copy"
|
||||
msgstr "La playlist n'a aucun titre à copier"
|
||||
|
||||
msgid "Added {} track to queue"
|
||||
msgid_plural "Added {} tracks to queue"
|
||||
msgstr[0] "{} titre ajouté à la file d'attente"
|
||||
msgstr[1] "{} titres ajoutés à la file d'attente"
|
||||
@@ -4049,3 +4049,54 @@ msgstr "Atualizar sugestões"
|
||||
|
||||
msgid "Not interested"
|
||||
msgstr "Sem interesse"
|
||||
|
||||
# Slint polish batch (radio / playlist follow-copy / MusicBrainz / reco)
|
||||
msgid "QBZ Radio"
|
||||
msgstr "Rádio QBZ"
|
||||
|
||||
msgid "Qobuz Radio"
|
||||
msgstr "Rádio Qobuz"
|
||||
|
||||
msgid "Create QBZ radio"
|
||||
msgstr "Criar rádio QBZ"
|
||||
|
||||
msgid "Create Qobuz radio"
|
||||
msgstr "Criar rádio Qobuz"
|
||||
|
||||
msgid "Follow on Qobuz"
|
||||
msgstr "Seguir no Qobuz"
|
||||
|
||||
msgid "Following on Qobuz"
|
||||
msgstr "Seguindo no Qobuz"
|
||||
|
||||
msgid "Copy to your library"
|
||||
msgstr "Copiar para a sua biblioteca"
|
||||
|
||||
msgid "METADATA"
|
||||
msgstr "METADADOS"
|
||||
|
||||
msgid "MusicBrainz"
|
||||
msgstr "MusicBrainz"
|
||||
|
||||
msgid "Enable artist relationships and enhanced metadata from MusicBrainz. No telemetry — it only matches releases to enrich artist pages and playlist song suggestions. Turn off to disable those sections."
|
||||
msgstr "Ative as relações entre artistas e os metadados aprimorados do MusicBrainz. Sem telemetria — ele apenas associa lançamentos para enriquecer as páginas de artistas e as sugestões de músicas das playlists. Desative para ocultar essas seções."
|
||||
|
||||
msgid "No tracks to add"
|
||||
msgstr "Nenhuma faixa para adicionar"
|
||||
|
||||
msgid "Failed to add tracks"
|
||||
msgstr "Falha ao adicionar as faixas"
|
||||
|
||||
msgid "Copied to your library"
|
||||
msgstr "Copiado para a sua biblioteca"
|
||||
|
||||
msgid "Failed to copy playlist"
|
||||
msgstr "Falha ao copiar a playlist"
|
||||
|
||||
msgid "Playlist has no tracks to copy"
|
||||
msgstr "A playlist não tem faixas para copiar"
|
||||
|
||||
msgid "Added {} track to queue"
|
||||
msgid_plural "Added {} tracks to queue"
|
||||
msgstr[0] "{} faixa adicionada à fila"
|
||||
msgstr[1] "{} faixas adicionadas à fila"
|
||||
@@ -9157,7 +9157,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
Ok(p) => p,
|
||||
Err(e) => {
|
||||
log::error!("[qbz-slint] copy playlist: get source failed: {e}");
|
||||
crate::toast::error_weak(&weak2, "Failed to copy playlist");
|
||||
crate::toast::error_weak(&weak2, qbz_i18n::t("Failed to copy playlist"));
|
||||
return;
|
||||
}
|
||||
};
|
||||
@@ -9167,7 +9167,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
.map(|t| t.items.iter().map(|track| track.id).collect())
|
||||
.unwrap_or_default();
|
||||
if track_ids.is_empty() {
|
||||
crate::toast::error_weak(&weak2, "Playlist has no tracks to copy");
|
||||
crate::toast::error_weak(&weak2, qbz_i18n::t("Playlist has no tracks to copy"));
|
||||
return;
|
||||
}
|
||||
let attribution = format!(
|
||||
@@ -9186,7 +9186,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
Ok(p) => p,
|
||||
Err(e) => {
|
||||
log::error!("[qbz-slint] copy playlist: create failed: {e}");
|
||||
crate::toast::error_weak(&weak2, "Failed to copy playlist");
|
||||
crate::toast::error_weak(&weak2, qbz_i18n::t("Failed to copy playlist"));
|
||||
return;
|
||||
}
|
||||
};
|
||||
@@ -9211,7 +9211,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
}
|
||||
let _ = weak2.upgrade_in_event_loop(move |w| {
|
||||
w.global::<PlaylistState>().set_is_copied(true);
|
||||
crate::toast::success(&w, "Copied to your library");
|
||||
crate::toast::success(&w, qbz_i18n::t("Copied to your library"));
|
||||
});
|
||||
crate::playback::refresh_sidebar(true);
|
||||
});
|
||||
|
||||
@@ -3190,12 +3190,20 @@ pub fn enqueue_track_ids(
|
||||
Ok(tracks) if !tracks.is_empty() => {
|
||||
let n = tracks.len();
|
||||
enqueue_tracks(runtime, tokio::runtime::Handle::current(), tracks, next);
|
||||
crate::toast::success_weak(&weak, format!("Added {n} tracks to queue"));
|
||||
crate::toast::success_weak(
|
||||
&weak,
|
||||
qbz_i18n::tf(
|
||||
"Added {} track to queue",
|
||||
"Added {} tracks to queue",
|
||||
n as i64,
|
||||
&[&n.to_string()],
|
||||
),
|
||||
);
|
||||
}
|
||||
Ok(_) => crate::toast::error_weak(&weak, "No tracks to add"),
|
||||
Ok(_) => crate::toast::error_weak(&weak, qbz_i18n::t("No tracks to add")),
|
||||
Err(e) => {
|
||||
log::error!("[qbz-slint] enqueue_track_ids: get_tracks_batch failed: {e}");
|
||||
crate::toast::error_weak(&weak, "Failed to add tracks");
|
||||
crate::toast::error_weak(&weak, qbz_i18n::t("Failed to add tracks"));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user