iz
Clone
https://git.tahinli.com/Tahinli/iz.git
0 watching·0 forks·Rust·AGPL-3.0·567.3 KiB·3950ace·Tahinli·27 days ago·34 commits
| 1 | //! Strings of the shell and of the first pages: the topbar, the restart bar, the 404 page and the |
| 2 | //! start page. Area modules hold their own strings as they arrive. |
| 3 | |
| 4 | use super::Lang; |
| 5 | |
| 6 | /// One variant per phrase. Add a variant, then its English and Turkish texts in [`t`]. |
| 7 | #[derive(Clone, Copy, Debug, PartialEq, Eq)] |
| 8 | pub enum K { |
| 9 | /// The badge shown beside an administrator's name. |
| 10 | Admin, |
| 11 | /// The link on the 404 page that returns to the start page. |
| 12 | BackHome, |
| 13 | /// The sentence under the 404 title. |
| 14 | NotFoundBody, |
| 15 | /// The title of the page that says a sign-in did not finish. |
| 16 | SignInFailedTitle, |
| 17 | /// The sentence under that title. |
| 18 | SignInFailedBody, |
| 19 | /// The button that starts a sign-in. |
| 20 | SignIn, |
| 21 | /// The title of the page for a member who has no access to the board. |
| 22 | NoAccessTitle, |
| 23 | /// The sentence under that title. |
| 24 | NoAccessBody, |
| 25 | /// The button in the user menu that ends the session. |
| 26 | SignOut, |
| 27 | /// The title of the page that says sign-in is not possible right now. |
| 28 | SignInUnavailableTitle, |
| 29 | /// The sentence under that title. |
| 30 | SignInUnavailableBody, |
| 31 | /// The title of the page that says a file cannot be sent right now. |
| 32 | FilesUnavailableTitle, |
| 33 | /// The sentence under that title. |
| 34 | FilesUnavailableBody, |
| 35 | /// The title of the 404 page. |
| 36 | NotFoundTitle, |
| 37 | /// The sentence on the signed-out start page. |
| 38 | SignedOutBody, |
| 39 | /// The title of the start page: the app name, shown big. |
| 40 | SignedOutTitle, |
| 41 | /// The bar shown while the server cannot be reached. |
| 42 | ServerRestarting, |
| 43 | /// The accessible name of the service switcher. |
| 44 | Services, |
| 45 | /// The first link on every page, which jumps past the topbar. |
| 46 | SkipToContent, |
| 47 | } |
| 48 | |
| 49 | /// The text of `key` in `lang`. |
| 50 | pub fn t(lang: Lang, key: K) -> &'static str { |
| 51 | match (key, lang) { |
| 52 | (K::Admin, Lang::En) => "Admin", |
| 53 | (K::Admin, Lang::Tr) => "Yönetici", |
| 54 | (K::BackHome, Lang::En) => "Back to the start", |
| 55 | (K::SignIn, Lang::En) => "Sign in", |
| 56 | (K::SignIn, Lang::Tr) => "Oturum aç", |
| 57 | (K::SignOut, Lang::En) => "Sign out", |
| 58 | (K::SignOut, Lang::Tr) => "Çıkış yap", |
| 59 | (K::SignInFailedTitle, Lang::En) => "Sign-in did not finish", |
| 60 | (K::SignInFailedTitle, Lang::Tr) => "Oturum açma tamamlanamadı", |
| 61 | (K::SignInFailedBody, Lang::En) => { |
| 62 | "Start again from the sign-in button. If it keeps failing, ask an administrator." |
| 63 | } |
| 64 | (K::SignInFailedBody, Lang::Tr) => { |
| 65 | "Oturum aç düğmesinden yeniden başlayın. Sürerse bir yöneticiye sorun." |
| 66 | } |
| 67 | (K::SignInUnavailableTitle, Lang::En) => "Sign-in is unavailable", |
| 68 | (K::SignInUnavailableTitle, Lang::Tr) => "Oturum açma şu an kullanılamıyor", |
| 69 | (K::SignInUnavailableBody, Lang::En) => { |
| 70 | "The account service cannot be reached right now. Try again in a few minutes." |
| 71 | } |
| 72 | (K::SignInUnavailableBody, Lang::Tr) => { |
| 73 | "Hesap servisine şu anda ulaşılamıyor. Birkaç dakika sonra tekrar deneyin." |
| 74 | } |
| 75 | (K::FilesUnavailableTitle, Lang::En) => "The file cannot be opened right now", |
| 76 | (K::FilesUnavailableTitle, Lang::Tr) => "Dosya şu an açılamıyor", |
| 77 | (K::FilesUnavailableBody, Lang::En) => { |
| 78 | "The file is kept in the Files service, which cannot be reached right now. Try again in a few minutes." |
| 79 | } |
| 80 | (K::FilesUnavailableBody, Lang::Tr) => { |
| 81 | "Bu dosya dış dosya hizmetinde saklanıyor ve şu anda o hizmete ulaşılamıyor. Birkaç dakika sonra tekrar deneyin." |
| 82 | } |
| 83 | (K::NoAccessTitle, Lang::En) => "No access to this board", |
| 84 | (K::NoAccessTitle, Lang::Tr) => "Bu panoya erişiminiz yok", |
| 85 | (K::NoAccessBody, Lang::En) => { |
| 86 | "Your account is known, but no administrator has given it access. Ask one to add you." |
| 87 | } |
| 88 | (K::NoAccessBody, Lang::Tr) => { |
| 89 | "Hesabınız tanınıyor, ama bir yönetici erişim vermemiş. Eklenmeniz için bir yöneticiye sorun." |
| 90 | } |
| 91 | (K::BackHome, Lang::Tr) => "Başlangıca dön", |
| 92 | (K::NotFoundBody, Lang::En) => "The page does not exist, or you do not have access to it.", |
| 93 | (K::NotFoundBody, Lang::Tr) => "Sayfa yok ya da bu sayfayı görme izniniz yok.", |
| 94 | (K::NotFoundTitle, Lang::En) => "Page not found", |
| 95 | (K::NotFoundTitle, Lang::Tr) => "Sayfa bulunamadı", |
| 96 | (K::SignedOutBody, Lang::En) => "Sign in with your family account to use the board.", |
| 97 | (K::SignedOutBody, Lang::Tr) => "Pano için aile hesabınızla oturum açın.", |
| 98 | (K::SignedOutTitle, Lang::En) => "iz", |
| 99 | (K::SignedOutTitle, Lang::Tr) => "iz", |
| 100 | (K::ServerRestarting, Lang::En) => "The server is restarting. Reconnecting…", |
| 101 | (K::ServerRestarting, Lang::Tr) => "Sunucu yeniden başlatılıyor. Yeniden bağlanılıyor…", |
| 102 | (K::Services, Lang::En) => "Services", |
| 103 | (K::Services, Lang::Tr) => "Hizmetler", |
| 104 | (K::SkipToContent, Lang::En) => "Skip to content", |
| 105 | (K::SkipToContent, Lang::Tr) => "İçeriğe geç", |
| 106 | } |
| 107 | } |