From 62c1a4e8c8c28f8fbabcbc7a0ded980914b8a391 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sat, 1 Oct 2022 17:23:27 +0200 Subject: [PATCH] [Firefox viewer] Skip unused printing-string in `DEFAULT_L10N_STRINGS` Given that the Firefox PDF Viewer uses the *browser* print UI, this fallback l10n-string isn't necessary in the MOZCENTRAL build. --- web/l10n_utils.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/l10n_utils.js b/web/l10n_utils.js index 6a5cdf9d2..fde03dcb0 100644 --- a/web/l10n_utils.js +++ b/web/l10n_utils.js @@ -38,8 +38,6 @@ const DEFAULT_L10N_STRINGS = { document_properties_linearized_yes: "Yes", document_properties_linearized_no: "No", - print_progress_percent: "{{progress}}%", - additional_layers: "Additional Layers", page_landmark: "Page {{page}}", thumb_page_title: "Page {{page}}", @@ -83,6 +81,9 @@ const DEFAULT_L10N_STRINGS = { editor_ink2_aria_label: "Draw Editor", editor_ink_canvas_aria_label: "User-created image", }; +if (typeof PDFJSDev === "undefined" || !PDFJSDev.test("MOZCENTRAL")) { + DEFAULT_L10N_STRINGS.print_progress_percent = "{{progress}}%"; +} function getL10nFallback(key, args) { switch (key) {