]> git.parisson.com Git - pdf.js.git/commitdiff
Addressing the bug 742099 review
authorYury Delendik <ydelendik@mozilla.com>
Thu, 31 May 2012 20:56:38 +0000 (15:56 -0500)
committerYury Delendik <ydelendik@mozilla.com>
Thu, 31 May 2012 20:56:38 +0000 (15:56 -0500)
l10n/en-US/chrome.properties
l10n/en-US/viewer.properties
web/viewer.html
web/viewer.js

index 467d5920b7f4dd096c5454b9417247f4346ad905..1885e60362eac32f6e2bbb83f6653edd35d4cc48 100644 (file)
@@ -1,2 +1,3 @@
+# Chrome notification bar messages and buttons
 unsupported_feature=This PDF document might not be displayed correctly.
 open_with_different_viewer=Open With Different Viewer
index 4ac776da27ccbb457d130b64119868a237a1aca2..0074460753733b848af32e7d922b1543aff6e12f 100644 (file)
@@ -1,10 +1,46 @@
-bookmark.title=Current view (copy or open in new window)
+# Main toolbar buttons (tooltips and alt text for images)
 previous.title=Previous Page
+previous_label=Previous
 next.title=Next Page
-print.title=Print
-download.title=Download
+next_label=Next
+page_label=Page:
+page_of=of {{pageCount}}
 zoom_out.title=Zoom Out
+zoom_out_label=Zoom Out
 zoom_in.title=Zoom In
+zoom_in_label=Zoom In
+zoom.title=Zoom
+print.title=Print
+print_label=Print
+open_file.title=Open File
+open_file_label=Open
+download.title=Download
+download_label=Download
+bookmark.title=Current view (copy or open in new window)
+bookmark_label=Current View
+
+# Side panel toolbar buttons (tooltips and alt text for images)
+toggle_slider.title=Toggle Slider
+toggle_slider_label=Toggle Slider
+outline.title=Show Document Outline
+outline_label=Document Outline
+thumbs.title=Show Thumbnails
+thumbs_label=Thumbnails
+search.title=Search Document
+search_label=Search
+
+# Document outline messages
+no_outline=No Outline Available
+
+# Thumbnails panel item (tooltip and alt text for images)
+thumb_page_title=Page {{page}}
+thumb_page_canvas=Thumbnail of Page {{page}}
+
+# Search panel button title and messages
+search=Find
+search_terms_not_found=(Not found)
+
+# Error panel labels
 error_more_info=More Information
 error_less_info=Less Information
 error_close=Close
@@ -13,38 +49,19 @@ error_message=Message: {{message}}
 error_stack=Stack: {{stack}}
 error_file=File: {{file}}
 error_line=Line: {{line}}
+rendering_error=An error occurred while rendering the page.
+
+# Predefined zoom values
 page_scale_width=Page Width
 page_scale_fit=Page Fit
 page_scale_auto=Automatic Zoom
 page_scale_actual=Actual Size
-toggle_slider.title=Toggle Slider
-thumbs.title=Show Thumbnails
-outline.title=Show Document Outline
+
+# Loading indicator messages
 loading=Loading... {{percent}}%
 loading_error_indicator=Error
 loading_error=An error occurred while loading the PDF.
-rendering_error=An error occurred while rendering the page.
-page_label=Page:
-page_of=of {{pageCount}}
-no_outline=No Outline Available
-open_file.title=Open File
+
+# Misc labels and messages
 text_annotation_type=[{{type}} Annotation]
-toggle_slider_label=Toggle Slider
-thumbs_label=Thumbnails
-outline_label=Document Outline
-bookmark_label=Current View
-previous_label=Previous
-next_label=Next
-print_label=Print
-download_label=Download
-zoom_out_label=Zoom Out
-zoom_in_label=Zoom In
-zoom.title=Zoom
-thumb_page_title=Page {{page}}
-thumb_page_canvas=Thumbnail of Page {{page}}
 request_password=PDF is protected by a password:
-open_file_label=Open
-search.title=Search Document
-search_label=Search
-search_button=Find
-
index 087fb7af302bd04e693b9cc07c0c9a7580f1b580..8b189a1f01cd4d8c1b25aee116600d066c36a067 100644 (file)
@@ -63,7 +63,7 @@
           <div id="searchView" class="hidden">
             <div id="searchToolbar">
               <input id="searchTermsInput" onkeydown='if (event.keyCode == 13) PDFView.search()'>
-              <button id="searchButton" onclick='PDFView.search()' data-l10n-id="search_button">Find</button>
+              <button id="searchButton" onclick='PDFView.search()' data-l10n-id="search">Find</button>
             </div>
             <div id="searchResults"></div>
           </div>
index e6d1b6766950e83ee45c86d860c33606dd34c66d..0b43fd2c660cba9ed0d58d33a39308b3211e3548 100644 (file)
@@ -720,7 +720,8 @@ var PDFView = {
       pageFound = true;
     }
     if (!pageFound) {
-      searchResults.textContent = '(Not found)';
+      searchResults.textContent = mozL10n.get('search_terms_not_found', null,
+                                              '(Not found)';
     }
   },