diff --git a/crates/izlek-core/Cargo.toml b/crates/izlek-core/Cargo.toml index 4d6e062..d1c316f 100644 --- a/crates/izlek-core/Cargo.toml +++ b/crates/izlek-core/Cargo.toml @@ -4,7 +4,7 @@ version.workspace = true edition.workspace = true license.workspace = true repository.workspace = true -description = "Domain model and storage for Izlek" +description = "Domain model and storage for İzlek" [features] # The domain vocabulary (roles, record shapes) compiles anywhere, including the diff --git a/crates/izlek-core/src/accounts.rs b/crates/izlek-core/src/accounts.rs index f652660..af922ad 100644 --- a/crates/izlek-core/src/accounts.rs +++ b/crates/izlek-core/src/accounts.rs @@ -222,9 +222,9 @@ impl Accounts { self.store .create_signin_link(&user.id, &token.hash(), expires_at) .await?; - let subject = "Your Izlek sign-in link"; + let subject = "Your İzlek sign-in link"; let body = format!( - "{actor} added you to Izlek.\n\n{base}/join/{token}\n\nThe link works once and expires in 7 days.\n", + "{actor} added you to İzlek.\n\n{base}/join/{token}\n\nThe link works once and expires in 7 days.\n", actor = actor.display_name, base = self.base().await?, token = token.expose(), diff --git a/crates/izlek-core/src/config.rs b/crates/izlek-core/src/config.rs index 57b324d..914c0ba 100644 --- a/crates/izlek-core/src/config.rs +++ b/crates/izlek-core/src/config.rs @@ -1,9 +1,9 @@ -//! Everything Izlek reads from `config/izlek.toml`, in one place. +//! Everything İzlek reads from `config/izlek.toml`, in one place. //! //! Nothing here has a silent default once the file exists. A key that is //! missing, empty or unusable stops the boot and says which key and which //! file, because the alternative is worse than not starting: a wrong -//! `database` does not mean "no data", it means a second Izlek quietly +//! `database` does not mean "no data", it means a second İzlek quietly //! writing a different file while everyone believes they are looking at the //! same board — and Turso is single-writer, so the two are not even //! reconcilable afterwards. @@ -48,7 +48,7 @@ const FILE_NAME: &str = "config/izlek.toml"; const DEVELOPMENT_DEFAULTS: &str = r#"# Where the one database file lives. One process holds it. database = "izlek.db" # The address the server listens on. Environment variables are ignored — -# this is the only thing that decides where Izlek binds. It is also the +# this is the only thing that decides where İzlek binds. It is also the # address mail links fall back to, until an admin sets one in Settings. listen = "127.0.0.1:7654" "#; @@ -70,7 +70,7 @@ const OPTIONAL_KEYS: &[(&str, &str)] = &[( "listen", concat!( "# The address the server listens on. Environment variables are ignored —\n", - "# this is the only thing that decides where Izlek binds. It is also the\n", + "# this is the only thing that decides where İzlek binds. It is also the\n", "# address mail links fall back to, until an admin sets one in Settings.\n", "listen = \"127.0.0.1:7654\"\n" ), @@ -211,7 +211,7 @@ impl Config { /// A bind that names no interface — `0.0.0.0`, `::` — answers everywhere /// and is reachable at none of it by name, so the loopback stands in: a /// link somebody on the box can click beats a link nobody can. Whoever - /// puts Izlek behind a proxy sets the real address in Settings, which is + /// puts İzlek behind a proxy sets the real address in Settings, which is /// the only thing this defers to. pub fn listen_url(&self) -> String { let ip = self.listen.ip(); diff --git a/crates/izlek-core/src/lib.rs b/crates/izlek-core/src/lib.rs index e84ee78..c6d165c 100644 --- a/crates/izlek-core/src/lib.rs +++ b/crates/izlek-core/src/lib.rs @@ -1,4 +1,4 @@ -//! Domain model and storage for Izlek. +//! Domain model and storage for İzlek. //! //! The vocabulary — roles and record shapes — compiles everywhere, so the UI //! and the server speak the same types. The `server` feature adds the halves diff --git a/crates/izlek-core/src/mail.rs b/crates/izlek-core/src/mail.rs index 1f0319a..ea9e359 100644 --- a/crates/izlek-core/src/mail.rs +++ b/crates/izlek-core/src/mail.rs @@ -9,7 +9,7 @@ //! //! Nobody is ever mailed about their own action. A rule's audience is resolved //! and the person who did the thing is taken off it, on every audience, always: -//! three people on one board do not need Izlek telling each of them what they +//! three people on one board do not need İzlek telling each of them what they //! themselves just did. A rule whose audience is only the actor sends nothing //! and owes nothing — that is not a failure and does not appear as one. //! @@ -158,8 +158,8 @@ impl Engine { pub async fn send_test(&self, to: &str) -> std::result::Result { let mail = Outgoing { to: to.to_string(), - subject: "Izlek test mail".to_string(), - body: "Somebody pressed the test button in Izlek's settings, and this \ + subject: "İzlek test mail".to_string(), + body: "Somebody pressed the test button in İzlek's settings, and this \ is what came out. Nothing else was sent, and nobody else was \ written to.\n" .to_string(), diff --git a/crates/izlek-core/src/store/mod.rs b/crates/izlek-core/src/store/mod.rs index e3ac3b7..431024c 100644 --- a/crates/izlek-core/src/store/mod.rs +++ b/crates/izlek-core/src/store/mod.rs @@ -812,7 +812,7 @@ pub trait Store: BoardReads + DetailReads + 'static { ) -> Result; /// Hangs a file off a task. The bytes go into the database file with the - /// row: there is no second place for a Izlek deployment to keep, and no + /// row: there is no second place for an İzlek deployment to keep, and no /// path for an uploaded name to become. /// /// Nothing here decides whether the file was allowed — its size, its type diff --git a/crates/izlek-core/src/store/turso_store.rs b/crates/izlek-core/src/store/turso_store.rs index 9fc8da5..ae0bad5 100644 --- a/crates/izlek-core/src/store/turso_store.rs +++ b/crates/izlek-core/src/store/turso_store.rs @@ -3894,7 +3894,7 @@ mod probe { use crate::store::Store as _; let (ws, _admin) = store - .claim_workspace("Izlek", "ada@izlek.sh", "Ada", "hash") + .claim_workspace("İzlek", "ada@izlek.sh", "Ada", "hash") .await .unwrap(); store @@ -3905,7 +3905,7 @@ mod probe { port: 587, username: "izlek".into(), password: Some("hunter2-and-then-some".into()), - from_name: "Izlek".into(), + from_name: "İzlek".into(), from_address: "izlek@izlek.sh".into(), }, ) diff --git a/crates/izlek-core/tests/store.rs b/crates/izlek-core/tests/store.rs index d57c1dc..5c3c072 100644 --- a/crates/izlek-core/tests/store.rs +++ b/crates/izlek-core/tests/store.rs @@ -55,7 +55,7 @@ async fn workspace_with_admin() -> (Scratch, String, String) { let (ws, admin) = scratch .store .claim_workspace( - "Izlek", + "İzlek", "ada@izlek.sh", "Ada", &hash_password("tide-tables-1892").unwrap(), @@ -70,7 +70,7 @@ async fn workspace_with_admin() -> (Scratch, String, String) { async fn claim(store: &TursoStore) -> (String, String) { let (ws, admin) = store .claim_workspace( - "Izlek", + "İzlek", "ada@izlek.sh", "Ada", &hash_password("tide-tables-1892").unwrap(), @@ -109,7 +109,7 @@ async fn migrations_apply_once_and_survive_reopen() { // must not lose what the first open wrote. let second = TursoStore::open(&path).await.unwrap(); assert_eq!(second.schema_version().await.unwrap(), 1); - assert_eq!(second.workspace().await.unwrap().unwrap().name, "Izlek"); + assert_eq!(second.workspace().await.unwrap().unwrap().name, "İzlek"); drop(second); let _ = std::fs::remove_dir_all(&dir); } @@ -600,7 +600,7 @@ async fn a_second_claim_loses_and_changes_nothing() { // The loser must not have joined as anything at all. assert_eq!( scratch.store.workspace().await.unwrap().unwrap().name, - "Izlek" + "İzlek" ); assert_eq!(scratch.store.count_users("").await.unwrap(), 0); let ws_id = scratch.store.workspace().await.unwrap().unwrap().id; @@ -630,7 +630,7 @@ async fn concurrent_claims_produce_exactly_one_admin() { claims.push(tokio::spawn(async move { store .claim_workspace( - "Izlek", + "İzlek", &format!("claimant{i}@izlek.sh"), &format!("Claimant {i}"), &hash, @@ -710,7 +710,7 @@ async fn workspace_defaults_match_the_settings_screen() { let (ws, _) = scratch .store .claim_workspace( - "Izlek", + "İzlek", "ada@izlek.sh", "Ada", &hash_password("tide-tables-1892").unwrap(), @@ -744,7 +744,7 @@ async fn the_workspace_record_carries_the_sender_but_never_its_password() { port: 587, username: "izlek".into(), password: Some("a-very-secret-string".into()), - from_name: "Izlek".into(), + from_name: "İzlek".into(), from_address: "izlek@izlek.sh".into(), }, ) @@ -755,7 +755,7 @@ async fn the_workspace_record_carries_the_sender_but_never_its_password() { assert_eq!(ws.smtp_host.as_deref(), Some("smtp.fastmail.com")); assert_eq!(ws.smtp_port, Some(587)); assert_eq!(ws.smtp_username.as_deref(), Some("izlek")); - assert_eq!(ws.smtp_from_name.as_deref(), Some("Izlek")); + assert_eq!(ws.smtp_from_name.as_deref(), Some("İzlek")); assert_eq!(ws.smtp_from_address.as_deref(), Some("izlek@izlek.sh")); assert!(ws.smtp_password_set, "the screen must be able to say 'set'"); @@ -777,7 +777,7 @@ async fn a_save_with_no_password_typed_keeps_the_stored_one() { port: 587, username: "izlek".into(), password: Some("keep-me".into()), - from_name: "Izlek".into(), + from_name: "İzlek".into(), from_address: "izlek@izlek.sh".into(), }; scratch.store.set_sender(&ws_id, sender.clone()).await.unwrap(); @@ -805,7 +805,7 @@ async fn a_typed_password_replaces_the_stored_one() { port: 587, username: "izlek".into(), password: Some("the-old-one".into()), - from_name: "Izlek".into(), + from_name: "İzlek".into(), from_address: "izlek@izlek.sh".into(), }; scratch.store.set_sender(&ws_id, sender.clone()).await.unwrap(); @@ -833,7 +833,7 @@ async fn the_stored_password_is_not_the_plaintext_on_disk() { port: 587, username: "izlek".into(), password: Some("a-very-secret-string".into()), - from_name: "Izlek".into(), + from_name: "İzlek".into(), from_address: "izlek@izlek.sh".into(), }, ) @@ -876,7 +876,7 @@ async fn a_password_that_will_not_decrypt_reads_back_as_none() { port: 587, username: "izlek".into(), password: Some("a-very-secret-string".into()), - from_name: "Izlek".into(), + from_name: "İzlek".into(), from_address: "izlek@izlek.sh".into(), }, ) @@ -910,7 +910,7 @@ async fn a_password_that_will_not_decrypt_reads_back_as_none() { port: 587, username: "izlek".into(), password: Some("a-fresh-password".into()), - from_name: "Izlek".into(), + from_name: "İzlek".into(), from_address: "izlek@izlek.sh".into(), }, ) @@ -1282,7 +1282,7 @@ async fn the_store_is_usable_behind_a_trait_object() { let scratch = Scratch::open().await; let store: &dyn Store = &scratch.store; store - .claim_workspace("Izlek", "ada@izlek.sh", "Ada", "$argon2id$fake") + .claim_workspace("İzlek", "ada@izlek.sh", "Ada", "$argon2id$fake") .await .unwrap(); assert!(store.workspace().await.unwrap().is_some()); @@ -1541,7 +1541,7 @@ async fn accounts() -> (Scratch, Accounts) { async fn claimed() -> (Scratch, Accounts, User) { let (scratch, accounts) = accounts().await; let (_, signed_in) = accounts - .claim_workspace("Izlek", "ada@izlek.sh", "Ada", "tide-tables-1892") + .claim_workspace("İzlek", "ada@izlek.sh", "Ada", "tide-tables-1892") .await .unwrap(); (scratch, accounts, signed_in.user) @@ -1551,10 +1551,10 @@ async fn claimed() -> (Scratch, Accounts, User) { async fn claiming_makes_an_admin_and_signs_them_in() { let (_scratch, accounts) = accounts().await; let (workspace, signed_in) = accounts - .claim_workspace("Izlek", "ada@izlek.sh", "Ada", "tide-tables-1892") + .claim_workspace("İzlek", "ada@izlek.sh", "Ada", "tide-tables-1892") .await .unwrap(); - assert_eq!(workspace.name, "Izlek"); + assert_eq!(workspace.name, "İzlek"); assert_eq!(signed_in.user.role, Role::Admin); // The cookie value works and is not what is stored. @@ -1577,7 +1577,7 @@ async fn claiming_makes_an_admin_and_signs_them_in() { async fn the_claim_screen_enforces_its_own_password_rules() { let (_scratch, accounts) = accounts().await; let too_short = accounts - .claim_workspace("Izlek", "ada@izlek.sh", "Ada", "short") + .claim_workspace("İzlek", "ada@izlek.sh", "Ada", "short") .await; assert!(matches!( too_short, @@ -4523,7 +4523,7 @@ async fn nobody_is_mailed_about_what_they_did_themselves() { let engine = Engine::new(store.clone(), mailer.clone(), "https://izlek.sh"); // Emre is the only assignee and Emre moved the card. Telling him what he - // just did is how a person learns to filter Izlek's mail away. + // just did is how a person learns to filter İzlek's mail away. let transition = moved_to(&store, &workspace, &task, "Backlog", "Done", &mate).await; let report = engine.on_transition(&transition).await.unwrap(); assert_eq!(report, Default::default()); @@ -5049,7 +5049,7 @@ async fn an_invite_mail_is_owed_without_a_rule() { let now = OffsetDateTime::now_utc(); let invite = store - .queue_invite("newcomer@izlek.sh", "Join Izlek", "Come aboard.", now) + .queue_invite("newcomer@izlek.sh", "Join İzlek", "Come aboard.", now) .await .unwrap(); assert_eq!(invite.rule_id, None); @@ -5069,7 +5069,7 @@ async fn an_invite_mail_with_no_sender_is_held_not_failed() { let (dir, store, _workspace, _admin) = shared().await; let now = OffsetDateTime::now_utc(); store - .queue_invite("newcomer@izlek.sh", "Join Izlek", "Come aboard.", now) + .queue_invite("newcomer@izlek.sh", "Join İzlek", "Come aboard.", now) .await .unwrap(); diff --git a/crates/izlek-web/Cargo.toml b/crates/izlek-web/Cargo.toml index 8248807..f8f5fe5 100644 --- a/crates/izlek-web/Cargo.toml +++ b/crates/izlek-web/Cargo.toml @@ -4,7 +4,7 @@ version.workspace = true edition.workspace = true license.workspace = true repository.workspace = true -description = "Izlek web app: topcoat UI, routes and the server" +description = "İzlek web app: topcoat UI, routes and the server" [dependencies] topcoat = { version = "0.6.2", default-features = false, features = [ diff --git a/crates/izlek-web/src/auth.rs b/crates/izlek-web/src/auth.rs index fc20655..3295212 100644 --- a/crates/izlek-web/src/auth.rs +++ b/crates/izlek-web/src/auth.rs @@ -25,7 +25,7 @@ use crate::settings::encode_q; /// The workspace has exactly one name and no screen that sets it, so it is a /// constant rather than a field nobody was shown. -pub const WORKSPACE_NAME: &str = "Izlek"; +pub const WORKSPACE_NAME: &str = "İzlek"; /// The name and address an invitation was made out to. #[derive(Clone, Debug, Serialize)] diff --git a/crates/izlek-web/src/detail.rs b/crates/izlek-web/src/detail.rs index 27dc1b9..bdeed00 100644 --- a/crates/izlek-web/src/detail.rs +++ b/crates/izlek-web/src/detail.rs @@ -1938,7 +1938,7 @@ pub async fn task_modal(cx: &Cx, task_id: &str, confirm_delete: bool, tab: Tab) for entry in &detail.activity {
(entry.moment_in(zone)) - (entry.actor.as_ref().map(|person| person.display_name.clone()).unwrap_or_else(|| "Izlek".to_string())) + (entry.actor.as_ref().map(|person| person.display_name.clone()).unwrap_or_else(|| "İzlek".to_string())) (entry.sentence())
} diff --git a/crates/izlek-web/src/files.rs b/crates/izlek-web/src/files.rs index 5ab4e60..cd7f055 100644 --- a/crates/izlek-web/src/files.rs +++ b/crates/izlek-web/src/files.rs @@ -154,7 +154,7 @@ fn contains(haystack: &[u8], needle: &[u8]) -> bool { /// true for a mime type a browser renders on its own ([`renders_inline`]) and /// the caller did not ask for a forced download (`?dl=1`) — an uploaded HTML /// or SVG file stays `attachment` either way, so it is offered to save rather -/// than run on Izlek's origin. The ASCII fallback keeps only characters no +/// than run on İzlek's origin. The ASCII fallback keeps only characters no /// quoting scheme could turn into a delimiter or a control character; /// `filename*` carries the real name, percent-encoded, for browsers that read /// it. @@ -207,7 +207,7 @@ pub(crate) enum ViewerKind { Video, Audio, Pdf, - /// A spreadsheet Izlek reads itself and lays out as a table — no browser + /// A spreadsheet İzlek reads itself and lays out as a table — no browser /// renders one, so this is the only viewer whose bytes are parsed here /// rather than handed to an element. Sheet, diff --git a/crates/izlek-web/src/i18n.rs b/crates/izlek-web/src/i18n.rs index d2da8d1..38e96f9 100644 --- a/crates/izlek-web/src/i18n.rs +++ b/crates/izlek-web/src/i18n.rs @@ -612,16 +612,16 @@ pub fn t(lang: Lang, key: Key) -> &'static str { (LinkExpiredTitle, En) => "This link no longer works", (LinkExpiredTitle, Tr) => "Bu bağlantı artık çalışmıyor", - (SetupTitle, En) => "Set up Izlek", - (SetupTitle, Tr) => "Izlek'i kur", + (SetupTitle, En) => "Set up İzlek", + (SetupTitle, Tr) => "İzlek'i kur", (SetupSub, En) => "First account becomes the admin.", (SetupSub, Tr) => "İlk hesap yönetici olur.", (YourNameLabel, En) => "YOUR NAME", (YourNameLabel, Tr) => "ADIN", (CreateWorkspace, En) => "Create workspace", (CreateWorkspace, Tr) => "Çalışma alanı oluştur", - (SignInTitle, En) => "Sign in to Izlek", - (SignInTitle, Tr) => "Izlek'e giriş yap", + (SignInTitle, En) => "Sign in to İzlek", + (SignInTitle, Tr) => "İzlek'e giriş yap", (SignInSub, En) => { "Accounts are made by the admin. If you were invited, use the link you were sent — it is where you choose your password." } diff --git a/crates/izlek-web/src/main.rs b/crates/izlek-web/src/main.rs index d2ff843..65145e2 100644 --- a/crates/izlek-web/src/main.rs +++ b/crates/izlek-web/src/main.rs @@ -16,7 +16,7 @@ async fn main() { // config/izlek.toml is read here, before anything is opened, and written with // development defaults if it is not there yet. A broken key stops the // boot with its name in the message: the failure this prevents is not an - // empty database, it is a second Izlek writing a different file while + // empty database, it is a second İzlek writing a different file while // everyone believes they share a board. let config = match izlek_core::Config::load() { Ok(config) => config, diff --git a/crates/izlek-web/src/server.rs b/crates/izlek-web/src/server.rs index 5122afc..5f45b01 100644 --- a/crates/izlek-web/src/server.rs +++ b/crates/izlek-web/src/server.rs @@ -158,7 +158,7 @@ pub fn mail(cx: &Cx) -> Mail { .unwrap_or_else(Mail::silent) } -/// The application cookie jar, with the attributes every Izlek cookie wants. +/// The application cookie jar, with the attributes every İzlek cookie wants. fn app_cookies(cx: &Cx) -> impl Cookies { cookies(cx) .default_secure(true) @@ -182,7 +182,7 @@ pub fn presented_cookie(cx: &Cx, name: &str) -> Option { } /// A stable-enough label for the client, for rate limiting. A proxy header is -/// only trusted because Izlek is meant to sit behind one; the address bucket is +/// only trusted because İzlek is meant to sit behind one; the address bucket is /// the limit that actually protects the Argon2 work either way. /// /// topcoat 0.6.2 exposes no peer address; x-forwarded-for or nothing. @@ -634,7 +634,7 @@ pub fn refusal_of(cx: &Cx, call: &str) -> Option { /// function handler answers with a redirect back to the page it came from, and /// the value — the whole refusal — sits in a body nobody will ever look at. /// The click then looks like nothing happening, which is the worst answer -/// Izlek can give. +/// İzlek can give. /// /// So the refusal is copied onto the `Location`, as `?refusal=&on=`, /// and the page renders it from the query. This is one place rather than @@ -712,7 +712,7 @@ fn carrying(location: &str, code: &str, called: &str) -> Option { } // The Location we are rewriting came from the form post's Referer, and on a // cross-origin post the Referer is whatever the other site is. Sending the - // browser back there would make Izlek an open redirect, so the address is + // browser back there would make İzlek an open redirect, so the address is // rebuilt from its path and query alone and anything that is not a plain // absolute path is answered with the board. let here = same_origin(location); @@ -785,7 +785,7 @@ mod refusal_redirect_tests { } // The Referer of a cross-origin post is the other site's address, and it - // reaches this function as the Location. Izlek answers on its own ground or + // reaches this function as the Location. İzlek answers on its own ground or // not at all. #[test] fn another_site_cannot_be_redirected_to() { @@ -804,7 +804,7 @@ mod refusal_redirect_tests { } // An address with a path keeps the path — it is read as a path on this // site, which is the point: whatever the Referer claimed, the browser - // is sent somewhere on Izlek. + // is sent somewhere on İzlek. let carried = carrying( "http://elsewhere.example/steal?task=DZ-01", "cycle", diff --git a/crates/izlek-web/src/settings.rs b/crates/izlek-web/src/settings.rs index cbf1734..c0d61ea 100644 --- a/crates/izlek-web/src/settings.rs +++ b/crates/izlek-web/src/settings.rs @@ -460,7 +460,7 @@ async fn save_sender( /// went so the answer survives a reload. /// /// It goes to their own address and nowhere else. A test that could be -/// pointed at an address somebody typed would be a way to make Izlek mail a +/// pointed at an address somebody typed would be a way to make İzlek mail a /// stranger on demand, which is a thing worth not building. #[route(POST "/api/send_test_mail")] async fn send_test_mail(cx: &Cx) -> Result<(StatusCode, HeaderMap, Vec)> { @@ -924,7 +924,7 @@ async fn sender_now(cx: &Cx, zone: time::UtcOffset) -> Result { /// Whether a typed address is an origin a link can be built on: an http or /// https scheme, a host after it, and no whitespace anywhere. A path is -/// allowed — Izlek behind `example.com/izlek` is a real deployment — but a +/// allowed — İzlek behind `example.com/izlek` is a real deployment — but a /// bare host or a mail address is not. fn is_origin(value: &str) -> bool { let Some(rest) = value @@ -1258,7 +1258,7 @@ async fn settings_page(cx: &Cx) -> Result { type="text" name="from_name" value=(sender.from_name.clone()) - placeholder="Izlek" + placeholder="İzlek" >