diff --git a/l10n/en-US/viewer.properties b/l10n/en-US/viewer.properties index ed632b17a..c8dbe4aba 100644 --- a/l10n/en-US/viewer.properties +++ b/l10n/en-US/viewer.properties @@ -40,3 +40,5 @@ 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}} diff --git a/l10n/xx/viewer.properties b/l10n/xx/viewer.properties index 5b9971d0b..e26f79422 100644 --- a/l10n/xx/viewer.properties +++ b/l10n/xx/viewer.properties @@ -40,3 +40,5 @@ download_label=<<<_ÐOẂпḻOãÐ_>>> zoom_out_label=<<<_ƩOOм Oȗţ_>>> zoom_in_label=<<<_ƩOOм iп_>>> zoom.title=<<<_ƩOOм_>>> +thumb_page_title=<<<_Þãģε {{page}}_>>> +thumb_page_canvas=<<<_ţНȗмьпãiḻ O£ Þãģε {{page}}_>>> diff --git a/web/viewer.js b/web/viewer.js index e8eb9ad3b..dcbfcf14e 100644 --- a/web/viewer.js +++ b/web/viewer.js @@ -1070,7 +1070,8 @@ var PageView = function pageView(container, pdfPage, id, scale, var ThumbnailView = function thumbnailView(container, pdfPage, id) { var anchor = document.createElement('a'); anchor.href = PDFView.getAnchorUrl('#page=' + id); - anchor.onclick = function stopNivigation() { + anchor.title = mozL10n.get('thumb_page_title', {page: id}, 'Page {{page}}'); + anchor.onclick = function stopNavigation() { PDFView.page = id; return false; }; @@ -1103,6 +1104,8 @@ var ThumbnailView = function thumbnailView(container, pdfPage, id) { canvas.width = canvasWidth; canvas.height = canvasHeight; canvas.className = 'thumbnailImage'; + canvas.setAttribute('aria-label', mozL10n.get('thumb_page_canvas', + {page: id}, 'Thumbnail of Page {{page}}')); div.setAttribute('data-loaded', true);