Stop localizing error *details* in the viewer (PR 15533 follow-up)

While it can't hurt to localize the main error-messages, also localizing the error *details* has always seemed somewhat unnecessary since those are only intended for debugging/development purposes. However, I can understand why that's done since the GENERIC viewer used to expose this information in the UI; via the `errorWrapper` UI that's removed in PR 15533.

At this point, when any errors are simply logged in the console, it no longer seems necessary to keep localizing the error *details* in the default viewer.
This commit is contained in:
Jonas Jenwald 2022-10-06 12:21:41 +02:00
parent 6bd5ef29ae
commit 2f238a11c1
3 changed files with 12 additions and 47 deletions

View file

@ -51,13 +51,6 @@ const DEFAULT_L10N_STRINGS = {
"find_match_count_limit[other]": "More than {{limit}} matches",
find_not_found: "Phrase not found",
error_version_info: "PDF.js v{{version}} (build: {{build}})",
error_message: "Message: {{message}}",
error_stack: "Stack: {{stack}}",
error_file: "File: {{file}}",
error_line: "Line: {{line}}",
rendering_error: "An error occurred while rendering the page.",
page_scale_width: "Page Width",
page_scale_fit: "Page Fit",
page_scale_auto: "Automatic Zoom",
@ -69,6 +62,7 @@ const DEFAULT_L10N_STRINGS = {
invalid_file_error: "Invalid or corrupted PDF file.",
missing_file_error: "Missing PDF file.",
unexpected_response_error: "Unexpected server response.",
rendering_error: "An error occurred while rendering the page.",
printing_not_supported:
"Warning: Printing is not fully supported by this browser.",