Localize the messages of failed indexing attempts

This commit is contained in:
Thorsten Sommer committed 2026-09-09 13:23:12 +02:00
1 parent 2b18d32bf2
commit f094cb6ac5
7 files changed
+66 -10

No files matched your search

@@ -78,6 +78,14 @@ internal static class FileExtractionErrorCodeExtensions
FileExtractionErrorCode.PDFIUM_UNAVAILABLE => TB("PDF system unavailable"),
FileExtractionErrorCode.PANDOC_UNAVAILABLE => TB("Pandoc unavailable"),
// Nothing about these lies in the file: AI Studio asked its runtime for the content and
// got back something it cannot work with. One name for all of them, because that is the
// one thing the user can tell from them:
FileExtractionErrorCode.INVALID_RESPONSE => TB("Internal error"),
FileExtractionErrorCode.INVALID_REQUEST => TB("Internal error"),
FileExtractionErrorCode.REQUEST_FAILED => TB("Internal error"),
FileExtractionErrorCode.INTERNAL => TB("Internal error"),
// Codes which say nothing beyond the message of the single file. The caller names those
// files itself and shows their messages instead:
_ => string.Empty,