forge
Explore
Log in

Don't you dare go Hollow

forge

Clone
★ 0

0 watching0 forksRustAGPL-3.09.7 MiB37e985dTahinli4 hours ago363 commits

code.rs249 lines, 10.1 KiBHistoryRawDownload
1use forge_core::store::commit_status::StatusState;
2
3use super::Lang;
4
5strings! {
6 K;
7 SearchWord => "search", "arama";
8 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.";
9 SearchCodePlaceholder => "Search code", "Kodda ara";
10 SearchButton => "Search", "Ara";
11 RefField => "Ref ", "Referans ";
12 PathField => "Path ", "Yol ";
13 MatchCase => " Match case", " Büyük/küçük harfe duyarlı";
14 RegexOption => " Regex", " Düzenli ifade";
15 SearchFilesAt => "Search the files at ", "Dosyaları şurada ara: ";
16 NoMatches => "No matches.", "Eşleşme yok.";
17 ShowingFirst => " (showing the first ", " (ilk ";
18 ShowingFirstEnd => ")", " gösteriliyor)";
19 CloneTitle => "Clone", "Klonla";
20 CopyCloneUrl => "Copy clone URL", "Klon adresini kopyala";
21 CloneCopied => "Copied", "Kopyalandı";
22 CloneCopyFailed => "Copy failed", "Kopyalanamadı";
23 BranchesTitle => "Branches", "Dallar";
24 FilterRefs => "Filter branches and tags", "Dal ve etiketleri süz";
25 ViewAllBranches => "View all branches", "Tüm dalları gör";
26 ViewAllTags => "View all tags", "Tüm etiketleri gör";
27 EmptyRepoPush => "This repository is empty.", "Bu depo boş.";
28 OverHttps => "Over HTTPS", "HTTPS üzerinden";
29 OverSsh => "Over SSH", "SSH üzerinden";
30 DownloadZip => "Download ZIP", "ZIP olarak indir";
31 DownloadTarGz => "Download tar.gz", "tar.gz olarak indir";
32 RecentPushes => "Recent pushes", "Son gönderimler";
33 HadRecentPushes => " had recent pushes ", " dalına son zamanlarda gönderim yapıldı ";
34 CompareAndPr => "Compare & pull request", "Karşılaştır ve çekme isteği aç";
35 BranchLabel => "Branch", "Dal";
36 KindDir => "dir", "dizin";
37 KindFile => "file", "dosya";
38 KindExec => "exec", "çalıştırılabilir";
39 KindLink => "link", "bağlantı";
40 KindSubmodule => "submodule", "alt modül";
41 Rendered => "Rendered", "Önizleme";
42 SourceToggle => "Source", "Kaynak";
43 HistoryLink => "History", "Geçmiş";
44 RawLink => "Raw", "Ham";
45 DownloadLink => "Download", "İndir";
46 SymlinkPrefix => "Symbolic link → ", "Sembolik bağlantı → ";
47 SubmodulePrefix => "Submodule at commit ", "Alt modül, şu commit'te: ";
48 SubmoduleSuffix => ". Its contents are not in this repository.", ". İçeriği bu depoda yok.";
49 TruncatedPrefix => "Showing the first 1 MiB of this file. ", "Bu dosyanın ilk 1 MiB'ı gösteriliyor. ";
50 ViewFullRaw => "View raw", "Ham görüntüle";
51 LivePathGone => "This path no longer exists in this ref.", "Bu yol bu referansta artık yok.";
52 StatusAdded => "added", "eklendi";
53 StatusDeleted => "deleted", "silindi";
54 StatusModified => "modified", "değiştirildi";
55 StatusRenamed => "renamed", "yeniden adlandırıldı";
56 StatusCopied => "copied", "kopyalandı";
57 StatusTypeChanged => "type changed", "tür değiştirildi";
58 NoFileChanges => "No file changes.", "Dosya değişikliği yok.";
59 BinaryFileChanged => "Binary file changed", "İkili dosya değiştirildi";
60 DiffTooLargePrefix => "Diff too large; ", "Fark çok büyük; ";
61 ViewFile => "view file", "dosyayı görüntüle";
62 DiffTooLarge => "Diff too large.", "Fark çok büyük.";
63 CommentOnLine => "Comment on this line", "Bu satıra yorum yap";
64 AddReviewComment => "Add review comment", "İnceleme yorumu ekle";
65 StartReview => "Start a review", "İnceleme başlat";
66 CommentLabel => "Comment", "Yorum";
67 AddSingleComment => "Add single comment", "Tek yorum ekle";
68 ThisCommit => "this commit", "bu commit";
69 ShowFullMessage => "Show full message", "Tam mesajı göster";
70 CommitStatusPrefix => "Commit status: ", "Commit durumu: ";
71 StateSuccess => "success", "başarılı";
72 StateFailure => "failure", "başarısız";
73 StateError => "error", "hata";
74 StatePending => "pending", "bekliyor";
75 NoChecksReported => "No checks reported", "Hiç kontrol bildirilmedi";
76 AllChecksPassed => "All checks have passed", "Tüm kontroller geçti";
77 ChecksPending => "Checks pending", "Kontroller bekliyor";
78 SomeChecksFailed => "Some checks failed", "Bazı kontroller başarısız oldu";
79 ShowChecks => "Show checks", "Kontrolleri göster";
80 DetailsLink => "Details", "Ayrıntılar";
81 AuthorLabel => "Author ", "Yazar ";
82 CommitterLabel => "Committer ", "Commit eden ";
83 CoAuthorAnd => " and ", " ve ";
84 CoAuthorsLabel => "Co-authors", "Ortak yazarlar";
85 RootCommit => "Root commit (no parents)", "Kök commit (üst commit yok)";
86 CommitChangesLabel => "Changes in this commit", "Bu commit'teki değişiklikler";
87 ParentLabel => "Parent: ", "Üst commit: ";
88 BrowseFiles => "Browse files at this commit", "Bu commit'teki dosyalara göz at";
89 SigVerified => "Verified", "Doğrulandı";
90 SigUnverified => "Unverified", "Doğrulanmadı";
91 CommitsOn => "Commits on ", "Referanstaki commit'ler: ";
92 FilteredTo => "Filtered to ", "Şuna göre filtrelendi: ";
93 ClearFilter => "Clear filter", "Filtreyi temizle";
94 NoCommits => "No commits yet.", "Henüz commit yok.";
95 NothingHere => "Nothing here yet.", "Henüz burada bir şey yok.";
96 DefaultBadge => "default", "varsayılan";
97 TagsTitle => "Tags", "Etiketler";
98 ForkedFrom => "forked from ", "Şu depodan çatallandı: ";
99 MirrorOf => "Mirror of ", "Yansı kaynağı: ";
100 NotSyncedYet => "not synced yet", "henüz eşitlenmedi";
101 ForkButton => "Fork", "Çatalla";
102 StarsAria => "Stars", "Yıldızlar";
103 ArchivedNotice => "This repository is archived. It is read-only.", "Bu depo arşivlendi. Salt okunurdur.";
104 RepositoryNav => "Repository", "Depo";
105 TabIssues => "Issues", "Sorunlar";
106 TabPulls => "Pull requests", "Çekme istekleri";
107 TabCommits => "Commits", "Commitler";
108 TabReleases => "Releases", "Sürümler";
109 TabCi => "CI", "CI";
110 TabSettings => "Settings", "Ayarlar";
111}
112
113pub fn match_summary(lang: Lang, matches: usize, files: usize) -> String {
114 match lang {
115 Lang::En => format!(
116 "{matches} match{} in {files} file{}",
117 if matches == 1 { "" } else { "es" },
118 if files == 1 { "" } else { "s" },
119 ),
120 Lang::Tr => format!("{matches} eşleşme, {files} dosyada"),
121 }
122}
123
124pub fn empty_repo_message(lang: Lang, branch: &str) -> String {
125 match lang {
126 Lang::En => format!("This repository has no commits on {branch}. Nothing to search yet."),
127 Lang::Tr => {
128 format!("Bu depoda {branch} dalında commit yok. Henüz aranacak bir şey yok.")
129 }
130 }
131}
132
133pub fn kind_label(lang: Lang, kind: &'static str) -> &'static str {
134 let key = match kind {
135 "dir" => K::KindDir,
136 "file" => K::KindFile,
137 "exec" => K::KindExec,
138 "link" => K::KindLink,
139 "submodule" => K::KindSubmodule,
140 _ => return kind,
141 };
142 t(lang, key)
143}
144
145pub fn lfs_stored(lang: Lang, size: &str) -> String {
146 match lang {
147 Lang::En => format!("Stored with Git LFS ({size})"),
148 Lang::Tr => format!("Git LFS ile saklanıyor ({size})"),
149 }
150}
151
152pub fn lfs_missing(lang: Lang, size: &str) -> String {
153 match lang {
154 Lang::En => {
155 format!("Stored with Git LFS ({size}), but this forge does not have the object")
156 }
157 Lang::Tr => {
158 format!("Git LFS ile saklanıyor ({size}), ancak bu forge sunucusunda bu nesne yok")
159 }
160 }
161}
162
163pub fn binary_note(lang: Lang, bytes: impl std::fmt::Display) -> String {
164 match lang {
165 Lang::En => {
166 let bytes = bytes.to_string();
167 let unit = if bytes == "1" { "byte" } else { "bytes" };
168 format!("Binary file, {bytes} {unit}")
169 }
170 Lang::Tr => format!("İkili dosya, {bytes} bayt"),
171 }
172}
173
174pub fn changed_files(lang: Lang, count: usize) -> String {
175 match lang {
176 Lang::En => format!("{count} changed file{}", if count == 1 { "" } else { "s" }),
177 Lang::Tr => format!("{count} dosya değişti"),
178 }
179}
180
181pub fn diff_truncated(lang: Lang, max: usize, subject: &str) -> String {
182 match lang {
183 Lang::En => format!("Showing the first {max} files; {subject} changes more."),
184 Lang::Tr => {
185 format!("İlk {max} dosya gösteriliyor; {subject} daha fazla değişiklik içeriyor.")
186 }
187 }
188}
189
190pub fn state_word(lang: Lang, state: StatusState) -> &'static str {
191 let key = match state {
192 StatusState::Pending => K::StatePending,
193 StatusState::Success => K::StateSuccess,
194 StatusState::Failure => K::StateFailure,
195 StatusState::Error => K::StateError,
196 };
197 t(lang, key)
198}
199
200pub fn signed_by(lang: Lang, signer: &str, key: &str) -> String {
201 match lang {
202 Lang::En => format!("Signed by {signer} with {key}"),
203 Lang::Tr => format!("{signer} tarafından {key} ile imzalandı"),
204 }
205}
206
207pub fn star_label(lang: Lang, starred: bool, stars: u64) -> String {
208 match (lang, starred) {
209 (Lang::En, true) => format!("Unstar {stars}"),
210 (Lang::En, false) => format!("\u{2605} Star {stars}"),
211 (Lang::Tr, true) => format!("Yıldızı kaldır {stars}"),
212 (Lang::Tr, false) => format!("\u{2605} Yıldızla {stars}"),
213 }
214}
215
216pub fn co_author_others(lang: Lang, count: usize) -> String {
217 match lang {
218 Lang::En => format!("+{count} others"),
219 Lang::Tr => format!("+{count} kişi daha"),
220 }
221}
222
223pub fn watching_count(lang: Lang, watchers: u64) -> String {
224 match lang {
225 Lang::En => format!("{watchers} watching"),
226 Lang::Tr => format!("{watchers} izleyici"),
227 }
228}
229
230pub fn forks_count(lang: Lang, forks: u64) -> String {
231 match lang {
232 Lang::En => format!("{forks} forks"),
233 Lang::Tr => format!("{forks} çatal"),
234 }
235}
236
237pub fn mirror_synced(lang: Lang) -> &'static str {
238 match lang {
239 Lang::En => "last synced ",
240 Lang::Tr => "son eşitleme: ",
241 }
242}
243
244pub fn mirror_sync_failed(lang: Lang) -> (&'static str, &'static str) {
245 match lang {
246 Lang::En => ("last sync ", " failed"),
247 Lang::Tr => ("son eşitleme ", " başarısız oldu"),
248 }
249}