From 70261a3bf4293b38b2cf0eee8022e7801aa2bd02 Mon Sep 17 00:00:00 2001 From: Ultradesu Date: Fri, 17 Jul 2026 01:48:41 +0300 Subject: [PATCH] fixed translate --- src/app/mod.rs | 6 +++--- src/app/update.rs | 4 ++-- src/ui/global.rs | 18 +++++++++--------- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/app/mod.rs b/src/app/mod.rs index 9b1ac83..76eef9b 100644 --- a/src/app/mod.rs +++ b/src/app/mod.rs @@ -686,7 +686,7 @@ pub(crate) fn fed_download_spawn( let mut failed = 0usize; for (index, track) in tracks.iter().enumerate() { let _ = tx.send(AppEvent::StatusMessage(format!( - "federation: скачивание {}/{total}: {}", + "federation: downloading {}/{total}: {}", index + 1, track.title ))); @@ -698,9 +698,9 @@ pub(crate) fn fed_download_spawn( } } } - let mut message = format!("federation: скачано {} из {total}", imported_ids.len()); + let mut message = format!("federation: downloaded {} of {total}", imported_ids.len()); if failed > 0 { - message.push_str(&format!(" ({failed} с ошибкой)")); + message.push_str(&format!(" ({failed} failed)")); } if let Some((playlist_id, playlist_title)) = playlist && !imported_ids.is_empty() diff --git a/src/app/update.rs b/src/app/update.rs index 3b17b92..14d549a 100644 --- a/src/app/update.rs +++ b/src/app/update.rs @@ -313,7 +313,7 @@ pub fn update(state: &mut AppState, action: Action) -> Option { } else { state.track_selection.clear(); state.status_message = Some(format!( - "federation: скачивание {} трек(ов) в библиотеку…", + "federation: downloading {} track(s) to the library…", tracks.len() )); Some(Effect::FedDownload { tracks }) @@ -1764,7 +1764,7 @@ fn select_current(state: &mut AppState) -> Option { } Outcome::DownloadFed(tracks) => { state.status_message = Some(format!( - "federation: скачивание {} трек(ов) в библиотеку…", + "federation: downloading {} track(s) to the library…", tracks.len() )); Some(Effect::FedDownload { tracks }) diff --git a/src/ui/global.rs b/src/ui/global.rs index 925167f..b9c756e 100644 --- a/src/ui/global.rs +++ b/src/ui/global.rs @@ -815,7 +815,7 @@ fn draw_search(frame: &mut Frame, area: Rect, state: &AppState, cursor: usize) { Line::from(vec![ Span::styled("⇅ ", theme::accent()), Span::raw(hit.name.clone()), - Span::styled(" артист · открыть карточку", theme::dim()), + Span::styled(" artist · open the card", theme::dim()), ]), Some(format!( "{} peer{}", @@ -910,7 +910,7 @@ fn draw_fed_artist(frame: &mut Frame, area: Rect, state: &AppState, cursor: usiz return centered_line( frame, inner, - Line::styled("собираем карточку с пиров…", theme::dim()), + Line::styled("assembling the card from peers…", theme::dim()), ); } Loadable::Failed(message) => { @@ -944,14 +944,14 @@ fn draw_fed_artist(frame: &mut Frame, area: Rect, state: &AppState, cursor: usiz Line::default(), Line::styled( format!( - "{} релизов · {} треков · с {} пиров", + "{} releases · {} tracks · from {} peers", card.releases.len(), tracks_total, card.peers ), theme::dim(), ), - Line::styled("enter: открыть релиз · esc: назад", theme::dim()), + Line::styled("enter: open a release · esc: back", theme::dim()), ]; frame.render_widget(Paragraph::new(info), info_area); @@ -959,7 +959,7 @@ fn draw_fed_artist(frame: &mut Frame, area: Rect, state: &AppState, cursor: usiz return centered_line( frame, content_area, - Line::styled("пиры не отдали ни одного релиза", theme::dim()), + Line::styled("the peers returned no releases", theme::dim()), ); } @@ -1038,7 +1038,7 @@ fn draw_fed_release(frame: &mut Frame, area: Rect, state: &AppState, index: usiz meta.push_str(&format!(" · {year}")); } meta.push_str(&format!( - " · {} треков · с {} пиров", + " · {} tracks · from {} peers", release.tracks.len(), release.owners.len().max(1) )); @@ -1053,10 +1053,10 @@ fn draw_fed_release(frame: &mut Frame, area: Rect, state: &AppState, index: usiz Line::styled(meta, theme::dim()), Line::default(), Line::styled( - format!(" ⤓ Скачать релиз целиком ({}) ", release.tracks.len()), + format!(" ⤓ Download the whole release ({}) ", release.tracks.len()), button_style, ), - Line::styled("shift+v: выделение · y: скачать · p: в плейлист", theme::dim()), + Line::styled("shift+v: select · y: download · p: add to playlist", theme::dim()), ]; frame.render_widget(Paragraph::new(info), info_area); @@ -1093,7 +1093,7 @@ fn draw_fed_release(frame: &mut Frame, area: Rect, state: &AppState, index: usiz }) .unwrap_or_default(); let right = if track.sources.len() > 1 { - format!("{duration} · {} пиров", track.sources.len()) + format!("{duration} · {} peers", track.sources.len()) } else { duration };