Commit 582a21e5 authored by John Lee's avatar John Lee Committed by Commit Bot

PDF Viewer: Add strings to two-page view menu

Bug: 1084620
Change-Id: I90e303699df432f20ebb81d47587bff47419feb0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2317824Reviewed-by: default avatarLei Zhang <thestig@chromium.org>
Reviewed-by: default avatardpapad <dpapad@chromium.org>
Commit-Queue: John Lee <johntlee@chromium.org>
Cr-Commit-Position: refs/heads/master@{#792026}
parent ba57ef14
...@@ -37,10 +37,10 @@ void AddCommonStrings(base::Value* dict) { ...@@ -37,10 +37,10 @@ void AddCommonStrings(base::Value* dict) {
{"pageReload", IDS_PDF_PAGE_RELOAD_BUTTON}, {"pageReload", IDS_PDF_PAGE_RELOAD_BUTTON},
{"tooltipFitToPage", IDS_PDF_TOOLTIP_FIT_PAGE}, {"tooltipFitToPage", IDS_PDF_TOOLTIP_FIT_PAGE},
{"tooltipFitToWidth", IDS_PDF_TOOLTIP_FIT_WIDTH}, {"tooltipFitToWidth", IDS_PDF_TOOLTIP_FIT_WIDTH},
{"tooltipTwoUpViewDisable", IDS_PDF_TOOLTIP_TWO_UP_VIEW_DISABLE},
{"tooltipTwoUpViewEnable", IDS_PDF_TOOLTIP_TWO_UP_VIEW_ENABLE},
{"tooltipZoomIn", IDS_PDF_TOOLTIP_ZOOM_IN}, {"tooltipZoomIn", IDS_PDF_TOOLTIP_ZOOM_IN},
{"tooltipZoomOut", IDS_PDF_TOOLTIP_ZOOM_OUT}, {"tooltipZoomOut", IDS_PDF_TOOLTIP_ZOOM_OUT},
{"twoUpViewDisable", IDS_PDF_TWO_UP_VIEW_DISABLE},
{"twoUpViewEnable", IDS_PDF_TWO_UP_VIEW_ENABLE},
}; };
for (const auto& resource : kPdfResources) for (const auto& resource : kPdfResources)
dict->SetStringKey(resource.name, l10n_util::GetStringUTF16(resource.id)); dict->SetStringKey(resource.name, l10n_util::GetStringUTF16(resource.id));
......
...@@ -192,14 +192,14 @@ ...@@ -192,14 +192,14 @@
<span class="check-container"> <span class="check-container">
<iron-icon icon="pdf:check" hidden="[[twoUpViewEnabled_]]"></iron-icon> <iron-icon icon="pdf:check" hidden="[[twoUpViewEnabled_]]"></iron-icon>
</span> </span>
Single page view $i18n{twoUpViewDisable}
</button> </button>
<button id="two-page-view-button" <button id="two-page-view-button"
class="dropdown-item" on-click="onTwoPageViewClick_"> class="dropdown-item" on-click="onTwoPageViewClick_">
<span class="check-container"> <span class="check-container">
<iron-icon icon="pdf:check" hidden="[[!twoUpViewEnabled_]]"></iron-icon> <iron-icon icon="pdf:check" hidden="[[!twoUpViewEnabled_]]"></iron-icon>
</span> </span>
Two page view $i18n{twoUpViewEnable}
</button> </button>
</cr-action-menu> </cr-action-menu>
......
...@@ -55,14 +55,11 @@ ...@@ -55,14 +55,11 @@
<message name="IDS_PDF_TOOLTIP_FIT_WIDTH" desc="Button tooltip for the button which zooms a PDF so that the width of a single page fills the window horizontally"> <message name="IDS_PDF_TOOLTIP_FIT_WIDTH" desc="Button tooltip for the button which zooms a PDF so that the width of a single page fills the window horizontally">
Fit to width Fit to width
</message> </message>
<!-- TODO(nigi): Remove the translateable="false" attributes for messages <message name="IDS_PDF_TWO_UP_VIEW_ENABLE" desc="Button text for the button which enables displaying two pages of a PDF on the screen horizontally">
IDS_PDF_TOOLTIP_TWO_UP_VIEW_ENABLE and IDS_PDF_TOOLTIP_TWO_UP_VIEW_DISABLE Two page view
once their tooltips are finalized. --> </message>
<message name="IDS_PDF_TOOLTIP_TWO_UP_VIEW_ENABLE" desc="Button tooltip for the button which enables displaying two pages of a PDF on the screen horizontally" translateable="false"> <message name="IDS_PDF_TWO_UP_VIEW_DISABLE" desc="Button text for the button which stops displaying two pages of a PDF on the screen horizontally">
Enable two-up view Single page view
</message>
<message name="IDS_PDF_TOOLTIP_TWO_UP_VIEW_DISABLE" desc="Button tooltip for the button which stops displaying two pages of a PDF on the screen horizontally" translateable="false">
Disable two-up view
</message> </message>
<message name="IDS_PDF_TOOLTIP_ZOOM_IN" desc="Button tooltip for the button which zooms in a PDF, so that the document appears larger"> <message name="IDS_PDF_TOOLTIP_ZOOM_IN" desc="Button tooltip for the button which zooms in a PDF, so that the document appears larger">
Zoom in Zoom in
......
c947bd9cda772b4f1933139637fe856acf4b094b
\ No newline at end of file
15ad484607a7789c934b8d3642a06da54fba47cd
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment