fix(app): show what a trash restore kept, and drop stale trash translations
The desktop trash dialog sent the "N files stayed in the trash" sentence through ShowError. ArchiveFailures.Cause has no arm for it, so after a partial restore the red line and Narrator said "A file of the archive could not be read or written." The sentence itself appeared only in the tooltip. The same thing happened to an entry none of whose files matches its record. - ArchiveDialogViewModel.ShowMessage shows a sentence that is already localized. The trash dialog uses it for kept files, and its tooltip names the files kept (six of them, then "+ N more"). - ArchiveFailures.Cause passes FrameTrash's Archive.Error.TrashMismatch sentence through. It matches the sentence's text because the engine throws a plain InvalidDataException. Any other InvalidDataException, such as a sidecar that belongs to another sequence, still reads as a file error. - Archive.Trash.List, Tooltips.Archive.Trash and Tooltips.Archive.TrashRestore changed meaning in English: they now cover photo entries as well as sequences. They are removed from the 36 cultures other than en and it, so those cultures fall back to English and `i18n check` lists the keys as untranslated instead of showing the old sequence-only wording. - The XAML comments describe what the trash dialog and its error line show now. Tests: the dialog restores a photo entry and a sequence entry and checks which rows are left. A photo entry with one tampered file shows the KeptFiles sentence and keeps its row. An entry with every file tampered shows the TrashMismatch sentence. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 2524a11445c87d37625b01095ef7c2a84a2ee422)
This commit is contained in:
1 parent
13278710a2
commit
a133306fb0
77 files changed
+195
-115
No files matched your search
@@ -245,7 +245,6 @@
|
||||
<data name="Archive.Trash.Empty" xml:space="preserve"><value>ถังขยะว่างเปล่า</value></data>
|
||||
<data name="Archive.Trash.Failed" xml:space="preserve"><value>กู้คืนซีเควนซ์จากถังขยะไม่ได้</value></data>
|
||||
<data name="Archive.Trash.Heading" xml:space="preserve"><value>ถังขยะ · {0}</value></data>
|
||||
<data name="Archive.Trash.List" xml:space="preserve"><value>ซีเควนซ์ที่ลบแล้ว</value></data>
|
||||
<data name="Archive.Trash.Reading" xml:space="preserve"><value>กำลังอ่านถังขยะ…</value></data>
|
||||
<data name="Archive.Trash.Restore" xml:space="preserve"><value>กู้คืน</value></data>
|
||||
<data name="Archive.Trash.Restored.one" xml:space="preserve"><value>กู้คืน {0:N0} ซีเควนซ์แล้ว</value></data>
|
||||
|
||||
@@ -91,8 +91,6 @@
|
||||
<data name="Tooltips.Archive.TagsAdd" xml:space="preserve"><value>แท็กที่จะเพิ่ม คั่นด้วยเครื่องหมายจุลภาค</value></data>
|
||||
<data name="Tooltips.Archive.TagsRemove" xml:space="preserve"><value>แท็กที่จะเอาออก คั่นด้วยเครื่องหมายจุลภาค</value></data>
|
||||
<data name="Tooltips.Archive.TitleTemplate" xml:space="preserve"><value>เทมเพลตชื่อ ตัวแปร title คือชื่อปัจจุบัน · ตรวจสอบขณะพิมพ์</value></data>
|
||||
<data name="Tooltips.Archive.Trash" xml:space="preserve"><value>ซีเควนซ์ที่ลบออกจากคลังภาพนี้ ซึ่งกู้คืนได้ทุกรายการ</value></data>
|
||||
<data name="Tooltips.Archive.TrashRestore" xml:space="preserve"><value>ย้ายซีเควนซ์นี้กลับไปยังโฟลเดอร์เดิมและไลบรารี พร้อมการตั้งค่าและไฟล์เรนเดอร์</value></data>
|
||||
<data name="Tooltips.Archive.Verify" xml:space="preserve"><value>คำนวณแฮชของต้นฉบับทุกไฟล์ใหม่และรายงานไฟล์ที่เสื่อมสภาพ · อ่านทั้งคลังภาพ</value></data>
|
||||
<data name="Tooltips.Archive.YearRow" xml:space="preserve"><value>{0} · ลูกศรขวาเพื่อเปิดปี ลูกศรซ้ายเพื่อปิด</value></data>
|
||||
<data name="Tooltips.Archive.YearRowRtl" xml:space="preserve"><value>{0} · ลูกศรซ้ายเพื่อเปิดปี ลูกศรขวาเพื่อปิด</value></data>
|
||||
|
||||
Reference in new issue
Block a user