mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
Re-factor the toggleButton
l10n in the PDFSidebar
class
Rather than "manually" looking up the l10n-string and then updating the button, we can (and probably even should) just update the l10n-id and then trigger proper translation for the button DOM-element.
This commit is contained in:
parent
0011a747f7
commit
bad00f825a
2 changed files with 7 additions and 10 deletions
|
@ -40,10 +40,6 @@ const DEFAULT_L10N_STRINGS = {
|
|||
|
||||
print_progress_percent: "{{progress}}%",
|
||||
|
||||
"toggle_sidebar.title": "Toggle Sidebar",
|
||||
"toggle_sidebar_notification2.title":
|
||||
"Toggle Sidebar (document contains outline/attachments/layers)",
|
||||
|
||||
additional_layers: "Additional Layers",
|
||||
page_landmark: "Page {{page}}",
|
||||
thumb_page_title: "Page {{page}}",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue