forge
Explore
Log in

Don't you dare go Hollow

iz

Clone
★ 0

0 watching0 forksRustAGPL-3.0567.3 KiB3950aceTahinli27 days ago34 commits

task.rs527 lines, 23.5 KiBHistoryRawDownload
1//! Strings of the task modal: its fields, its sections, the activity sentences and the message of every
2//! refused write. Each key has an English and a Turkish text in [`t`]; the match is exhaustive, so a
3//! missing translation does not compile.
4
5use super::Lang;
6
7/// One variant per phrase of the task modal.
8#[derive(Clone, Copy, Debug, PartialEq, Eq)]
9pub enum K {
10 /// The link that closes the modal.
11 Close,
12 /// The label of the title field.
13 Title,
14 /// The label of the description field.
15 Description,
16 /// The hint under the description: plain text, and which links are clickable.
17 DescriptionHint,
18 /// The label of the project field.
19 Project,
20 /// The label of the deadline day field.
21 Deadline,
22 /// The label of the meeting time field.
23 Meeting,
24 /// The hint under the meeting time: the viewer's zone.
25 MeetingHint,
26 /// The button that saves the fields.
27 Save,
28 /// The heading of the assignees section.
29 Assignees,
30 /// The label of the person picker.
31 AssignPick,
32 /// The button that assigns the picked person.
33 Assign,
34 /// The button that removes one assignee.
35 Remove,
36 /// The text when nobody is assigned.
37 NobodyAssigned,
38 /// The button that starts watching the task.
39 Watch,
40 /// The button that stops watching the task.
41 Unwatch,
42 /// The text while the viewer watches the task.
43 Watching,
44 /// The text while the viewer does not watch the task.
45 NotWatching,
46 /// The heading of the subtasks section.
47 Subtasks,
48 /// The text when the task has no subtasks.
49 NoSubtasks,
50 /// The label of the subtask title field.
51 SubtaskTitle,
52 /// The button that creates a subtask.
53 AddSubtask,
54 /// The heading of the parent section.
55 Parent,
56 /// The first entry of the parent picker: a top-level task.
57 NoParent,
58 /// The button that sets the parent.
59 SetParent,
60 /// The heading of the dependencies section.
61 Dependencies,
62 /// The label for tasks this one waits for.
63 BlockedBy,
64 /// The label for tasks waiting for this one.
65 Blocks,
66 /// The text when there are no dependencies.
67 NoLinks,
68 /// The label of the task picker for a dependency.
69 LinkWith,
70 /// The label of the direction picker for a dependency.
71 LinkDirection,
72 /// The direction "waits for".
73 DirBlockedBy,
74 /// The direction "is waited for by".
75 DirBlocks,
76 /// The button that adds a dependency.
77 AddLink,
78 /// The button that removes a dependency.
79 RemoveLink,
80 /// The heading of the comments section.
81 Comments,
82 /// The text when there are no comments.
83 NoComments,
84 /// The label of the comment field.
85 CommentBody,
86 /// The button that posts a comment.
87 PostComment,
88 /// The summary of a comment's editor.
89 EditComment,
90 /// The button that saves an edited comment.
91 SaveComment,
92 /// The button that deletes a comment.
93 DeleteComment,
94 /// The mark after a comment that was edited.
95 Edited,
96 /// The heading of the activity section.
97 Activity,
98 /// The text when there is no activity.
99 NoActivity,
100 /// The link to the next, older page of activity.
101 Older,
102 /// The link that opens the delete confirmation.
103 DeleteTask,
104 /// The question of the delete confirmation.
105 DeleteQuestion,
106 /// The consequence line of the delete confirmation.
107 DeleteConsequence,
108 /// The button that confirms the delete.
109 DeleteYes,
110 /// The notice after a change in the modal.
111 NoticeSaved,
112 /// Activity: the task was created.
113 ActCreated,
114 /// Activity: the task was edited.
115 ActEdited,
116 /// Activity: the task was moved.
117 ActMoved,
118 /// Activity: the task was deleted.
119 ActDeleted,
120 /// Activity: the task was placed at a new spot in its column (Manual sort).
121 ActReordered,
122 /// Activity: an administrator restored the deleted task.
123 ActRestored,
124 /// Activity: someone was assigned.
125 ActAssigned,
126 /// Activity: someone was unassigned.
127 ActUnassigned,
128 /// Activity: the project changed.
129 ActTagChanged,
130 /// Activity: the parent changed.
131 ActParentChanged,
132 /// Activity: a dependency was added.
133 ActLinkAdded,
134 /// Activity: a dependency was removed.
135 ActLinkRemoved,
136 /// Activity: the task was unblocked.
137 ActUnblocked,
138 /// Activity: the deadline was set.
139 ActDeadlineSet,
140 /// Activity: the deadline was cleared.
141 ActDeadlineCleared,
142 /// Activity: the meeting time was set.
143 ActClockSet,
144 /// Activity: the meeting time was cleared.
145 ActClockCleared,
146 /// Activity: watching changed.
147 ActWatchChanged,
148 /// Activity: a comment was added.
149 ActCommentAdded,
150 /// Activity: a comment was edited.
151 ActCommentEdited,
152 /// Activity: a comment was deleted.
153 ActCommentDeleted,
154 /// Activity: a file was added.
155 ActFileAdded,
156 /// Activity: a file was deleted.
157 ActFileDeleted,
158 /// Activity: a reminder was sent.
159 ActReminded,
160 /// Activity: an account changed.
161 ActAccountChanged,
162 /// Activity of a kind this build does not name.
163 ActOther,
164 /// Refused: the description is longer than the limit.
165 DescriptionTooLong,
166 /// Refused: the project does not exist on this board.
167 ErrProject,
168 /// Refused: the deadline is not a day.
169 ErrDeadline,
170 /// Refused: the meeting time is not a clock time.
171 ErrTime,
172 /// Refused: the meeting time needs a day, or does not exist in the viewer's zone.
173 ErrMeeting,
174 /// Refused: the person cannot be assigned.
175 ErrAssignee,
176 /// Refused: a task cannot depend on itself.
177 ErrSelf,
178 /// Refused: the dependency would close a cycle.
179 ErrCycle,
180 /// Refused: the parent is not a top-level task of this board, or the task is not a top-level task.
181 ErrParent,
182 /// Refused: the task has subtasks and so cannot become one.
183 ErrParentHasChildren,
184 /// Refused: the comment is empty or longer than the limit.
185 ErrComment,
186 /// Refused: the subtask title is empty or longer than the limit.
187 ErrSubtaskTitle,
188 /// Refused: the picked task is not on this board.
189 ErrOtherTask,
190 /// Refused: the picked direction is not one of the two.
191 ErrDirection,
192 /// The heading of the files section.
193 Files,
194 /// The text when the task has no files.
195 NoFiles,
196 /// The button that uploads the chosen files.
197 UploadFiles,
198 /// The label of the file input.
199 ChooseFiles,
200 /// The link that opens a file in the viewer.
201 ViewFile,
202 /// The link that saves a file.
203 DownloadFile,
204 /// The button that deletes a file.
205 DeleteFile,
206 /// Refused: a file is larger than the attachment limit.
207 ErrFileTooLarge,
208 /// Refused: the extension of a file is not allowed.
209 ErrFileType,
210 /// Refused: a file name is empty or not valid.
211 ErrFileName,
212 /// Refused: the upload had no file.
213 ErrNoFile,
214 /// Refused: the upload has more files than one request may carry.
215 ErrTooManyFiles,
216 /// Refused: the file could not be stored; nothing was kept.
217 ErrFileStore,
218 /// Refused: the attachment storage of the board is full.
219 ErrFileStorageFull,
220 /// The viewer message for a file that cannot be previewed (refused, or too large to read).
221 ViewerRefused,
222 /// The viewer message for a type with no preview.
223 NoPreview,
224 /// The viewer message when a text file was cut to its first part.
225 ViewerTruncated,
226 /// The viewer message when a sheet was cut to its first rows and columns.
227 ViewerCut,
228 /// The heading of the sheet tabs.
229 Sheets,
230 /// The label of a slide, before its number.
231 SlideLabel,
232 /// The text of a slide with no text.
233 NoSlideText,
234 /// The text of a sheet with no rows.
235 EmptySheet,
236}
237
238/// The text of `key` in `lang`.
239pub fn t(lang: Lang, key: K) -> &'static str {
240 match (key, lang) {
241 (K::Close, Lang::En) => "Close",
242 (K::Close, Lang::Tr) => "Kapat",
243 (K::Title, Lang::En) => "Title",
244 (K::Title, Lang::Tr) => "Başlık",
245 (K::Description, Lang::En) => "Description",
246 (K::Description, Lang::Tr) => "Açıklama",
247 (K::DescriptionHint, Lang::En) => {
248 "Plain text. Addresses that start with http:// or https:// become links."
249 }
250 (K::DescriptionHint, Lang::Tr) => {
251 "Düz metin. http:// veya https:// ile başlayan adresler bağlantı olur."
252 }
253 (K::Project, Lang::En) => "Project",
254 (K::Project, Lang::Tr) => "Proje",
255 (K::Deadline, Lang::En) => "Deadline",
256 (K::Deadline, Lang::Tr) => "Son tarih",
257 (K::Meeting, Lang::En) => "Meeting time",
258 (K::Meeting, Lang::Tr) => "Toplantı saati",
259 (K::MeetingHint, Lang::En) => "Optional. In your time zone. Needs a deadline day.",
260 (K::MeetingHint, Lang::Tr) => {
261 "İsteğe bağlı. Sizin saat diliminizde. Bir son tarih gerekir."
262 }
263 (K::Save, Lang::En) => "Save",
264 (K::Save, Lang::Tr) => "Kaydet",
265 (K::Assignees, Lang::En) => "Assignees",
266 (K::Assignees, Lang::Tr) => "Atananlar",
267 (K::AssignPick, Lang::En) => "Person",
268 (K::AssignPick, Lang::Tr) => "Kişi",
269 (K::Assign, Lang::En) => "Assign",
270 (K::Assign, Lang::Tr) => "Ata",
271 (K::Remove, Lang::En) => "Remove",
272 (K::Remove, Lang::Tr) => "Çıkar",
273 (K::NobodyAssigned, Lang::En) => "Nobody is assigned.",
274 (K::NobodyAssigned, Lang::Tr) => "Kimse atanmadı.",
275 (K::Watch, Lang::En) => "Watch",
276 (K::Watch, Lang::Tr) => "İzle",
277 (K::Unwatch, Lang::En) => "Stop watching",
278 (K::Unwatch, Lang::Tr) => "İzlemeyi bırak",
279 (K::Watching, Lang::En) => "You are watching this task.",
280 (K::Watching, Lang::Tr) => "Bu görevi izliyorsunuz.",
281 (K::NotWatching, Lang::En) => "You are not watching this task.",
282 (K::NotWatching, Lang::Tr) => "Bu görevi izlemiyorsunuz.",
283 (K::Subtasks, Lang::En) => "Subtasks",
284 (K::Subtasks, Lang::Tr) => "Alt görevler",
285 (K::NoSubtasks, Lang::En) => "No subtasks.",
286 (K::NoSubtasks, Lang::Tr) => "Alt görev yok.",
287 (K::SubtaskTitle, Lang::En) => "New subtask",
288 (K::SubtaskTitle, Lang::Tr) => "Yeni alt görev",
289 (K::AddSubtask, Lang::En) => "Add subtask",
290 (K::AddSubtask, Lang::Tr) => "Alt görev ekle",
291 (K::Parent, Lang::En) => "Parent task",
292 (K::Parent, Lang::Tr) => "Üst görev",
293 (K::NoParent, Lang::En) => "None (top-level task)",
294 (K::NoParent, Lang::Tr) => "Yok (ana görev)",
295 (K::SetParent, Lang::En) => "Set parent",
296 (K::SetParent, Lang::Tr) => "Üst görevi ayarla",
297 (K::Dependencies, Lang::En) => "Dependencies",
298 (K::Dependencies, Lang::Tr) => "Bağımlılıklar",
299 (K::BlockedBy, Lang::En) => "Waits for",
300 (K::BlockedBy, Lang::Tr) => "Bekliyor",
301 (K::Blocks, Lang::En) => "Blocks",
302 (K::Blocks, Lang::Tr) => "Engelliyor",
303 (K::NoLinks, Lang::En) => "No dependencies.",
304 (K::NoLinks, Lang::Tr) => "Bağımlılık yok.",
305 (K::LinkWith, Lang::En) => "Task",
306 (K::LinkWith, Lang::Tr) => "Görev",
307 (K::LinkDirection, Lang::En) => "Direction",
308 (K::LinkDirection, Lang::Tr) => "Yön",
309 (K::DirBlockedBy, Lang::En) => "This task waits for the chosen task",
310 (K::DirBlockedBy, Lang::Tr) => "Bu görev seçilen görevi bekler",
311 (K::DirBlocks, Lang::En) => "This task blocks the chosen task",
312 (K::DirBlocks, Lang::Tr) => "Bu görev seçilen görevi engeller",
313 (K::AddLink, Lang::En) => "Add dependency",
314 (K::AddLink, Lang::Tr) => "Bağımlılık ekle",
315 (K::RemoveLink, Lang::En) => "Remove",
316 (K::RemoveLink, Lang::Tr) => "Kaldır",
317 (K::Comments, Lang::En) => "Comments",
318 (K::Comments, Lang::Tr) => "Yorumlar",
319 (K::NoComments, Lang::En) => "No comments yet.",
320 (K::NoComments, Lang::Tr) => "Henüz yorum yok.",
321 (K::CommentBody, Lang::En) => "Comment",
322 (K::CommentBody, Lang::Tr) => "Yorum",
323 (K::PostComment, Lang::En) => "Post comment",
324 (K::PostComment, Lang::Tr) => "Yorumu gönder",
325 (K::EditComment, Lang::En) => "Edit",
326 (K::EditComment, Lang::Tr) => "Düzenle",
327 (K::SaveComment, Lang::En) => "Save comment",
328 (K::SaveComment, Lang::Tr) => "Yorumu kaydet",
329 (K::DeleteComment, Lang::En) => "Delete comment",
330 (K::DeleteComment, Lang::Tr) => "Yorumu sil",
331 (K::Edited, Lang::En) => "edited",
332 (K::Edited, Lang::Tr) => "düzenlendi",
333 (K::Activity, Lang::En) => "Activity",
334 (K::Activity, Lang::Tr) => "Etkinlik",
335 (K::NoActivity, Lang::En) => "No activity yet.",
336 (K::NoActivity, Lang::Tr) => "Henüz etkinlik yok.",
337 (K::Older, Lang::En) => "Older activity",
338 (K::Older, Lang::Tr) => "Daha eski etkinlik",
339 (K::DeleteTask, Lang::En) => "Delete task",
340 (K::DeleteTask, Lang::Tr) => "Görevi sil",
341 (K::DeleteQuestion, Lang::En) => "Delete this task?",
342 (K::DeleteQuestion, Lang::Tr) => "Bu görev silinsin mi?",
343 (K::DeleteConsequence, Lang::En) => {
344 "Its subtasks and comments go with it. This cannot be undone."
345 }
346 (K::DeleteConsequence, Lang::Tr) => {
347 "Alt görevleri ve yorumları da silinir. Bu geri alınamaz."
348 }
349 (K::DeleteYes, Lang::En) => "Delete the task",
350 (K::DeleteYes, Lang::Tr) => "Görevi sil",
351 (K::NoticeSaved, Lang::En) => "Saved.",
352 (K::NoticeSaved, Lang::Tr) => "Kaydedildi.",
353 (K::ActCreated, Lang::En) => "created the task",
354 (K::ActCreated, Lang::Tr) => "görevi oluşturdu",
355 (K::ActEdited, Lang::En) => "edited the task",
356 (K::ActEdited, Lang::Tr) => "görevi düzenledi",
357 (K::ActMoved, Lang::En) => "moved the task",
358 (K::ActMoved, Lang::Tr) => "görevi taşıdı",
359 (K::ActDeleted, Lang::En) => "deleted the task",
360 (K::ActDeleted, Lang::Tr) => "görevi sildi",
361 (K::ActReordered, Lang::En) => "moved the card within its column",
362 (K::ActReordered, Lang::Tr) => "kartı sütunu içinde taşıdı",
363 (K::ActRestored, Lang::En) => "restored the deleted task",
364 (K::ActRestored, Lang::Tr) => "silinen görevi geri yükledi",
365 (K::ActAssigned, Lang::En) => "assigned someone",
366 (K::ActAssigned, Lang::Tr) => "birini atadı",
367 (K::ActUnassigned, Lang::En) => "removed an assignee",
368 (K::ActUnassigned, Lang::Tr) => "bir atananı çıkardı",
369 (K::ActTagChanged, Lang::En) => "changed the project",
370 (K::ActTagChanged, Lang::Tr) => "projeyi değiştirdi",
371 (K::ActParentChanged, Lang::En) => "changed the parent task",
372 (K::ActParentChanged, Lang::Tr) => "üst görevi değiştirdi",
373 (K::ActLinkAdded, Lang::En) => "added a dependency",
374 (K::ActLinkAdded, Lang::Tr) => "bağımlılık ekledi",
375 (K::ActLinkRemoved, Lang::En) => "removed a dependency",
376 (K::ActLinkRemoved, Lang::Tr) => "bağımlılığı kaldırdı",
377 (K::ActUnblocked, Lang::En) => "was unblocked",
378 (K::ActUnblocked, Lang::Tr) => "engeli kalktı",
379 (K::ActDeadlineSet, Lang::En) => "set the deadline",
380 (K::ActDeadlineSet, Lang::Tr) => "son tarihi ayarladı",
381 (K::ActDeadlineCleared, Lang::En) => "cleared the deadline",
382 (K::ActDeadlineCleared, Lang::Tr) => "son tarihi kaldırdı",
383 (K::ActClockSet, Lang::En) => "set the meeting time",
384 (K::ActClockSet, Lang::Tr) => "toplantı saatini ayarladı",
385 (K::ActClockCleared, Lang::En) => "cleared the meeting time",
386 (K::ActClockCleared, Lang::Tr) => "toplantı saatini kaldırdı",
387 (K::ActWatchChanged, Lang::En) => "changed watching",
388 (K::ActWatchChanged, Lang::Tr) => "izleme durumunu değiştirdi",
389 (K::ActCommentAdded, Lang::En) => "commented",
390 (K::ActCommentAdded, Lang::Tr) => "yorum yaptı",
391 (K::ActCommentEdited, Lang::En) => "edited a comment",
392 (K::ActCommentEdited, Lang::Tr) => "bir yorumu düzenledi",
393 (K::ActCommentDeleted, Lang::En) => "deleted a comment",
394 (K::ActCommentDeleted, Lang::Tr) => "bir yorumu sildi",
395 (K::ActFileAdded, Lang::En) => "added a file",
396 (K::ActFileAdded, Lang::Tr) => "dosya ekledi",
397 (K::ActFileDeleted, Lang::En) => "deleted a file",
398 (K::ActFileDeleted, Lang::Tr) => "bir dosyayı sildi",
399 (K::ActReminded, Lang::En) => "was reminded",
400 (K::ActReminded, Lang::Tr) => "hatırlatıldı",
401 (K::ActAccountChanged, Lang::En) => "changed an account",
402 (K::ActAccountChanged, Lang::Tr) => "bir hesabı değiştirdi",
403 (K::ActOther, Lang::En) => "changed the task",
404 (K::ActOther, Lang::Tr) => "görevi değiştirdi",
405 (K::DescriptionTooLong, Lang::En) => "The description is longer than 20 000 characters.",
406 (K::DescriptionTooLong, Lang::Tr) => "Açıklama 20 000 karakterden uzun.",
407 (K::ErrProject, Lang::En) => "That project does not exist on this board.",
408 (K::ErrProject, Lang::Tr) => "Bu pano üzerinde böyle bir proje yok.",
409 (K::ErrDeadline, Lang::En) => "Use a deadline day such as 2026-10-28, or leave it empty.",
410 (K::ErrDeadline, Lang::Tr) => "2026-10-28 gibi bir gün yazın ya da boş bırakın.",
411 (K::ErrTime, Lang::En) => "Use a meeting time such as 09:30, or leave it empty.",
412 (K::ErrTime, Lang::Tr) => "09:30 gibi bir saat yazın ya da boş bırakın.",
413 (K::ErrMeeting, Lang::En) => {
414 "A meeting time needs a deadline day, and the time must exist in your time zone."
415 }
416 (K::ErrMeeting, Lang::Tr) => {
417 "Toplantı saati için bir son tarih gerekir ve saat sizin saat diliminizde olmalı."
418 }
419 (K::ErrAssignee, Lang::En) => "That person cannot be assigned.",
420 (K::ErrAssignee, Lang::Tr) => "Bu kişi atanamaz.",
421 (K::ErrSelf, Lang::En) => "A task cannot depend on itself.",
422 (K::ErrSelf, Lang::Tr) => "Bir görev kendisine bağımlı olamaz.",
423 (K::ErrCycle, Lang::En) => {
424 "This dependency would make a cycle of tasks waiting for each other."
425 }
426 (K::ErrCycle, Lang::Tr) => {
427 "Bu bağımlılık birbirini bekleyen görevlerden bir döngü oluşturur."
428 }
429 (K::ErrParent, Lang::En) => {
430 "A subtask must sit directly under a top-level task, and the parent must not be a subtask."
431 }
432 (K::ErrParent, Lang::Tr) => {
433 "Bir alt görev doğrudan bir ana göreve bağlanır ve üst görev de bir alt görev olamaz."
434 }
435 (K::ErrParentHasChildren, Lang::En) => "A task with subtasks cannot become a subtask.",
436 (K::ErrParentHasChildren, Lang::Tr) => "Alt görevi olan bir görev, alt görev yapılamaz.",
437 (K::ErrComment, Lang::En) => "Write a comment of 1 to 10 000 characters.",
438 (K::ErrComment, Lang::Tr) => "1 ile 10 000 karakter arasında bir yorum yazın.",
439 (K::ErrSubtaskTitle, Lang::En) => "Enter a subtask title of up to 200 characters.",
440 (K::ErrSubtaskTitle, Lang::Tr) => "En fazla 200 karakterlik bir alt görev başlığı girin.",
441 (K::ErrOtherTask, Lang::En) => "Pick a task from the list.",
442 (K::ErrOtherTask, Lang::Tr) => "Listeden bir görev seçin.",
443 (K::ErrDirection, Lang::En) => "Pick one of the two directions.",
444 (K::ErrDirection, Lang::Tr) => "İki yönden birini seçin.",
445 (K::Files, Lang::En) => "Files",
446 (K::Files, Lang::Tr) => "Dosyalar",
447 (K::NoFiles, Lang::En) => "No files yet.",
448 (K::NoFiles, Lang::Tr) => "Henüz dosya yok.",
449 (K::UploadFiles, Lang::En) => "Upload",
450 (K::UploadFiles, Lang::Tr) => "Yükle",
451 (K::ChooseFiles, Lang::En) => "Choose files",
452 (K::ChooseFiles, Lang::Tr) => "Dosya seç",
453 (K::ViewFile, Lang::En) => "View",
454 (K::ViewFile, Lang::Tr) => "Görüntüle",
455 (K::DownloadFile, Lang::En) => "Download",
456 (K::DownloadFile, Lang::Tr) => "İndir",
457 (K::DeleteFile, Lang::En) => "Delete",
458 (K::DeleteFile, Lang::Tr) => "Sil",
459 (K::ErrFileTooLarge, Lang::En) => "The file is larger than the attachment limit.",
460 (K::ErrFileTooLarge, Lang::Tr) => "Dosya ek boyut sınırından büyük.",
461 (K::ErrFileType, Lang::En) => "This file type is not allowed.",
462 (K::ErrFileType, Lang::Tr) => "Bu dosya türüne izin verilmiyor.",
463 (K::ErrFileName, Lang::En) => "The file name is not valid.",
464 (K::ErrFileName, Lang::Tr) => "Dosya adı geçerli değil.",
465 (K::ErrNoFile, Lang::En) => "Choose a file first.",
466 (K::ErrNoFile, Lang::Tr) => "Önce bir dosya seçin.",
467 (K::ErrTooManyFiles, Lang::En) => "Upload fewer files at once.",
468 (K::ErrTooManyFiles, Lang::Tr) => "Bir seferde daha az dosya yükleyin.",
469 (K::ErrFileStore, Lang::En) => "The file could not be saved. Try again.",
470 (K::ErrFileStore, Lang::Tr) => "Dosya kaydedilemedi. Tekrar deneyin.",
471 (K::ErrFileStorageFull, Lang::En) => {
472 "Attachment storage is full. Remove a file or ask an administrator."
473 }
474 (K::ErrFileStorageFull, Lang::Tr) => {
475 "Ek dosya depolama alanı dolu. Bir dosyayı silin ya da yöneticiye sorun."
476 }
477 (K::ViewerRefused, Lang::En) => "This file cannot be previewed. Download it to open it.",
478 (K::ViewerRefused, Lang::Tr) => "Bu dosya önizlenemiyor. Açmak için indirin.",
479 (K::NoPreview, Lang::En) => "No preview for this type. Download it to open it.",
480 (K::NoPreview, Lang::Tr) => "Bu tür için önizleme yok. Açmak için indirin.",
481 (K::ViewerTruncated, Lang::En) => "Showing the first part of the file.",
482 (K::ViewerTruncated, Lang::Tr) => "Dosyanın ilk kısmı gösteriliyor.",
483 (K::ViewerCut, Lang::En) => "Showing the first rows and columns only.",
484 (K::ViewerCut, Lang::Tr) => "Yalnızca ilk satırlar ve sütunlar gösteriliyor.",
485 (K::Sheets, Lang::En) => "Sheets",
486 (K::Sheets, Lang::Tr) => "Sayfalar",
487 (K::SlideLabel, Lang::En) => "Slide",
488 (K::SlideLabel, Lang::Tr) => "Slayt",
489 (K::NoSlideText, Lang::En) => "This slide has no text.",
490 (K::NoSlideText, Lang::Tr) => "Bu slaytta metin yok.",
491 (K::EmptySheet, Lang::En) => "This sheet is empty.",
492 (K::EmptySheet, Lang::Tr) => "Bu sayfa boş.",
493 }
494}
495
496/// The sentence of one activity row: the kind, in the viewer's language.
497pub fn activity_kind(lang: Lang, kind: &str) -> &'static str {
498 let key = match kind {
499 "task_created" => K::ActCreated,
500 "task_edited" => K::ActEdited,
501 "task_moved" => K::ActMoved,
502 "task_deleted" => K::ActDeleted,
503 "task_reordered" => K::ActReordered,
504 "task_restored" => K::ActRestored,
505 "assigned" => K::ActAssigned,
506 "unassigned" => K::ActUnassigned,
507 "tag_changed" => K::ActTagChanged,
508 "parent_changed" => K::ActParentChanged,
509 "link_added" => K::ActLinkAdded,
510 "link_removed" => K::ActLinkRemoved,
511 "unblocked" => K::ActUnblocked,
512 "deadline_set" => K::ActDeadlineSet,
513 "deadline_cleared" => K::ActDeadlineCleared,
514 "clock_set" => K::ActClockSet,
515 "clock_cleared" => K::ActClockCleared,
516 "watch_changed" => K::ActWatchChanged,
517 "comment_added" => K::ActCommentAdded,
518 "comment_edited" => K::ActCommentEdited,
519 "comment_deleted" => K::ActCommentDeleted,
520 "file_added" => K::ActFileAdded,
521 "file_deleted" => K::ActFileDeleted,
522 "reminded" => K::ActReminded,
523 "account_changed" => K::ActAccountChanged,
524 _ => K::ActOther,
525 };
526 t(lang, key)
527}