fixed translate
This commit is contained in:
+3
-3
@@ -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()
|
||||
|
||||
+2
-2
@@ -313,7 +313,7 @@ pub fn update(state: &mut AppState, action: Action) -> Option<Effect> {
|
||||
} 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<Effect> {
|
||||
}
|
||||
Outcome::DownloadFed(tracks) => {
|
||||
state.status_message = Some(format!(
|
||||
"federation: скачивание {} трек(ов) в библиотеку…",
|
||||
"federation: downloading {} track(s) to the library…",
|
||||
tracks.len()
|
||||
));
|
||||
Some(Effect::FedDownload { tracks })
|
||||
|
||||
+9
-9
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user