| 1 | |
| 2 | |
| 3 | |
| 4 | use super::Lang; |
| 5 | |
| 6 | |
| 7 | #[derive(Clone, Copy, Debug, PartialEq, Eq)] |
| 8 | pub enum K { |
| 9 | |
| 10 | Admin, |
| 11 | |
| 12 | BackHome, |
| 13 | |
| 14 | NotFoundBody, |
| 15 | |
| 16 | NotFoundTitle, |
| 17 | |
| 18 | ServerRestarting, |
| 19 | |
| 20 | Services, |
| 21 | |
| 22 | SkipToContent, |
| 23 | } |
| 24 | |
| 25 | |
| 26 | pub fn t(lang: Lang, key: K) -> &'static str { |
| 27 | match (key, lang) { |
| 28 | (K::Admin, Lang::En) => "Admin", |
| 29 | (K::Admin, Lang::Tr) => "Yönetici", |
| 30 | (K::BackHome, Lang::En) => "Back to the start", |
| 31 | (K::BackHome, Lang::Tr) => "Başlangıca dön", |
| 32 | (K::NotFoundBody, Lang::En) => "The page does not exist, or you do not have access to it.", |
| 33 | (K::NotFoundBody, Lang::Tr) => "Sayfa yok ya da bu sayfayı görme izniniz yok.", |
| 34 | (K::NotFoundTitle, Lang::En) => "Page not found", |
| 35 | (K::NotFoundTitle, Lang::Tr) => "Sayfa bulunamadı", |
| 36 | (K::ServerRestarting, Lang::En) => "The server is restarting. Reconnecting…", |
| 37 | (K::ServerRestarting, Lang::Tr) => "Sunucu yeniden başlatılıyor. Yeniden bağlanılıyor…", |
| 38 | (K::Services, Lang::En) => "Services", |
| 39 | (K::Services, Lang::Tr) => "Hizmetler", |
| 40 | (K::SkipToContent, Lang::En) => "Skip to content", |
| 41 | (K::SkipToContent, Lang::Tr) => "İçeriğe geç", |
| 42 | } |
| 43 | } |