From ade5f967875e220a738e9105c96a0da2989ed030 Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Fri, 5 Oct 2012 19:15:06 -0500 Subject: [PATCH 1/2] Add pilot find next/prev icons; localization --- l10n/ar/viewer.properties | 4 +- l10n/da/viewer.properties | 4 +- l10n/en-US/viewer.properties | 7 ++- l10n/es/viewer.properties | 4 +- l10n/fi/viewer.properties | 4 +- l10n/ja/viewer.properties | 4 +- l10n/nl/viewer.properties | 4 +- l10n/sv/viewer.properties | 4 +- l10n/zh-TW/viewer.properties | 3 +- web/images/findbarButton-next-rtl.png | Bin 0 -> 371 bytes web/images/findbarButton-next.png | Bin 0 -> 381 bytes web/images/findbarButton-previous-rtl.png | Bin 0 -> 381 bytes web/images/findbarButton-previous.png | Bin 0 -> 371 bytes web/viewer.css | 67 +++++++++++++++++++--- web/viewer.html | 29 ++++++---- 15 files changed, 97 insertions(+), 37 deletions(-) create mode 100644 web/images/findbarButton-next-rtl.png create mode 100644 web/images/findbarButton-next.png create mode 100644 web/images/findbarButton-previous-rtl.png create mode 100644 web/images/findbarButton-previous.png diff --git a/l10n/ar/viewer.properties b/l10n/ar/viewer.properties index d1ceae44e..25e27b4c8 100644 --- a/l10n/ar/viewer.properties +++ b/l10n/ar/viewer.properties @@ -36,8 +36,8 @@ outline.title=إظهار ملخص المستند outline_label=ملخص المستند thumbs.title=إظهار الصور المصغرة thumbs_label=الصور المصغرة -find_panel.title=البحث في المستند -find_panel_label=بحث +findbar.title=البحث في المستند +findbar_label=بحث # Document outline messages no_outline=لا يوجد ملخص diff --git a/l10n/da/viewer.properties b/l10n/da/viewer.properties index 90231c7ca..92a7c4bc0 100644 --- a/l10n/da/viewer.properties +++ b/l10n/da/viewer.properties @@ -36,8 +36,8 @@ outline.title=Vis dokumentoversigt outline_label=Dokumentoversigt thumbs.title=Vis thumbnails thumbs_label=Thumbnails -find_panel.title=Søg i dokumentet -find_panel_label=Søg +findbar.title=Søg i dokumentet +findbar_label=Søg # Dokumentoversigtsbeskeder no_outline=Ingen dokumentoversigt tilgængelig diff --git a/l10n/en-US/viewer.properties b/l10n/en-US/viewer.properties index 35391eabd..fda7ea419 100644 --- a/l10n/en-US/viewer.properties +++ b/l10n/en-US/viewer.properties @@ -36,6 +36,8 @@ outline.title=Show Document Outline outline_label=Document Outline thumbs.title=Show Thumbnails thumbs_label=Thumbnails +findbar.title=Find in Document +findbar_label=Find # Document outline messages no_outline=No Outline Available @@ -53,10 +55,11 @@ page_rotate_cw.label=Rotate Clockwise page_rotate_ccw.label=Rotate Counter-Clockwise # Find panel button title and messages -find.title=Find in Document -find_label=Find +find_label=Find: 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_wrapped_to_bottom=Reached end of page, continued from bottom diff --git a/l10n/es/viewer.properties b/l10n/es/viewer.properties index bac4cee67..75fd1e756 100644 --- a/l10n/es/viewer.properties +++ b/l10n/es/viewer.properties @@ -36,8 +36,8 @@ outline.title=Mostrar esquema del documento outline_label=Esquema del documento thumbs.title=Mostrar miniaturas thumbs_label=Miniaturas -find_panel.title=Buscar en el documento -find_panel_label=Buscar +findbar.title=Buscar en el documento +findbar_label=Buscar # Document outline messages no_outline=No hay un esquema disponible diff --git a/l10n/fi/viewer.properties b/l10n/fi/viewer.properties index 5fcde5eaf..62dfa38f9 100644 --- a/l10n/fi/viewer.properties +++ b/l10n/fi/viewer.properties @@ -36,8 +36,8 @@ outline.title=Näytä asiakirjan jäsennys outline_label=Asiakirjan jäsennys thumbs.title=Näytä esikatselukuvat thumbs_label=Esikatselukuvat -find_panel.title=Etsi asiakirjasta -find_panel_label=Etsi +findbar.title=Etsi asiakirjasta +findbar_label=Etsi # Document outline messages no_outline=Jäsennystä ei ole tarjolla diff --git a/l10n/ja/viewer.properties b/l10n/ja/viewer.properties index a79d65940..4bd1e81af 100644 --- a/l10n/ja/viewer.properties +++ b/l10n/ja/viewer.properties @@ -36,8 +36,8 @@ outline.title=文書の目次 outline_label=文書の目次 thumbs.title=縮小版 thumbs_label=縮小版 -find_panel.title=検索 -find_panel_label=検索 +findbar.title=検索 +findbar_label=検索 # Document outline messages no_outline=利用可能な目次はありません diff --git a/l10n/nl/viewer.properties b/l10n/nl/viewer.properties index 45bbec253..6f68414ad 100644 --- a/l10n/nl/viewer.properties +++ b/l10n/nl/viewer.properties @@ -34,8 +34,8 @@ outline.title=Toon document structuur outline_label=Document structuur thumbs.title=Toon miniaturen thumbs_label=Miniaturen -find_panel.title=Doorzoek document -find_panel_label=Zoek +findbar.title=Doorzoek document +findbar_label=Zoek # Document outline messages no_outline=Geen structuur beschikbaar diff --git a/l10n/sv/viewer.properties b/l10n/sv/viewer.properties index e09418442..ba93666b6 100644 --- a/l10n/sv/viewer.properties +++ b/l10n/sv/viewer.properties @@ -34,8 +34,8 @@ outline.title=Visa dokumentdisposition outline_label=Dokumentdisposition thumbs.title=Visa miniatyrer thumbs_label=Miniatyrer -find_panel.title=Sök i dokumentet -find_panel_label=Sök +findbar.title=Sök i dokumentet +findbar_label=Sök # Document outline messages no_outline=Ingen dokumentdisposition tillgänglig diff --git a/l10n/zh-TW/viewer.properties b/l10n/zh-TW/viewer.properties index 55d65d235..9d172d1b2 100644 --- a/l10n/zh-TW/viewer.properties +++ b/l10n/zh-TW/viewer.properties @@ -34,6 +34,8 @@ outline.title=顯示文件綱要 outline_label=文件綱要 thumbs.title=顯示縮圖 thumbs_label=縮圖 +findbar.title=在文件中搜尋 +findbar_label=搜索 # 文件綱要相關訊息 no_outline=無可用的綱要 @@ -49,7 +51,6 @@ page_rotate_cw.label=順時針旋轉 page_rotate_ccw.label=逆時針旋轉 # 搜尋面板按鍵文字及訊息 -find.title=在文件中搜尋 find_label=搜尋 find_previous.title=尋找上一個出現的詞組 find_next.title=尋找下一個出現的詞組 diff --git a/web/images/findbarButton-next-rtl.png b/web/images/findbarButton-next-rtl.png new file mode 100644 index 0000000000000000000000000000000000000000..08a2c25327d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p5s zu; *, html[dir='ltr'] #toolbarViewerMiddle > *, -html[dir='ltr'] #toolbarViewerRight > * { +html[dir='ltr'] #toolbarViewerRight > *, +html[dir='ltr'] .findbar > * { float: left; } html[dir='rtl'] #toolbarViewerLeft > *, html[dir='rtl'] #toolbarViewerMiddle > *, -html[dir='rtl'] #toolbarViewerRight > * { +html[dir='rtl'] #toolbarViewerRight > *, +html[dir='rtl'] .findbar > * { float: right; } @@ -690,6 +714,26 @@ html[dir='rtl'] .toolbarButton:first-child { content: url(images/toolbarButton-sidebarToggle.png); } +html[dir='ltr'] .toolbarButton.findPrevious::before { + display: inline-block; + content: url(images/findbarButton-previous.png); +} + +html[dir='rtl'] .toolbarButton.findPrevious::before { + display: inline-block; + content: url(images/findbarButton-previous-rtl.png); +} + +html[dir='ltr'] .toolbarButton.findNext::before { + display: inline-block; + content: url(images/findbarButton-next.png); +} + +html[dir='rtl'] .toolbarButton.findNext::before { + display: inline-block; + content: url(images/findbarButton-next-rtl.png); +} + html[dir='ltr'] .toolbarButton.pageUp::before { display: inline-block; content: url(images/toolbarButton-pageUp.png); @@ -789,6 +833,11 @@ html[dir='rtl'] .toolbarButton.pageDown::before { -moz-transition-timing-function: ease; } +.toolbarField[type=checkbox] { + display: inline-block; + margin: 8px 0px; +} + .toolbarField.pageNumber { min-width: 16px; text-align: right; diff --git a/web/viewer.html b/web/viewer.html index 985e59311..f21349486 100644 --- a/web/viewer.html +++ b/web/viewer.html @@ -99,15 +99,22 @@ limitations under the License.
@@ -117,8 +124,8 @@ limitations under the License. Toggle Sidebar
-
-
- + - +