use forge_core::store::commit_status::StatusState; use super::Lang; strings! { K; SearchWord => "search", "arama"; SearchFailed => "The search could not run. Check the pattern; regex mode uses extended regular expressions.", "Arama çalıştırılamadı. Deseni kontrol edin; regex kipi genişletilmiş düzenli ifadeleri kullanır."; SearchCodePlaceholder => "Search code", "Kodda ara"; SearchButton => "Search", "Ara"; RefField => "Ref ", "Referans "; PathField => "Path ", "Yol "; MatchCase => " Match case", " Büyük/küçük harfe duyarlı"; RegexOption => " Regex", " Düzenli ifade"; SearchFilesAt => "Search the files at ", "Dosyaları şurada ara: "; NoMatches => "No matches.", "Eşleşme yok."; ShowingFirst => " (showing the first ", " (ilk "; ShowingFirstEnd => ")", " gösteriliyor)"; CloneTitle => "Clone", "Klonla"; CopyCloneUrl => "Copy clone URL", "Klon adresini kopyala"; CloneCopied => "Copied", "Kopyalandı"; CloneCopyFailed => "Copy failed", "Kopyalanamadı"; BranchesTitle => "Branches", "Dallar"; FilterRefs => "Filter branches and tags", "Dal ve etiketleri süz"; ViewAllBranches => "View all branches", "Tüm dalları gör"; ViewAllTags => "View all tags", "Tüm etiketleri gör"; EmptyRepoPush => "This repository is empty.", "Bu depo boş."; OverHttps => "Over HTTPS", "HTTPS üzerinden"; OverSsh => "Over SSH", "SSH üzerinden"; DownloadZip => "Download ZIP", "ZIP olarak indir"; DownloadTarGz => "Download tar.gz", "tar.gz olarak indir"; RecentPushes => "Recent pushes", "Son gönderimler"; HadRecentPushes => " had recent pushes ", " dalına son zamanlarda gönderim yapıldı "; CompareAndPr => "Compare & pull request", "Karşılaştır ve çekme isteği aç"; BranchLabel => "Branch", "Dal"; KindDir => "dir", "dizin"; KindFile => "file", "dosya"; KindExec => "exec", "çalıştırılabilir"; KindLink => "link", "bağlantı"; KindSubmodule => "submodule", "alt modül"; Rendered => "Rendered", "Önizleme"; SourceToggle => "Source", "Kaynak"; HistoryLink => "History", "Geçmiş"; RawLink => "Raw", "Ham"; DownloadLink => "Download", "İndir"; SymlinkPrefix => "Symbolic link → ", "Sembolik bağlantı → "; SubmodulePrefix => "Submodule at commit ", "Alt modül, şu commit'te: "; SubmoduleSuffix => ". Its contents are not in this repository.", ". İçeriği bu depoda yok."; TruncatedPrefix => "Showing the first 1 MiB of this file. ", "Bu dosyanın ilk 1 MiB'ı gösteriliyor. "; ViewFullRaw => "View raw", "Ham görüntüle"; LivePathGone => "This path no longer exists in this ref.", "Bu yol bu referansta artık yok."; StatusAdded => "added", "eklendi"; StatusDeleted => "deleted", "silindi"; StatusModified => "modified", "değiştirildi"; StatusRenamed => "renamed", "yeniden adlandırıldı"; StatusCopied => "copied", "kopyalandı"; StatusTypeChanged => "type changed", "tür değiştirildi"; NoFileChanges => "No file changes.", "Dosya değişikliği yok."; BinaryFileChanged => "Binary file changed", "İkili dosya değiştirildi"; DiffTooLargePrefix => "Diff too large; ", "Fark çok büyük; "; ViewFile => "view file", "dosyayı görüntüle"; DiffTooLarge => "Diff too large.", "Fark çok büyük."; CommentOnLine => "Comment on this line", "Bu satıra yorum yap"; AddReviewComment => "Add review comment", "İnceleme yorumu ekle"; StartReview => "Start a review", "İnceleme başlat"; CommentLabel => "Comment", "Yorum"; AddSingleComment => "Add single comment", "Tek yorum ekle"; ThisCommit => "this commit", "bu commit"; ShowFullMessage => "Show full message", "Tam mesajı göster"; CommitStatusPrefix => "Commit status: ", "Commit durumu: "; StateSuccess => "success", "başarılı"; StateFailure => "failure", "başarısız"; StateError => "error", "hata"; StatePending => "pending", "bekliyor"; NoChecksReported => "No checks reported", "Hiç kontrol bildirilmedi"; AllChecksPassed => "All checks have passed", "Tüm kontroller geçti"; ChecksPending => "Checks pending", "Kontroller bekliyor"; SomeChecksFailed => "Some checks failed", "Bazı kontroller başarısız oldu"; ShowChecks => "Show checks", "Kontrolleri göster"; DetailsLink => "Details", "Ayrıntılar"; AuthorLabel => "Author ", "Yazar "; CommitterLabel => "Committer ", "Commit eden "; CoAuthorAnd => " and ", " ve "; CoAuthorsLabel => "Co-authors", "Ortak yazarlar"; RootCommit => "Root commit (no parents)", "Kök commit (üst commit yok)"; CommitChangesLabel => "Changes in this commit", "Bu commit'teki değişiklikler"; ParentLabel => "Parent: ", "Üst commit: "; BrowseFiles => "Browse files at this commit", "Bu commit'teki dosyalara göz at"; SigVerified => "Verified", "Doğrulandı"; SigUnverified => "Unverified", "Doğrulanmadı"; CommitsOn => "Commits on ", "Referanstaki commit'ler: "; FilteredTo => "Filtered to ", "Şuna göre filtrelendi: "; ClearFilter => "Clear filter", "Filtreyi temizle"; NoCommits => "No commits yet.", "Henüz commit yok."; NothingHere => "Nothing here yet.", "Henüz burada bir şey yok."; DefaultBadge => "default", "varsayılan"; TagsTitle => "Tags", "Etiketler"; ForkedFrom => "forked from ", "Şu depodan çatallandı: "; MirrorOf => "Mirror of ", "Yansı kaynağı: "; NotSyncedYet => "not synced yet", "henüz eşitlenmedi"; ForkButton => "Fork", "Çatalla"; StarsAria => "Stars", "Yıldızlar"; ArchivedNotice => "This repository is archived. It is read-only.", "Bu depo arşivlendi. Salt okunurdur."; RepositoryNav => "Repository", "Depo"; TabIssues => "Issues", "Sorunlar"; TabPulls => "Pull requests", "Çekme istekleri"; TabCommits => "Commits", "Commitler"; TabReleases => "Releases", "Sürümler"; TabCi => "CI", "CI"; TabSettings => "Settings", "Ayarlar"; } pub fn match_summary(lang: Lang, matches: usize, files: usize) -> String { match lang { Lang::En => format!( "{matches} match{} in {files} file{}", if matches == 1 { "" } else { "es" }, if files == 1 { "" } else { "s" }, ), Lang::Tr => format!("{matches} eşleşme, {files} dosyada"), } } pub fn empty_repo_message(lang: Lang, branch: &str) -> String { match lang { Lang::En => format!("This repository has no commits on {branch}. Nothing to search yet."), Lang::Tr => { format!("Bu depoda {branch} dalında commit yok. Henüz aranacak bir şey yok.") } } } pub fn kind_label(lang: Lang, kind: &'static str) -> &'static str { let key = match kind { "dir" => K::KindDir, "file" => K::KindFile, "exec" => K::KindExec, "link" => K::KindLink, "submodule" => K::KindSubmodule, _ => return kind, }; t(lang, key) } pub fn lfs_stored(lang: Lang, size: &str) -> String { match lang { Lang::En => format!("Stored with Git LFS ({size})"), Lang::Tr => format!("Git LFS ile saklanıyor ({size})"), } } pub fn lfs_missing(lang: Lang, size: &str) -> String { match lang { Lang::En => { format!("Stored with Git LFS ({size}), but this forge does not have the object") } Lang::Tr => { format!("Git LFS ile saklanıyor ({size}), ancak bu forge sunucusunda bu nesne yok") } } } pub fn binary_note(lang: Lang, bytes: impl std::fmt::Display) -> String { match lang { Lang::En => { let bytes = bytes.to_string(); let unit = if bytes == "1" { "byte" } else { "bytes" }; format!("Binary file, {bytes} {unit}") } Lang::Tr => format!("İkili dosya, {bytes} bayt"), } } pub fn changed_files(lang: Lang, count: usize) -> String { match lang { Lang::En => format!("{count} changed file{}", if count == 1 { "" } else { "s" }), Lang::Tr => format!("{count} dosya değişti"), } } pub fn diff_truncated(lang: Lang, max: usize, subject: &str) -> String { match lang { Lang::En => format!("Showing the first {max} files; {subject} changes more."), Lang::Tr => { format!("İlk {max} dosya gösteriliyor; {subject} daha fazla değişiklik içeriyor.") } } } pub fn state_word(lang: Lang, state: StatusState) -> &'static str { let key = match state { StatusState::Pending => K::StatePending, StatusState::Success => K::StateSuccess, StatusState::Failure => K::StateFailure, StatusState::Error => K::StateError, }; t(lang, key) } pub fn signed_by(lang: Lang, signer: &str, key: &str) -> String { match lang { Lang::En => format!("Signed by {signer} with {key}"), Lang::Tr => format!("{signer} tarafından {key} ile imzalandı"), } } pub fn star_label(lang: Lang, starred: bool, stars: u64) -> String { match (lang, starred) { (Lang::En, true) => format!("Unstar {stars}"), (Lang::En, false) => format!("\u{2605} Star {stars}"), (Lang::Tr, true) => format!("Yıldızı kaldır {stars}"), (Lang::Tr, false) => format!("\u{2605} Yıldızla {stars}"), } } pub fn co_author_others(lang: Lang, count: usize) -> String { match lang { Lang::En => format!("+{count} others"), Lang::Tr => format!("+{count} kişi daha"), } } pub fn watching_count(lang: Lang, watchers: u64) -> String { match lang { Lang::En => format!("{watchers} watching"), Lang::Tr => format!("{watchers} izleyici"), } } pub fn forks_count(lang: Lang, forks: u64) -> String { match lang { Lang::En => format!("{forks} forks"), Lang::Tr => format!("{forks} çatal"), } } pub fn mirror_synced(lang: Lang) -> &'static str { match lang { Lang::En => "last synced ", Lang::Tr => "son eşitleme: ", } } pub fn mirror_sync_failed(lang: Lang) -> (&'static str, &'static str) { match lang { Lang::En => ("last sync ", " failed"), Lang::Tr => ("son eşitleme ", " başarısız oldu"), } }