From cd7fe27468fbdc2ba5d2ec0726f48bcf996d3b14 Mon Sep 17 00:00:00 2001
From: Jonas Jenwald <jonas.jenwald@gmail.com>
Date: Sat, 5 Feb 2022 11:10:53 +0100
Subject: [PATCH] [GENERIC viewer] Use consistent casing, for the labels, in
 the findbar

Note that the *browser* findbar in Firefox uses "Title Case" for the labels, and it thus seem like a good idea to ensure that `PDFFindBar` in consistent with that.
Furthermore, the new label added in PR #13261 uses the "Title Case" format which means that currently the default viewer findbar looks inconsistent.

*Please note:* Based on the official Firefox localization docs, see https://firefox-source-docs.mozilla.org/l10n/overview.html#string-updates, changing only the casing should *not* require updating the key:
> 1) If the change is minor, like fixing a spelling error or case, the developer should update the en-US translation without changing the l10n-id.
---
 l10n/en-US/viewer.properties | 6 +++---
 web/viewer.html              | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/l10n/en-US/viewer.properties b/l10n/en-US/viewer.properties
index 6f5a77fe5..2eb5a8d92 100644
--- a/l10n/en-US/viewer.properties
+++ b/l10n/en-US/viewer.properties
@@ -168,10 +168,10 @@ find_previous.title=Find the previous occurrence of the phrase
 find_previous_label=Previous
 find_next.title=Find the next occurrence of the phrase
 find_next_label=Next
-find_highlight=Highlight all
-find_match_case_label=Match case
+find_highlight=Highlight All
+find_match_case_label=Match Case
 find_match_diacritics_label=Match Diacritics
-find_entire_word_label=Whole words
+find_entire_word_label=Whole Words
 find_reached_top=Reached top of document, continued from bottom
 find_reached_bottom=Reached end of document, continued from top
 # LOCALIZATION NOTE (find_match_count): The supported plural forms are
diff --git a/web/viewer.html b/web/viewer.html
index e0924307c..85808f030 100644
--- a/web/viewer.html
+++ b/web/viewer.html
@@ -130,15 +130,15 @@ See https://github.com/adobe-type-tools/cmap-resources
 
           <div id="findbarOptionsOneContainer">
             <input type="checkbox" id="findHighlightAll" class="toolbarField" tabindex="94">
-            <label for="findHighlightAll" class="toolbarLabel" data-l10n-id="find_highlight">Highlight all</label>
+            <label for="findHighlightAll" class="toolbarLabel" data-l10n-id="find_highlight">Highlight All</label>
             <input type="checkbox" id="findMatchCase" class="toolbarField" tabindex="95">
-            <label for="findMatchCase" class="toolbarLabel" data-l10n-id="find_match_case_label">Match case</label>
+            <label for="findMatchCase" class="toolbarLabel" data-l10n-id="find_match_case_label">Match Case</label>
           </div>
           <div id="findbarOptionsTwoContainer">
             <input type="checkbox" id="findMatchDiacritics" class="toolbarField" tabindex="96">
             <label for="findMatchDiacritics" class="toolbarLabel" data-l10n-id="find_match_diacritics_label">Match Diacritics</label>
             <input type="checkbox" id="findEntireWord" class="toolbarField" tabindex="97">
-            <label for="findEntireWord" class="toolbarLabel" data-l10n-id="find_entire_word_label">Whole words</label>
+            <label for="findEntireWord" class="toolbarLabel" data-l10n-id="find_entire_word_label">Whole Words</label>
           </div>
 
           <div id="findbarOptionsThreeContainer">