From 23ec02bb930b8723f6464b61666deba1bff86748 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Thu, 28 Jan 2016 13:02:17 +0100 Subject: [PATCH] Remove the "Page: " label and replace it with a tooltip The following reasoning was used for deciding to remove the "Page: " label, and replace it with a tooltip, from the main toolbar: - We have no other visible labels in the *main* toolbar (e.g. the Zoom dropdown doesn't have a label, but only a tooltip). - We already hide the "Page: " label when the viewer is narrow. - The varying width of the "Page: " label in different locales is already causing issues for many languages, with overlap in the main toolbar as a result. Trying to create responsive CSS styles that works well in all locales is already difficult, and if we add support for page labels that will only further compound the issues. - Some PDF viewers (e.g. Adobe Reader, pdfium in Chrome) doesn't show labels in the UI by default. --- l10n/en-US/viewer.properties | 9 ++++----- l10n/sv-SE/viewer.properties | 9 ++++----- web/viewer.css | 2 +- web/viewer.html | 5 ++--- 4 files changed, 11 insertions(+), 14 deletions(-) diff --git a/l10n/en-US/viewer.properties b/l10n/en-US/viewer.properties index 731a1f228..90c09aa99 100644 --- a/l10n/en-US/viewer.properties +++ b/l10n/en-US/viewer.properties @@ -18,11 +18,10 @@ previous_label=Previous next.title=Next Page next_label=Next -# LOCALIZATION NOTE (page_label, page_of): -# These strings are concatenated to form the "Page: X of Y" string. -# Do not translate "{{pageCount}}", it will be substituted with a number -# representing the total number of pages. -page_label=Page: +# LOCALIZATION NOTE (page.title): The tooltip for the pageNumber input. +page.title=Page +# LOCALIZATION NOTE (page_of): "{{pageCount}}" will be replaced by a number +# representing the total number of pages in the document. page_of=of {{pageCount}} zoom_out.title=Zoom Out diff --git a/l10n/sv-SE/viewer.properties b/l10n/sv-SE/viewer.properties index 4487addbd..514c32d4b 100644 --- a/l10n/sv-SE/viewer.properties +++ b/l10n/sv-SE/viewer.properties @@ -18,11 +18,10 @@ previous_label=Föregående next.title=Nästa sida next_label=Nästa -# LOCALIZATION NOTE (page_label, page_of): -# These strings are concatenated to form the "Page: X of Y" string. -# Do not translate "{{pageCount}}", it will be substituted with a number -# representing the total number of pages. -page_label=Sida: +# LOCALIZATION NOTE (page.title): The tooltip for the pageNumber input. +page.title=Sida +# LOCALIZATION NOTE (page_of): "{{pageCount}}" will be replaced by a number +# representing the total number of pages in the document. page_of=av {{pageCount}} zoom_out.title=Zooma ut diff --git a/web/viewer.css b/web/viewer.css index 4fedfe591..630d54b78 100644 --- a/web/viewer.css +++ b/web/viewer.css @@ -1939,7 +1939,7 @@ html[dir='rtl'] #documentPropertiesOverlay .row > * { } @media all and (max-width: 510px) { - #scaleSelectContainer, #pageNumberLabel { + #scaleSelectContainer { display: none; } } diff --git a/web/viewer.html b/web/viewer.html index 566770ae4..50df35d5a 100644 --- a/web/viewer.html +++ b/web/viewer.html @@ -194,8 +194,7 @@ See https://github.com/adobe-type-tools/cmap-resources Next - - +
@@ -236,7 +235,7 @@ See https://github.com/adobe-type-tools/cmap-resources
-