diff options
author | metamuffin <metamuffin@disroot.org> | 2025-04-20 17:29:43 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-04-20 17:29:43 +0200 |
commit | 457aeb41ef9c17215fcc7151b765a19785593096 (patch) | |
tree | 14c52ea28bddab43373559bf3901cd5c2f4742ed /server/src/routes/ui/home.rs | |
parent | 096b96f7b00188aa9eda864d53605c6fe73eb63c (diff) | |
download | jellything-457aeb41ef9c17215fcc7151b765a19785593096.tar jellything-457aeb41ef9c17215fcc7151b765a19785593096.tar.bz2 jellything-457aeb41ef9c17215fcc7151b765a19785593096.tar.zst |
even more translation
Diffstat (limited to 'server/src/routes/ui/home.rs')
-rw-r--r-- | server/src/routes/ui/home.rs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/server/src/routes/ui/home.rs b/server/src/routes/ui/home.rs index 9e4035b..817a301 100644 --- a/server/src/routes/ui/home.rs +++ b/server/src/routes/ui/home.rs @@ -43,7 +43,7 @@ pub fn r_home( let mut categories = Vec::<(String, Vec<_>)>::new(); categories.push(( - tr(lang, "home.bin.continue_watching", &[]).to_string(), + tr(lang, "home.bin.continue_watching").to_string(), items .iter() .filter(|(_, u)| matches!(u.watched, WatchedState::Progress(_))) @@ -51,7 +51,7 @@ pub fn r_home( .collect(), )); categories.push(( - tr(lang, "home.bin.watchlist", &[]).to_string(), + tr(lang, "home.bin.watchlist").to_string(), items .iter() .filter(|(_, u)| matches!(u.watched, WatchedState::Pending)) @@ -64,7 +64,7 @@ pub fn r_home( items.sort_by_key(|(n, _)| n.release_date.map(|d| -d).unwrap_or(i64::MAX)); categories.push(( - tr(lang, "home.bin.latest_video", &[]).to_string(), + tr(lang, "home.bin.latest_video").to_string(), items .iter() .filter(|(n, _)| matches!(n.kind, NodeKind::Video)) @@ -73,7 +73,7 @@ pub fn r_home( .collect(), )); categories.push(( - tr(lang, "home.bin.latest_music", &[]).to_string(), + tr(lang, "home.bin.latest_music").to_string(), items .iter() .filter(|(n, _)| matches!(n.kind, NodeKind::Music)) @@ -82,7 +82,7 @@ pub fn r_home( .collect(), )); categories.push(( - tr(lang, "home.bin.latest_short_form", &[]).to_string(), + tr(lang, "home.bin.latest_short_form").to_string(), items .iter() .filter(|(n, _)| matches!(n.kind, NodeKind::ShortFormVideo)) @@ -99,7 +99,7 @@ pub fn r_home( }); categories.push(( - tr(lang, "home.bin.max_rating", &[]).to_string(), + tr(lang, "home.bin.max_rating").to_string(), items .iter() .take(16) @@ -116,7 +116,7 @@ pub fn r_home( }); categories.push(( - tr(lang, "home.bin.daily_random", &[]).to_string(), + tr(lang, "home.bin.daily_random").to_string(), (0..16) .flat_map(|i| Some(items[cheap_daily_random(i).checked_rem(items.len())?].clone())) .collect(), @@ -126,7 +126,7 @@ pub fn r_home( let mut items = items.clone(); items.retain(|(_, u)| matches!(u.watched, WatchedState::Watched)); categories.push(( - tr(lang, "home.bin.watch_again", &[]).to_string(), + tr(lang, "home.bin.watch_again").to_string(), (0..16) .flat_map(|i| Some(items[cheap_daily_random(i).checked_rem(items.len())?].clone())) .collect(), @@ -135,7 +135,7 @@ pub fn r_home( items.retain(|(n, _)| matches!(n.kind, NodeKind::Music)); categories.push(( - tr(lang, "home.bin.daily_random_music", &[]).to_string(), + tr(lang, "home.bin.daily_random_music").to_string(), (0..16) .flat_map(|i| Some(items[cheap_daily_random(i).checked_rem(items.len())?].clone())) .collect(), @@ -148,7 +148,7 @@ pub fn r_home( })) } else { Either::Left(LayoutPage { - title: tr(lang, "home", &[]).to_string(), + title: tr(lang, "home").to_string(), content: markup::new! { h2 { "Explore " @CONF.brand } ul.children.hlist {@for (node, udata) in &toplevel { |