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/browser.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/browser.rs')
-rw-r--r-- | server/src/routes/ui/browser.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/src/routes/ui/browser.rs b/server/src/routes/ui/browser.rs index 9cc9d88..96c005d 100644 --- a/server/src/routes/ui/browser.rs +++ b/server/src/routes/ui/browser.rs @@ -6,7 +6,7 @@ use super::{ account::session::Session, error::MyError, - layout::{trs, trsa, DynLayoutPage, LayoutPage}, + layout::{trs, DynLayoutPage, LayoutPage}, node::NodeCard, sort::{filter_and_sort_nodes, NodeFilterSort, NodeFilterSortForm, SortOrder, SortProperty}, }; @@ -15,6 +15,7 @@ use crate::{ routes::{api::AcceptJson, locale::AcceptLanguage}, uri, }; +use jellybase::locale::tr; use jellycommon::{api::ApiItemsResponse, Visibility}; use rocket::{get, serde::json::Json, Either, State}; @@ -66,7 +67,7 @@ pub fn r_all_items_filter( li {@NodeCard { node, udata, lang: &lang }} }} p.pagecontrols { - span.current { @trsa(&lang, "page.curr", &[("cur", &(page + 1).to_string()), ("max", &max_page.to_string())]) " " } + span.current { @tr(lang, "page.curr").replace("{cur}", &(page + 1).to_string()).replace("{max}", &max_page.to_string()) " " } @if page > 0 { a.prev[href=uri!(r_all_items_filter(Some(page - 1), filter.clone()))] { @trs(&lang, "page.prev") } " " } |