The name is İzlek, with the dotted İ
Browse files at this commit69a60fa9a367ee59a50da20706d827d0c92bed8fParent: 019cbd0- style
- the name is İzlek, with the dotted İ
17 changed files +63 -63
- crates/izlek-core/Cargo.toml +1 -1
- crates/izlek-core/src/accounts.rs +2 -2
- crates/izlek-core/src/config.rs +5 -5
- crates/izlek-core/src/lib.rs +1 -1
- crates/izlek-core/src/mail.rs +3 -3
- crates/izlek-core/src/store/mod.rs +1 -1
- crates/izlek-core/src/store/turso_store.rs +2 -2
- crates/izlek-core/tests/store.rs +21 -21
- crates/izlek-web/Cargo.toml +1 -1
- crates/izlek-web/src/auth.rs +1 -1
- crates/izlek-web/src/detail.rs +1 -1
- crates/izlek-web/src/files.rs +2 -2
- crates/izlek-web/src/i18n.rs +4 -4
- crates/izlek-web/src/main.rs +1 -1
- crates/izlek-web/src/server.rs +6 -6
- crates/izlek-web/src/settings.rs +3 -3
- crates/izlek-web/tests/http.rs +8 -8
crates/izlek-core/Cargo.tomlmodified+1 -1
| @@ -4,7 +4,7 @@ version.workspace = true | ||
| 4 | 4 | edition.workspace = true |
| 5 | 5 | license.workspace = true |
| 6 | 6 | repository.workspace = true |
| 7 | -description = "Domain model and storage for Izlek" | |
| 7 | +description = "Domain model and storage for İzlek" | |
| 8 | 8 | |
| 9 | 9 | [features] |
| 10 | 10 | # The domain vocabulary (roles, record shapes) compiles anywhere, including the |
crates/izlek-core/src/accounts.rsmodified+2 -2
| @@ -222,9 +222,9 @@ impl Accounts { | ||
| 222 | 222 | self.store |
| 223 | 223 | .create_signin_link(&user.id, &token.hash(), expires_at) |
| 224 | 224 | .await?; |
| 225 | - let subject = "Your Izlek sign-in link"; | |
| 225 | + let subject = "Your İzlek sign-in link"; | |
| 226 | 226 | let body = format!( |
| 227 | - "{actor} added you to Izlek.\n\n{base}/join/{token}\n\nThe link works once and expires in 7 days.\n", | |
| 227 | + "{actor} added you to İzlek.\n\n{base}/join/{token}\n\nThe link works once and expires in 7 days.\n", | |
| 228 | 228 | actor = actor.display_name, |
| 229 | 229 | base = self.base().await?, |
| 230 | 230 | token = token.expose(), |
crates/izlek-core/src/config.rsmodified+5 -5
| @@ -1,9 +1,9 @@ | ||
| 1 | -//! Everything Izlek reads from `config/izlek.toml`, in one place. | |
| 1 | +//! Everything İzlek reads from `config/izlek.toml`, in one place. | |
| 2 | 2 | //! |
| 3 | 3 | //! Nothing here has a silent default once the file exists. A key that is |
| 4 | 4 | //! missing, empty or unusable stops the boot and says which key and which |
| 5 | 5 | //! file, because the alternative is worse than not starting: a wrong |
| 6 | -//! `database` does not mean "no data", it means a second Izlek quietly | |
| 6 | +//! `database` does not mean "no data", it means a second İzlek quietly | |
| 7 | 7 | //! writing a different file while everyone believes they are looking at the |
| 8 | 8 | //! same board — and Turso is single-writer, so the two are not even |
| 9 | 9 | //! reconcilable afterwards. |
| @@ -48,7 +48,7 @@ const FILE_NAME: &str = "config/izlek.toml"; | ||
| 48 | 48 | const DEVELOPMENT_DEFAULTS: &str = r#"# Where the one database file lives. One process holds it. |
| 49 | 49 | database = "izlek.db" |
| 50 | 50 | # The address the server listens on. Environment variables are ignored — |
| 51 | -# this is the only thing that decides where Izlek binds. It is also the | |
| 51 | +# this is the only thing that decides where İzlek binds. It is also the | |
| 52 | 52 | # address mail links fall back to, until an admin sets one in Settings. |
| 53 | 53 | listen = "127.0.0.1:7654" |
| 54 | 54 | "#; |
| @@ -70,7 +70,7 @@ const OPTIONAL_KEYS: &[(&str, &str)] = &[( | ||
| 70 | 70 | "listen", |
| 71 | 71 | concat!( |
| 72 | 72 | "# The address the server listens on. Environment variables are ignored —\n", |
| 73 | - "# this is the only thing that decides where Izlek binds. It is also the\n", | |
| 73 | + "# this is the only thing that decides where İzlek binds. It is also the\n", | |
| 74 | 74 | "# address mail links fall back to, until an admin sets one in Settings.\n", |
| 75 | 75 | "listen = \"127.0.0.1:7654\"\n" |
| 76 | 76 | ), |
| @@ -211,7 +211,7 @@ impl Config { | ||
| 211 | 211 | /// A bind that names no interface — `0.0.0.0`, `::` — answers everywhere |
| 212 | 212 | /// and is reachable at none of it by name, so the loopback stands in: a |
| 213 | 213 | /// link somebody on the box can click beats a link nobody can. Whoever |
| 214 | - /// puts Izlek behind a proxy sets the real address in Settings, which is | |
| 214 | + /// puts İzlek behind a proxy sets the real address in Settings, which is | |
| 215 | 215 | /// the only thing this defers to. |
| 216 | 216 | pub fn listen_url(&self) -> String { |
| 217 | 217 | let ip = self.listen.ip(); |
crates/izlek-core/src/lib.rsmodified+1 -1
| @@ -1,4 +1,4 @@ | ||
| 1 | -//! Domain model and storage for Izlek. | |
| 1 | +//! Domain model and storage for İzlek. | |
| 2 | 2 | //! |
| 3 | 3 | //! The vocabulary — roles and record shapes — compiles everywhere, so the UI |
| 4 | 4 | //! and the server speak the same types. The `server` feature adds the halves |
crates/izlek-core/src/mail.rsmodified+3 -3
| @@ -9,7 +9,7 @@ | ||
| 9 | 9 | //! |
| 10 | 10 | //! Nobody is ever mailed about their own action. A rule's audience is resolved |
| 11 | 11 | //! and the person who did the thing is taken off it, on every audience, always: |
| 12 | -//! three people on one board do not need Izlek telling each of them what they | |
| 12 | +//! three people on one board do not need İzlek telling each of them what they | |
| 13 | 13 | //! themselves just did. A rule whose audience is only the actor sends nothing |
| 14 | 14 | //! and owes nothing — that is not a failure and does not appear as one. |
| 15 | 15 | //! |
| @@ -158,8 +158,8 @@ impl Engine { | ||
| 158 | 158 | pub async fn send_test(&self, to: &str) -> std::result::Result<Duration, MailError> { |
| 159 | 159 | let mail = Outgoing { |
| 160 | 160 | to: to.to_string(), |
| 161 | - subject: "Izlek test mail".to_string(), | |
| 162 | - body: "Somebody pressed the test button in Izlek's settings, and this \ | |
| 161 | + subject: "İzlek test mail".to_string(), | |
| 162 | + body: "Somebody pressed the test button in İzlek's settings, and this \ | |
| 163 | 163 | is what came out. Nothing else was sent, and nobody else was \ |
| 164 | 164 | written to.\n" |
| 165 | 165 | .to_string(), |
crates/izlek-core/src/store/mod.rsmodified+1 -1
| @@ -812,7 +812,7 @@ pub trait Store: BoardReads + DetailReads + 'static { | ||
| 812 | 812 | ) -> Result<CommentWritten>; |
| 813 | 813 | |
| 814 | 814 | /// Hangs a file off a task. The bytes go into the database file with the |
| 815 | - /// row: there is no second place for a Izlek deployment to keep, and no | |
| 815 | + /// row: there is no second place for an İzlek deployment to keep, and no | |
| 816 | 816 | /// path for an uploaded name to become. |
| 817 | 817 | /// |
| 818 | 818 | /// Nothing here decides whether the file was allowed — its size, its type |
crates/izlek-core/src/store/turso_store.rsmodified+2 -2
| @@ -3894,7 +3894,7 @@ mod probe { | ||
| 3894 | 3894 | use crate::store::Store as _; |
| 3895 | 3895 | |
| 3896 | 3896 | let (ws, _admin) = store |
| 3897 | - .claim_workspace("Izlek", "ada@izlek.sh", "Ada", "hash") | |
| 3897 | + .claim_workspace("İzlek", "ada@izlek.sh", "Ada", "hash") | |
| 3898 | 3898 | .await |
| 3899 | 3899 | .unwrap(); |
| 3900 | 3900 | store |
| @@ -3905,7 +3905,7 @@ mod probe { | ||
| 3905 | 3905 | port: 587, |
| 3906 | 3906 | username: "izlek".into(), |
| 3907 | 3907 | password: Some("hunter2-and-then-some".into()), |
| 3908 | - from_name: "Izlek".into(), | |
| 3908 | + from_name: "İzlek".into(), | |
| 3909 | 3909 | from_address: "izlek@izlek.sh".into(), |
| 3910 | 3910 | }, |
| 3911 | 3911 | ) |
crates/izlek-core/tests/store.rsmodified+21 -21
| @@ -55,7 +55,7 @@ async fn workspace_with_admin() -> (Scratch, String, String) { | ||
| 55 | 55 | let (ws, admin) = scratch |
| 56 | 56 | .store |
| 57 | 57 | .claim_workspace( |
| 58 | - "Izlek", | |
| 58 | + "İzlek", | |
| 59 | 59 | "ada@izlek.sh", |
| 60 | 60 | "Ada", |
| 61 | 61 | &hash_password("tide-tables-1892").unwrap(), |
| @@ -70,7 +70,7 @@ async fn workspace_with_admin() -> (Scratch, String, String) { | ||
| 70 | 70 | async fn claim(store: &TursoStore) -> (String, String) { |
| 71 | 71 | let (ws, admin) = store |
| 72 | 72 | .claim_workspace( |
| 73 | - "Izlek", | |
| 73 | + "İzlek", | |
| 74 | 74 | "ada@izlek.sh", |
| 75 | 75 | "Ada", |
| 76 | 76 | &hash_password("tide-tables-1892").unwrap(), |
| @@ -109,7 +109,7 @@ async fn migrations_apply_once_and_survive_reopen() { | ||
| 109 | 109 | // must not lose what the first open wrote. |
| 110 | 110 | let second = TursoStore::open(&path).await.unwrap(); |
| 111 | 111 | assert_eq!(second.schema_version().await.unwrap(), 1); |
| 112 | - assert_eq!(second.workspace().await.unwrap().unwrap().name, "Izlek"); | |
| 112 | + assert_eq!(second.workspace().await.unwrap().unwrap().name, "İzlek"); | |
| 113 | 113 | drop(second); |
| 114 | 114 | let _ = std::fs::remove_dir_all(&dir); |
| 115 | 115 | } |
| @@ -600,7 +600,7 @@ async fn a_second_claim_loses_and_changes_nothing() { | ||
| 600 | 600 | // The loser must not have joined as anything at all. |
| 601 | 601 | assert_eq!( |
| 602 | 602 | scratch.store.workspace().await.unwrap().unwrap().name, |
| 603 | - "Izlek" | |
| 603 | + "İzlek" | |
| 604 | 604 | ); |
| 605 | 605 | assert_eq!(scratch.store.count_users("").await.unwrap(), 0); |
| 606 | 606 | let ws_id = scratch.store.workspace().await.unwrap().unwrap().id; |
| @@ -630,7 +630,7 @@ async fn concurrent_claims_produce_exactly_one_admin() { | ||
| 630 | 630 | claims.push(tokio::spawn(async move { |
| 631 | 631 | store |
| 632 | 632 | .claim_workspace( |
| 633 | - "Izlek", | |
| 633 | + "İzlek", | |
| 634 | 634 | &format!("claimant{i}@izlek.sh"), |
| 635 | 635 | &format!("Claimant {i}"), |
| 636 | 636 | &hash, |
| @@ -710,7 +710,7 @@ async fn workspace_defaults_match_the_settings_screen() { | ||
| 710 | 710 | let (ws, _) = scratch |
| 711 | 711 | .store |
| 712 | 712 | .claim_workspace( |
| 713 | - "Izlek", | |
| 713 | + "İzlek", | |
| 714 | 714 | "ada@izlek.sh", |
| 715 | 715 | "Ada", |
| 716 | 716 | &hash_password("tide-tables-1892").unwrap(), |
| @@ -744,7 +744,7 @@ async fn the_workspace_record_carries_the_sender_but_never_its_password() { | ||
| 744 | 744 | port: 587, |
| 745 | 745 | username: "izlek".into(), |
| 746 | 746 | password: Some("a-very-secret-string".into()), |
| 747 | - from_name: "Izlek".into(), | |
| 747 | + from_name: "İzlek".into(), | |
| 748 | 748 | from_address: "izlek@izlek.sh".into(), |
| 749 | 749 | }, |
| 750 | 750 | ) |
| @@ -755,7 +755,7 @@ async fn the_workspace_record_carries_the_sender_but_never_its_password() { | ||
| 755 | 755 | assert_eq!(ws.smtp_host.as_deref(), Some("smtp.fastmail.com")); |
| 756 | 756 | assert_eq!(ws.smtp_port, Some(587)); |
| 757 | 757 | assert_eq!(ws.smtp_username.as_deref(), Some("izlek")); |
| 758 | - assert_eq!(ws.smtp_from_name.as_deref(), Some("Izlek")); | |
| 758 | + assert_eq!(ws.smtp_from_name.as_deref(), Some("İzlek")); | |
| 759 | 759 | assert_eq!(ws.smtp_from_address.as_deref(), Some("izlek@izlek.sh")); |
| 760 | 760 | assert!(ws.smtp_password_set, "the screen must be able to say 'set'"); |
| 761 | 761 | |
| @@ -777,7 +777,7 @@ async fn a_save_with_no_password_typed_keeps_the_stored_one() { | ||
| 777 | 777 | port: 587, |
| 778 | 778 | username: "izlek".into(), |
| 779 | 779 | password: Some("keep-me".into()), |
| 780 | - from_name: "Izlek".into(), | |
| 780 | + from_name: "İzlek".into(), | |
| 781 | 781 | from_address: "izlek@izlek.sh".into(), |
| 782 | 782 | }; |
| 783 | 783 | scratch.store.set_sender(&ws_id, sender.clone()).await.unwrap(); |
| @@ -805,7 +805,7 @@ async fn a_typed_password_replaces_the_stored_one() { | ||
| 805 | 805 | port: 587, |
| 806 | 806 | username: "izlek".into(), |
| 807 | 807 | password: Some("the-old-one".into()), |
| 808 | - from_name: "Izlek".into(), | |
| 808 | + from_name: "İzlek".into(), | |
| 809 | 809 | from_address: "izlek@izlek.sh".into(), |
| 810 | 810 | }; |
| 811 | 811 | 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() { | ||
| 833 | 833 | port: 587, |
| 834 | 834 | username: "izlek".into(), |
| 835 | 835 | password: Some("a-very-secret-string".into()), |
| 836 | - from_name: "Izlek".into(), | |
| 836 | + from_name: "İzlek".into(), | |
| 837 | 837 | from_address: "izlek@izlek.sh".into(), |
| 838 | 838 | }, |
| 839 | 839 | ) |
| @@ -876,7 +876,7 @@ async fn a_password_that_will_not_decrypt_reads_back_as_none() { | ||
| 876 | 876 | port: 587, |
| 877 | 877 | username: "izlek".into(), |
| 878 | 878 | password: Some("a-very-secret-string".into()), |
| 879 | - from_name: "Izlek".into(), | |
| 879 | + from_name: "İzlek".into(), | |
| 880 | 880 | from_address: "izlek@izlek.sh".into(), |
| 881 | 881 | }, |
| 882 | 882 | ) |
| @@ -910,7 +910,7 @@ async fn a_password_that_will_not_decrypt_reads_back_as_none() { | ||
| 910 | 910 | port: 587, |
| 911 | 911 | username: "izlek".into(), |
| 912 | 912 | password: Some("a-fresh-password".into()), |
| 913 | - from_name: "Izlek".into(), | |
| 913 | + from_name: "İzlek".into(), | |
| 914 | 914 | from_address: "izlek@izlek.sh".into(), |
| 915 | 915 | }, |
| 916 | 916 | ) |
| @@ -1282,7 +1282,7 @@ async fn the_store_is_usable_behind_a_trait_object() { | ||
| 1282 | 1282 | let scratch = Scratch::open().await; |
| 1283 | 1283 | let store: &dyn Store = &scratch.store; |
| 1284 | 1284 | store |
| 1285 | - .claim_workspace("Izlek", "ada@izlek.sh", "Ada", "$argon2id$fake") | |
| 1285 | + .claim_workspace("İzlek", "ada@izlek.sh", "Ada", "$argon2id$fake") | |
| 1286 | 1286 | .await |
| 1287 | 1287 | .unwrap(); |
| 1288 | 1288 | assert!(store.workspace().await.unwrap().is_some()); |
| @@ -1541,7 +1541,7 @@ async fn accounts() -> (Scratch, Accounts) { | ||
| 1541 | 1541 | async fn claimed() -> (Scratch, Accounts, User) { |
| 1542 | 1542 | let (scratch, accounts) = accounts().await; |
| 1543 | 1543 | let (_, signed_in) = accounts |
| 1544 | - .claim_workspace("Izlek", "ada@izlek.sh", "Ada", "tide-tables-1892") | |
| 1544 | + .claim_workspace("İzlek", "ada@izlek.sh", "Ada", "tide-tables-1892") | |
| 1545 | 1545 | .await |
| 1546 | 1546 | .unwrap(); |
| 1547 | 1547 | (scratch, accounts, signed_in.user) |
| @@ -1551,10 +1551,10 @@ async fn claimed() -> (Scratch, Accounts, User) { | ||
| 1551 | 1551 | async fn claiming_makes_an_admin_and_signs_them_in() { |
| 1552 | 1552 | let (_scratch, accounts) = accounts().await; |
| 1553 | 1553 | let (workspace, signed_in) = accounts |
| 1554 | - .claim_workspace("Izlek", "ada@izlek.sh", "Ada", "tide-tables-1892") | |
| 1554 | + .claim_workspace("İzlek", "ada@izlek.sh", "Ada", "tide-tables-1892") | |
| 1555 | 1555 | .await |
| 1556 | 1556 | .unwrap(); |
| 1557 | - assert_eq!(workspace.name, "Izlek"); | |
| 1557 | + assert_eq!(workspace.name, "İzlek"); | |
| 1558 | 1558 | assert_eq!(signed_in.user.role, Role::Admin); |
| 1559 | 1559 | |
| 1560 | 1560 | // The cookie value works and is not what is stored. |
| @@ -1577,7 +1577,7 @@ async fn claiming_makes_an_admin_and_signs_them_in() { | ||
| 1577 | 1577 | async fn the_claim_screen_enforces_its_own_password_rules() { |
| 1578 | 1578 | let (_scratch, accounts) = accounts().await; |
| 1579 | 1579 | let too_short = accounts |
| 1580 | - .claim_workspace("Izlek", "ada@izlek.sh", "Ada", "short") | |
| 1580 | + .claim_workspace("İzlek", "ada@izlek.sh", "Ada", "short") | |
| 1581 | 1581 | .await; |
| 1582 | 1582 | assert!(matches!( |
| 1583 | 1583 | too_short, |
| @@ -4523,7 +4523,7 @@ async fn nobody_is_mailed_about_what_they_did_themselves() { | ||
| 4523 | 4523 | let engine = Engine::new(store.clone(), mailer.clone(), "https://izlek.sh"); |
| 4524 | 4524 | |
| 4525 | 4525 | // Emre is the only assignee and Emre moved the card. Telling him what he |
| 4526 | - // just did is how a person learns to filter Izlek's mail away. | |
| 4526 | + // just did is how a person learns to filter İzlek's mail away. | |
| 4527 | 4527 | let transition = moved_to(&store, &workspace, &task, "Backlog", "Done", &mate).await; |
| 4528 | 4528 | let report = engine.on_transition(&transition).await.unwrap(); |
| 4529 | 4529 | assert_eq!(report, Default::default()); |
| @@ -5049,7 +5049,7 @@ async fn an_invite_mail_is_owed_without_a_rule() { | ||
| 5049 | 5049 | let now = OffsetDateTime::now_utc(); |
| 5050 | 5050 | |
| 5051 | 5051 | let invite = store |
| 5052 | - .queue_invite("newcomer@izlek.sh", "Join Izlek", "Come aboard.", now) | |
| 5052 | + .queue_invite("newcomer@izlek.sh", "Join İzlek", "Come aboard.", now) | |
| 5053 | 5053 | .await |
| 5054 | 5054 | .unwrap(); |
| 5055 | 5055 | assert_eq!(invite.rule_id, None); |
| @@ -5069,7 +5069,7 @@ async fn an_invite_mail_with_no_sender_is_held_not_failed() { | ||
| 5069 | 5069 | let (dir, store, _workspace, _admin) = shared().await; |
| 5070 | 5070 | let now = OffsetDateTime::now_utc(); |
| 5071 | 5071 | store |
| 5072 | - .queue_invite("newcomer@izlek.sh", "Join Izlek", "Come aboard.", now) | |
| 5072 | + .queue_invite("newcomer@izlek.sh", "Join İzlek", "Come aboard.", now) | |
| 5073 | 5073 | .await |
| 5074 | 5074 | .unwrap(); |
| 5075 | 5075 |
crates/izlek-web/Cargo.tomlmodified+1 -1
| @@ -4,7 +4,7 @@ version.workspace = true | ||
| 4 | 4 | edition.workspace = true |
| 5 | 5 | license.workspace = true |
| 6 | 6 | repository.workspace = true |
| 7 | -description = "Izlek web app: topcoat UI, routes and the server" | |
| 7 | +description = "İzlek web app: topcoat UI, routes and the server" | |
| 8 | 8 | |
| 9 | 9 | [dependencies] |
| 10 | 10 | topcoat = { version = "0.6.2", default-features = false, features = [ |
crates/izlek-web/src/auth.rsmodified+1 -1
| @@ -25,7 +25,7 @@ use crate::settings::encode_q; | ||
| 25 | 25 | |
| 26 | 26 | /// The workspace has exactly one name and no screen that sets it, so it is a |
| 27 | 27 | /// constant rather than a field nobody was shown. |
| 28 | -pub const WORKSPACE_NAME: &str = "Izlek"; | |
| 28 | +pub const WORKSPACE_NAME: &str = "İzlek"; | |
| 29 | 29 | |
| 30 | 30 | /// The name and address an invitation was made out to. |
| 31 | 31 | #[derive(Clone, Debug, Serialize)] |
crates/izlek-web/src/detail.rsmodified+1 -1
| @@ -1938,7 +1938,7 @@ pub async fn task_modal(cx: &Cx, task_id: &str, confirm_delete: bool, tab: Tab) | ||
| 1938 | 1938 | for entry in &detail.activity { |
| 1939 | 1939 | <div class="activity-line"> |
| 1940 | 1940 | <span class="activity-stamp">(entry.moment_in(zone))</span> |
| 1941 | - <strong class="activity-who">(entry.actor.as_ref().map(|person| person.display_name.clone()).unwrap_or_else(|| "Izlek".to_string()))</strong> | |
| 1941 | + <strong class="activity-who">(entry.actor.as_ref().map(|person| person.display_name.clone()).unwrap_or_else(|| "İzlek".to_string()))</strong> | |
| 1942 | 1942 | <span class="activity-what">(entry.sentence())</span> |
| 1943 | 1943 | </div> |
| 1944 | 1944 | } |
crates/izlek-web/src/files.rsmodified+2 -2
| @@ -154,7 +154,7 @@ fn contains(haystack: &[u8], needle: &[u8]) -> bool { | ||
| 154 | 154 | /// true for a mime type a browser renders on its own ([`renders_inline`]) and |
| 155 | 155 | /// the caller did not ask for a forced download (`?dl=1`) — an uploaded HTML |
| 156 | 156 | /// or SVG file stays `attachment` either way, so it is offered to save rather |
| 157 | -/// than run on Izlek's origin. The ASCII fallback keeps only characters no | |
| 157 | +/// than run on İzlek's origin. The ASCII fallback keeps only characters no | |
| 158 | 158 | /// quoting scheme could turn into a delimiter or a control character; |
| 159 | 159 | /// `filename*` carries the real name, percent-encoded, for browsers that read |
| 160 | 160 | /// it. |
| @@ -207,7 +207,7 @@ pub(crate) enum ViewerKind { | ||
| 207 | 207 | Video, |
| 208 | 208 | Audio, |
| 209 | 209 | Pdf, |
| 210 | - /// A spreadsheet Izlek reads itself and lays out as a table — no browser | |
| 210 | + /// A spreadsheet İzlek reads itself and lays out as a table — no browser | |
| 211 | 211 | /// renders one, so this is the only viewer whose bytes are parsed here |
| 212 | 212 | /// rather than handed to an element. |
| 213 | 213 | Sheet, |
crates/izlek-web/src/i18n.rsmodified+4 -4
| @@ -612,16 +612,16 @@ pub fn t(lang: Lang, key: Key) -> &'static str { | ||
| 612 | 612 | |
| 613 | 613 | (LinkExpiredTitle, En) => "This link no longer works", |
| 614 | 614 | (LinkExpiredTitle, Tr) => "Bu bağlantı artık çalışmıyor", |
| 615 | - (SetupTitle, En) => "Set up Izlek", | |
| 616 | - (SetupTitle, Tr) => "Izlek'i kur", | |
| 615 | + (SetupTitle, En) => "Set up İzlek", | |
| 616 | + (SetupTitle, Tr) => "İzlek'i kur", | |
| 617 | 617 | (SetupSub, En) => "First account becomes the admin.", |
| 618 | 618 | (SetupSub, Tr) => "İlk hesap yönetici olur.", |
| 619 | 619 | (YourNameLabel, En) => "YOUR NAME", |
| 620 | 620 | (YourNameLabel, Tr) => "ADIN", |
| 621 | 621 | (CreateWorkspace, En) => "Create workspace", |
| 622 | 622 | (CreateWorkspace, Tr) => "Çalışma alanı oluştur", |
| 623 | - (SignInTitle, En) => "Sign in to Izlek", | |
| 624 | - (SignInTitle, Tr) => "Izlek'e giriş yap", | |
| 623 | + (SignInTitle, En) => "Sign in to İzlek", | |
| 624 | + (SignInTitle, Tr) => "İzlek'e giriş yap", | |
| 625 | 625 | (SignInSub, En) => { |
| 626 | 626 | "Accounts are made by the admin. If you were invited, use the link you were sent — it is where you choose your password." |
| 627 | 627 | } |
crates/izlek-web/src/main.rsmodified+1 -1
| @@ -16,7 +16,7 @@ async fn main() { | ||
| 16 | 16 | // config/izlek.toml is read here, before anything is opened, and written with |
| 17 | 17 | // development defaults if it is not there yet. A broken key stops the |
| 18 | 18 | // boot with its name in the message: the failure this prevents is not an |
| 19 | - // empty database, it is a second Izlek writing a different file while | |
| 19 | + // empty database, it is a second İzlek writing a different file while | |
| 20 | 20 | // everyone believes they share a board. |
| 21 | 21 | let config = match izlek_core::Config::load() { |
| 22 | 22 | Ok(config) => config, |
crates/izlek-web/src/server.rsmodified+6 -6
| @@ -158,7 +158,7 @@ pub fn mail(cx: &Cx) -> Mail { | ||
| 158 | 158 | .unwrap_or_else(Mail::silent) |
| 159 | 159 | } |
| 160 | 160 | |
| 161 | -/// The application cookie jar, with the attributes every Izlek cookie wants. | |
| 161 | +/// The application cookie jar, with the attributes every İzlek cookie wants. | |
| 162 | 162 | fn app_cookies(cx: &Cx) -> impl Cookies { |
| 163 | 163 | cookies(cx) |
| 164 | 164 | .default_secure(true) |
| @@ -182,7 +182,7 @@ pub fn presented_cookie(cx: &Cx, name: &str) -> Option<String> { | ||
| 182 | 182 | } |
| 183 | 183 | |
| 184 | 184 | /// A stable-enough label for the client, for rate limiting. A proxy header is |
| 185 | -/// only trusted because Izlek is meant to sit behind one; the address bucket is | |
| 185 | +/// only trusted because İzlek is meant to sit behind one; the address bucket is | |
| 186 | 186 | /// the limit that actually protects the Argon2 work either way. |
| 187 | 187 | /// |
| 188 | 188 | /// 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<Refusal> { | ||
| 634 | 634 | /// function handler answers with a redirect back to the page it came from, and |
| 635 | 635 | /// the value — the whole refusal — sits in a body nobody will ever look at. |
| 636 | 636 | /// The click then looks like nothing happening, which is the worst answer |
| 637 | -/// Izlek can give. | |
| 637 | +/// İzlek can give. | |
| 638 | 638 | /// |
| 639 | 639 | /// So the refusal is copied onto the `Location`, as `?refusal=<code>&on=<call>`, |
| 640 | 640 | /// 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<String> { | ||
| 712 | 712 | } |
| 713 | 713 | // The Location we are rewriting came from the form post's Referer, and on a |
| 714 | 714 | // cross-origin post the Referer is whatever the other site is. Sending the |
| 715 | - // browser back there would make Izlek an open redirect, so the address is | |
| 715 | + // browser back there would make İzlek an open redirect, so the address is | |
| 716 | 716 | // rebuilt from its path and query alone and anything that is not a plain |
| 717 | 717 | // absolute path is answered with the board. |
| 718 | 718 | let here = same_origin(location); |
| @@ -785,7 +785,7 @@ mod refusal_redirect_tests { | ||
| 785 | 785 | } |
| 786 | 786 | |
| 787 | 787 | // The Referer of a cross-origin post is the other site's address, and it |
| 788 | - // reaches this function as the Location. Izlek answers on its own ground or | |
| 788 | + // reaches this function as the Location. İzlek answers on its own ground or | |
| 789 | 789 | // not at all. |
| 790 | 790 | #[test] |
| 791 | 791 | fn another_site_cannot_be_redirected_to() { |
| @@ -804,7 +804,7 @@ mod refusal_redirect_tests { | ||
| 804 | 804 | } |
| 805 | 805 | // An address with a path keeps the path — it is read as a path on this |
| 806 | 806 | // site, which is the point: whatever the Referer claimed, the browser |
| 807 | - // is sent somewhere on Izlek. | |
| 807 | + // is sent somewhere on İzlek. | |
| 808 | 808 | let carried = carrying( |
| 809 | 809 | "http://elsewhere.example/steal?task=DZ-01", |
| 810 | 810 | "cycle", |
crates/izlek-web/src/settings.rsmodified+3 -3
| @@ -460,7 +460,7 @@ async fn save_sender( | ||
| 460 | 460 | /// went so the answer survives a reload. |
| 461 | 461 | /// |
| 462 | 462 | /// It goes to their own address and nowhere else. A test that could be |
| 463 | -/// pointed at an address somebody typed would be a way to make Izlek mail a | |
| 463 | +/// pointed at an address somebody typed would be a way to make İzlek mail a | |
| 464 | 464 | /// stranger on demand, which is a thing worth not building. |
| 465 | 465 | #[route(POST "/api/send_test_mail")] |
| 466 | 466 | async fn send_test_mail(cx: &Cx) -> Result<(StatusCode, HeaderMap, Vec<u8>)> { |
| @@ -924,7 +924,7 @@ async fn sender_now(cx: &Cx, zone: time::UtcOffset) -> Result<Sender> { | ||
| 924 | 924 | |
| 925 | 925 | /// Whether a typed address is an origin a link can be built on: an http or |
| 926 | 926 | /// https scheme, a host after it, and no whitespace anywhere. A path is |
| 927 | -/// allowed — Izlek behind `example.com/izlek` is a real deployment — but a | |
| 927 | +/// allowed — İzlek behind `example.com/izlek` is a real deployment — but a | |
| 928 | 928 | /// bare host or a mail address is not. |
| 929 | 929 | fn is_origin(value: &str) -> bool { |
| 930 | 930 | let Some(rest) = value |
| @@ -1258,7 +1258,7 @@ async fn settings_page(cx: &Cx) -> Result { | ||
| 1258 | 1258 | type="text" |
| 1259 | 1259 | name="from_name" |
| 1260 | 1260 | value=(sender.from_name.clone()) |
| 1261 | - placeholder="Izlek" | |
| 1261 | + placeholder="İzlek" | |
| 1262 | 1262 | > |
| 1263 | 1263 | </label> |
| 1264 | 1264 | <label class="field"> |
crates/izlek-web/tests/http.rsmodified+8 -8
| @@ -450,7 +450,7 @@ async fn sender_saved(app: &App, admin: &str) -> bool { | ||
| 450 | 450 | ("port", "465"), |
| 451 | 451 | ("username", "izlek"), |
| 452 | 452 | ("password", SENDER_PASSWORD), |
| 453 | - ("from_name", "Izlek"), | |
| 453 | + ("from_name", "İzlek"), | |
| 454 | 454 | ("from_address", "izlek@izlek.sh"), |
| 455 | 455 | ], |
| 456 | 456 | ) |
| @@ -2378,7 +2378,7 @@ async fn only_an_admin_may_write_the_sender() { | ||
| 2378 | 2378 | ("port", "587"), |
| 2379 | 2379 | ("username", "emre"), |
| 2380 | 2380 | ("password", "let-me-in"), |
| 2381 | - ("from_name", "Izlek"), | |
| 2381 | + ("from_name", "İzlek"), | |
| 2382 | 2382 | ("from_address", "emre@izlek.sh"), |
| 2383 | 2383 | ], |
| 2384 | 2384 | ) |
| @@ -2415,7 +2415,7 @@ async fn a_signed_out_browser_may_not_write_the_sender() { | ||
| 2415 | 2415 | ("port", "587"), |
| 2416 | 2416 | ("username", "nobody"), |
| 2417 | 2417 | ("password", "let-me-in"), |
| 2418 | - ("from_name", "Izlek"), | |
| 2418 | + ("from_name", "İzlek"), | |
| 2419 | 2419 | ("from_address", "nobody@izlek.sh"), |
| 2420 | 2420 | ], |
| 2421 | 2421 | ) |
| @@ -2449,7 +2449,7 @@ async fn an_edit_with_no_password_typed_keeps_the_stored_one() { | ||
| 2449 | 2449 | ("port", "587"), |
| 2450 | 2450 | ("username", "izlek"), |
| 2451 | 2451 | ("password", ""), |
| 2452 | - ("from_name", "Izlek"), | |
| 2452 | + ("from_name", "İzlek"), | |
| 2453 | 2453 | ("from_address", "izlek@izlek.sh"), |
| 2454 | 2454 | ], |
| 2455 | 2455 | ) |
| @@ -2486,7 +2486,7 @@ async fn a_first_sender_with_no_password_is_refused_and_says_why() { | ||
| 2486 | 2486 | ("port", "587"), |
| 2487 | 2487 | ("username", "izlek"), |
| 2488 | 2488 | ("password", ""), |
| 2489 | - ("from_name", "Izlek"), | |
| 2489 | + ("from_name", "İzlek"), | |
| 2490 | 2490 | ("from_address", "izlek@izlek.sh"), |
| 2491 | 2491 | ], |
| 2492 | 2492 | ) |
| @@ -2545,7 +2545,7 @@ async fn a_sender_field_that_cannot_work_is_refused_by_name() { | ||
| 2545 | 2545 | ("port", "587"), |
| 2546 | 2546 | ("username", "izlek"), |
| 2547 | 2547 | ("password", SENDER_PASSWORD), |
| 2548 | - ("from_name", "Izlek"), | |
| 2548 | + ("from_name", "İzlek"), | |
| 2549 | 2549 | ("from_address", "izlek@izlek.sh"), |
| 2550 | 2550 | ]; |
| 2551 | 2551 | for (key, value) in *overrides { |
| @@ -6328,7 +6328,7 @@ async fn a_member_who_may_only_read_still_gets_the_tab_strip() { | ||
| 6328 | 6328 | ); |
| 6329 | 6329 | } |
| 6330 | 6330 | |
| 6331 | -/// A spreadsheet has no browser element behind it: Izlek reads the workbook | |
| 6331 | +/// A spreadsheet has no browser element behind it: İzlek reads the workbook | |
| 6332 | 6332 | /// itself and lays the sheet out as a table, tab strip and all. The upload is |
| 6333 | 6333 | /// a real xlsx, so this covers the sniffer, the reader and the view together. |
| 6334 | 6334 | #[tokio::test] |
| @@ -6497,7 +6497,7 @@ async fn an_admin_sets_the_address_mail_links_point_at() { | ||
| 6497 | 6497 | ("port", "465"), |
| 6498 | 6498 | ("username", "izlek"), |
| 6499 | 6499 | ("password", SENDER_PASSWORD), |
| 6500 | - ("from_name", "Izlek"), | |
| 6500 | + ("from_name", "İzlek"), | |
| 6501 | 6501 | ("from_address", "izlek@izlek.sh"), |
| 6502 | 6502 | ("public_url", public_url), |
| 6503 | 6503 | ], |