Merge pull request #2208 from yurydelendik/find-ui-1

Add pilot find next/prev icons; localization
This commit is contained in:
Brendan Dahl 2012-10-08 09:58:19 -07:00
commit e1988fb5bf
15 changed files with 97 additions and 37 deletions

View File

@ -36,8 +36,8 @@ outline.title=إظهار ملخص المستند
outline_label=ملخص المستند outline_label=ملخص المستند
thumbs.title=إظهار الصور المصغرة thumbs.title=إظهار الصور المصغرة
thumbs_label=الصور المصغرة thumbs_label=الصور المصغرة
find_panel.title=البحث في المستند findbar.title=البحث في المستند
find_panel_label=بحث findbar_label=بحث
# Document outline messages # Document outline messages
no_outline=لا يوجد ملخص no_outline=لا يوجد ملخص

View File

@ -36,8 +36,8 @@ outline.title=Vis dokumentoversigt
outline_label=Dokumentoversigt outline_label=Dokumentoversigt
thumbs.title=Vis thumbnails thumbs.title=Vis thumbnails
thumbs_label=Thumbnails thumbs_label=Thumbnails
find_panel.title=Søg i dokumentet findbar.title=Søg i dokumentet
find_panel_label=Søg findbar_label=Søg
# Dokumentoversigtsbeskeder # Dokumentoversigtsbeskeder
no_outline=Ingen dokumentoversigt tilgængelig no_outline=Ingen dokumentoversigt tilgængelig

View File

@ -36,6 +36,8 @@ outline.title=Show Document Outline
outline_label=Document Outline outline_label=Document Outline
thumbs.title=Show Thumbnails thumbs.title=Show Thumbnails
thumbs_label=Thumbnails thumbs_label=Thumbnails
findbar.title=Find in Document
findbar_label=Find
# Document outline messages # Document outline messages
no_outline=No Outline Available no_outline=No Outline Available
@ -53,10 +55,11 @@ page_rotate_cw.label=Rotate Clockwise
page_rotate_ccw.label=Rotate Counter-Clockwise page_rotate_ccw.label=Rotate Counter-Clockwise
# Find panel button title and messages # 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.title=Find the previous occurrence of the phrase
find_previous_label=Previous
find_next.title=Find the next occurrence of the phrase find_next.title=Find the next occurrence of the phrase
find_next_label=Next
find_highlight=Highlight all find_highlight=Highlight all
find_match_case_label=Match case find_match_case_label=Match case
find_wrapped_to_bottom=Reached end of page, continued from bottom find_wrapped_to_bottom=Reached end of page, continued from bottom

View File

@ -36,8 +36,8 @@ outline.title=Mostrar esquema del documento
outline_label=Esquema del documento outline_label=Esquema del documento
thumbs.title=Mostrar miniaturas thumbs.title=Mostrar miniaturas
thumbs_label=Miniaturas thumbs_label=Miniaturas
find_panel.title=Buscar en el documento findbar.title=Buscar en el documento
find_panel_label=Buscar findbar_label=Buscar
# Document outline messages # Document outline messages
no_outline=No hay un esquema disponible no_outline=No hay un esquema disponible

View File

@ -36,8 +36,8 @@ outline.title=Näytä asiakirjan jäsennys
outline_label=Asiakirjan jäsennys outline_label=Asiakirjan jäsennys
thumbs.title=Näytä esikatselukuvat thumbs.title=Näytä esikatselukuvat
thumbs_label=Esikatselukuvat thumbs_label=Esikatselukuvat
find_panel.title=Etsi asiakirjasta findbar.title=Etsi asiakirjasta
find_panel_label=Etsi findbar_label=Etsi
# Document outline messages # Document outline messages
no_outline=Jäsennystä ei ole tarjolla no_outline=Jäsennystä ei ole tarjolla

View File

@ -36,8 +36,8 @@ outline.title=文書の目次
outline_label=文書の目次 outline_label=文書の目次
thumbs.title=縮小版 thumbs.title=縮小版
thumbs_label=縮小版 thumbs_label=縮小版
find_panel.title=検索 findbar.title=検索
find_panel_label=検索 findbar_label=検索
# Document outline messages # Document outline messages
no_outline=利用可能な目次はありません no_outline=利用可能な目次はありません

View File

@ -34,8 +34,8 @@ outline.title=Toon document structuur
outline_label=Document structuur outline_label=Document structuur
thumbs.title=Toon miniaturen thumbs.title=Toon miniaturen
thumbs_label=Miniaturen thumbs_label=Miniaturen
find_panel.title=Doorzoek document findbar.title=Doorzoek document
find_panel_label=Zoek findbar_label=Zoek
# Document outline messages # Document outline messages
no_outline=Geen structuur beschikbaar no_outline=Geen structuur beschikbaar

View File

@ -34,8 +34,8 @@ outline.title=Visa dokumentdisposition
outline_label=Dokumentdisposition outline_label=Dokumentdisposition
thumbs.title=Visa miniatyrer thumbs.title=Visa miniatyrer
thumbs_label=Miniatyrer thumbs_label=Miniatyrer
find_panel.title=Sök i dokumentet findbar.title=Sök i dokumentet
find_panel_label=Sök findbar_label=Sök
# Document outline messages # Document outline messages
no_outline=Ingen dokumentdisposition tillgänglig no_outline=Ingen dokumentdisposition tillgänglig

View File

@ -34,6 +34,8 @@ outline.title=顯示文件綱要
outline_label=文件綱要 outline_label=文件綱要
thumbs.title=顯示縮圖 thumbs.title=顯示縮圖
thumbs_label=縮圖 thumbs_label=縮圖
findbar.title=在文件中搜尋
findbar_label=搜索
# 文件綱要相關訊息 # 文件綱要相關訊息
no_outline=無可用的綱要 no_outline=無可用的綱要
@ -49,7 +51,6 @@ page_rotate_cw.label=順時針旋轉
page_rotate_ccw.label=逆時針旋轉 page_rotate_ccw.label=逆時針旋轉
# 搜尋面板按鍵文字及訊息 # 搜尋面板按鍵文字及訊息
find.title=在文件中搜尋
find_label=搜尋 find_label=搜尋
find_previous.title=尋找上一個出現的詞組 find_previous.title=尋找上一個出現的詞組
find_next.title=尋找下一個出現的詞組 find_next.title=尋找下一個出現的詞組

Binary file not shown.

After

Width:  |  Height:  |  Size: 371 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 381 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 381 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 371 B

View File

@ -268,22 +268,28 @@ html[dir='rtl'] #sidebarContent {
.findbar { .findbar {
top: 32px; top: 32px;
left: 68px;
position: absolute; position: absolute;
z-index: 10000; z-index: 10000;
height: 24px; height: 32px;
min-width: 16px; min-width: 16px;
padding: 3px 6px 3px 6px; padding: 0px 6px 0px 6px;
margin: 4px 2px 4px 0; margin: 4px 2px 4px 2px;
color: hsl(0,0%,85%); color: hsl(0,0%,85%);
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 14px;
text-align: left; text-align: left;
white-space: nowrap;
cursor: default; cursor: default;
} }
html[dir='ltr'] .findbar {
left: 68px;
}
html[dir='rtl'] .findbar {
right: 68px;
}
.findbar label { .findbar label {
-webkit-user-select:none; -webkit-user-select:none;
-moz-user-select:none; -moz-user-select:none;
@ -306,16 +312,32 @@ html[dir='rtl'] #sidebarContent {
.doorHanger:after { .doorHanger:after {
border-bottom-color: hsla(0,0%,32%,.99); border-bottom-color: hsla(0,0%,32%,.99);
border-width: 8px; border-width: 8px;
left: 16px;
margin-left: -8px;
} }
.doorHanger:before { .doorHanger:before {
border-bottom-color: hsla(0,0%,0%,.5); border-bottom-color: hsla(0,0%,0%,.5);
border-width: 9px; border-width: 9px;
}
html[dir='ltr'] .doorHanger:after {
left: 16px;
margin-left: -8px;
}
html[dir='ltr'] .doorHanger:before {
left: 16px; left: 16px;
margin-left: -9px; margin-left: -9px;
} }
html[dir='rtl'] .doorHanger:after {
right: 16px;
margin-right: -8px;
}
html[dir='rtl'] .doorHanger:before {
right: 16px;
margin-right: -9px;
}
#findMsg { #findMsg {
font-style: italic; font-style: italic;
color: #A6B7D0; color: #A6B7D0;
@ -347,12 +369,14 @@ html[dir='rtl'] #toolbarViewerLeft {
} }
html[dir='ltr'] #toolbarViewerLeft > *, html[dir='ltr'] #toolbarViewerLeft > *,
html[dir='ltr'] #toolbarViewerMiddle > *, html[dir='ltr'] #toolbarViewerMiddle > *,
html[dir='ltr'] #toolbarViewerRight > * { html[dir='ltr'] #toolbarViewerRight > *,
html[dir='ltr'] .findbar > * {
float: left; float: left;
} }
html[dir='rtl'] #toolbarViewerLeft > *, html[dir='rtl'] #toolbarViewerLeft > *,
html[dir='rtl'] #toolbarViewerMiddle > *, html[dir='rtl'] #toolbarViewerMiddle > *,
html[dir='rtl'] #toolbarViewerRight > * { html[dir='rtl'] #toolbarViewerRight > *,
html[dir='rtl'] .findbar > * {
float: right; float: right;
} }
@ -690,6 +714,26 @@ html[dir='rtl'] .toolbarButton:first-child {
content: url(images/toolbarButton-sidebarToggle.png); 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 { html[dir='ltr'] .toolbarButton.pageUp::before {
display: inline-block; display: inline-block;
content: url(images/toolbarButton-pageUp.png); content: url(images/toolbarButton-pageUp.png);
@ -789,6 +833,11 @@ html[dir='rtl'] .toolbarButton.pageDown::before {
-moz-transition-timing-function: ease; -moz-transition-timing-function: ease;
} }
.toolbarField[type=checkbox] {
display: inline-block;
margin: 8px 0px;
}
.toolbarField.pageNumber { .toolbarField.pageNumber {
min-width: 16px; min-width: 16px;
text-align: right; text-align: right;

View File

@ -99,15 +99,22 @@ limitations under the License.
<div id="mainContainer"> <div id="mainContainer">
<div class="findbar hidden doorHanger" id="findbar"> <div class="findbar hidden doorHanger" id="findbar">
<label for="findInput" data-l10n-id="find_label">Find</label> <label for="findInput" class="toolbarLabel" data-l10n-id="find_label">Find:</label>
<input id="findInput" type="search"> <input id="findInput" class="toolbarField" tabindex="20">
<button id="findPrevious" data-l10n-id="find_previous" title="">&lt;</button> <div class="splitToolbarButton">
<button id="findNext" data-l10n-id="find_next">&gt;</button> <button class="toolbarButton findPrevious" title="" id="findPrevious" tabindex="21" data-l10n-id="find_previous">
<input type="checkbox" id="findHighlightAll"> <span data-l10n-id="find_previous_label">Previous</span>
<label for="findHighlightAll" data-l10n-id="find_highlight">Highlight all</label> </button>
<input type="checkbox" id="findMatchCase"> <div class="splitToolbarButtonSeparator"></div>
<label for="findMatchCase" data-l10n-id="find_match_case_label">Match case</label> <button class="toolbarButton findNext" title="" id="findNext" tabindex="22" data-l10n-id="find_next">
<span id="findMsg"></span> <span data-l10n-id="find_next_label">Next</span>
</button>
</div>
<input type="checkbox" id="findHighlightAll" class="toolbarField">
<label for="findHighlightAll" class="toolbarLabel" tabindex="23" data-l10n-id="find_highlight">Highlight all</label>
<input type="checkbox" id="findMatchCase" class="toolbarField">
<label for="findMatchCase" class="toolbarLabel" tabindex="24" data-l10n-id="find_match_case_label">Match case</label>
<span id="findMsg" class="toolbarLabel"></span>
</div> </div>
<div class="toolbar"> <div class="toolbar">
<div id="toolbarContainer"> <div id="toolbarContainer">
@ -117,8 +124,8 @@ limitations under the License.
<span data-l10n-id="toggle_slider_label">Toggle Sidebar</span> <span data-l10n-id="toggle_slider_label">Toggle Sidebar</span>
</button> </button>
<div class="toolbarButtonSpacer"></div> <div class="toolbarButtonSpacer"></div>
<button id="viewFind" class="toolbarButton group" title="Find in Document" tabindex="4" data-l10n-id="find"> <button id="viewFind" class="toolbarButton group" title="Find in Document" tabindex="4" data-l10n-id="findbar">
<span data-l10n-id="find_label">Find</span> <span data-l10n-id="findbar_label">Find</span>
</button> </button>
<div class="splitToolbarButton"> <div class="splitToolbarButton">
<button class="toolbarButton pageUp" title="Previous Page" id="previous" tabindex="5" data-l10n-id="previous"> <button class="toolbarButton pageUp" title="Previous Page" id="previous" tabindex="5" data-l10n-id="previous">