//! Strings of the shell and of the first pages: the topbar, the restart bar, the 404 page and the //! start page. Area modules hold their own strings as they arrive. use super::Lang; /// One variant per phrase. Add a variant, then its English and Turkish texts in [`t`]. #[derive(Clone, Copy, Debug, PartialEq, Eq)] pub enum K { /// The badge shown beside an administrator's name. Admin, /// The link on the 404 page that returns to the start page. BackHome, /// The sentence under the 404 title. NotFoundBody, /// The title of the page that says a sign-in did not finish. SignInFailedTitle, /// The sentence under that title. SignInFailedBody, /// The button that starts a sign-in. SignIn, /// The title of the page for a member who has no access to the board. NoAccessTitle, /// The sentence under that title. NoAccessBody, /// The button in the user menu that ends the session. SignOut, /// The title of the page that says sign-in is not possible right now. SignInUnavailableTitle, /// The sentence under that title. SignInUnavailableBody, /// The title of the page that says a file cannot be sent right now. FilesUnavailableTitle, /// The sentence under that title. FilesUnavailableBody, /// The title of the 404 page. NotFoundTitle, /// The sentence on the signed-out start page. SignedOutBody, /// The title of the start page: the app name, shown big. SignedOutTitle, /// The bar shown while the server cannot be reached. ServerRestarting, /// The accessible name of the service switcher. Services, /// The first link on every page, which jumps past the topbar. SkipToContent, } /// The text of `key` in `lang`. pub fn t(lang: Lang, key: K) -> &'static str { match (key, lang) { (K::Admin, Lang::En) => "Admin", (K::Admin, Lang::Tr) => "Yönetici", (K::BackHome, Lang::En) => "Back to the start", (K::SignIn, Lang::En) => "Sign in", (K::SignIn, Lang::Tr) => "Oturum aç", (K::SignOut, Lang::En) => "Sign out", (K::SignOut, Lang::Tr) => "Çıkış yap", (K::SignInFailedTitle, Lang::En) => "Sign-in did not finish", (K::SignInFailedTitle, Lang::Tr) => "Oturum açma tamamlanamadı", (K::SignInFailedBody, Lang::En) => { "Start again from the sign-in button. If it keeps failing, ask an administrator." } (K::SignInFailedBody, Lang::Tr) => { "Oturum aç düğmesinden yeniden başlayın. Sürerse bir yöneticiye sorun." } (K::SignInUnavailableTitle, Lang::En) => "Sign-in is unavailable", (K::SignInUnavailableTitle, Lang::Tr) => "Oturum açma şu an kullanılamıyor", (K::SignInUnavailableBody, Lang::En) => { "The account service cannot be reached right now. Try again in a few minutes." } (K::SignInUnavailableBody, Lang::Tr) => { "Hesap servisine şu anda ulaşılamıyor. Birkaç dakika sonra tekrar deneyin." } (K::FilesUnavailableTitle, Lang::En) => "The file cannot be opened right now", (K::FilesUnavailableTitle, Lang::Tr) => "Dosya şu an açılamıyor", (K::FilesUnavailableBody, Lang::En) => { "The file is kept in the Files service, which cannot be reached right now. Try again in a few minutes." } (K::FilesUnavailableBody, Lang::Tr) => { "Bu dosya dış dosya hizmetinde saklanıyor ve şu anda o hizmete ulaşılamıyor. Birkaç dakika sonra tekrar deneyin." } (K::NoAccessTitle, Lang::En) => "No access to this board", (K::NoAccessTitle, Lang::Tr) => "Bu panoya erişiminiz yok", (K::NoAccessBody, Lang::En) => { "Your account is known, but no administrator has given it access. Ask one to add you." } (K::NoAccessBody, Lang::Tr) => { "Hesabınız tanınıyor, ama bir yönetici erişim vermemiş. Eklenmeniz için bir yöneticiye sorun." } (K::BackHome, Lang::Tr) => "Başlangıca dön", (K::NotFoundBody, Lang::En) => "The page does not exist, or you do not have access to it.", (K::NotFoundBody, Lang::Tr) => "Sayfa yok ya da bu sayfayı görme izniniz yok.", (K::NotFoundTitle, Lang::En) => "Page not found", (K::NotFoundTitle, Lang::Tr) => "Sayfa bulunamadı", (K::SignedOutBody, Lang::En) => "Sign in with your family account to use the board.", (K::SignedOutBody, Lang::Tr) => "Pano için aile hesabınızla oturum açın.", (K::SignedOutTitle, Lang::En) => "iz", (K::SignedOutTitle, Lang::Tr) => "iz", (K::ServerRestarting, Lang::En) => "The server is restarting. Reconnecting…", (K::ServerRestarting, Lang::Tr) => "Sunucu yeniden başlatılıyor. Yeniden bağlanılıyor…", (K::Services, Lang::En) => "Services", (K::Services, Lang::Tr) => "Hizmetler", (K::SkipToContent, Lang::En) => "Skip to content", (K::SkipToContent, Lang::Tr) => "İçeriğe geç", } }