Skip to content

Commit

Permalink
Adding tooltips for previous and next pagination buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
smorton-planview committed Jul 4, 2024
1 parent 6cc373d commit 547a94d
Show file tree
Hide file tree
Showing 14 changed files with 41 additions and 13 deletions.
4 changes: 3 additions & 1 deletion src/locales/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@
"pdfPluginPageNumber": " {{ allPagesCount }} \\ {{ currentPage }} صفحة ",
"pdfZoomInLabel": "تكبير",
"pdfZoomOutLabel": "تصغير",
"pdfZoomResetLabel": "إعادة الضبط على مستوى التكبير أو التصغير التلقائي"
"pdfZoomResetLabel": "إعادة الضبط على مستوى التكبير أو التصغير التلقائي",
"pdfNextPageLabel": "الصفحة التالية",
"pdfPreviousPageLabel": ">الصفحة السابقة"
}
4 changes: 3 additions & 1 deletion src/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@
"pdfPluginPageNumber": "Seite {{ currentPage }}/{{ allPagesCount }}",
"pdfZoomInLabel": "Vergrößern",
"pdfZoomOutLabel": "Verkleinern",
"pdfZoomResetLabel": "Auf Standard-Zoomstufe zurücksetzen"
"pdfZoomResetLabel": "Auf Standard-Zoomstufe zurücksetzen",
"pdfNextPageLabel": "Nächste Seite",
"pdfPreviousPageLabel": "Vorherige Seite"
}
4 changes: 3 additions & 1 deletion src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@
"pdfPluginPageNumber": "Page {{ currentPage }}/{{ allPagesCount }}",
"pdfZoomInLabel": "Zoom in",
"pdfZoomOutLabel": "Zoom out",
"pdfZoomResetLabel": "Reset to default zoom level"
"pdfZoomResetLabel": "Reset to default zoom level",
"pdfNextPageLabel": "Next page",
"pdfPreviousPageLabel": "Previous page"
}
4 changes: 3 additions & 1 deletion src/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@
"pdfPluginPageNumber": "Página {{ currentPage }}/{{ allPagesCount }}",
"pdfZoomInLabel": "Acercar",
"pdfZoomOutLabel": "Alejar",
"pdfZoomResetLabel": "Restablecer el nivel de zoom predeterminado"
"pdfZoomResetLabel": "Restablecer el nivel de zoom predeterminado",
"pdfNextPageLabel": "Página siguiente",
"pdfPreviousPageLabel": "Página anterior"
}
4 changes: 3 additions & 1 deletion src/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@
"pdfPluginPageNumber": "Page {{ currentPage }}/{{ allPagesCount }}",
"pdfZoomInLabel": "Zoom avant",
"pdfZoomOutLabel": "Zoom arrière",
"pdfZoomResetLabel": "Réinitialiser le niveau de zoom par défaut"
"pdfZoomResetLabel": "Réinitialiser le niveau de zoom par défaut",
"pdfNextPageLabel": "Page suivante",
"pdfPreviousPageLabel": "Page précédente"
}
4 changes: 3 additions & 1 deletion src/locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@
"pdfPluginPageNumber": "Pagina {{ currentPage }}/{{ allPagesCount }}",
"pdfZoomInLabel": "Ingrandisci",
"pdfZoomOutLabel": "Riduci",
"pdfZoomResetLabel": "Ripristina il livello di zoom predefinito"
"pdfZoomResetLabel": "Ripristina il livello di zoom predefinito",
"pdfNextPageLabel": "Pagina successiva",
"pdfPreviousPageLabel": "Pagina precedente"
}
4 changes: 3 additions & 1 deletion src/locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@
"pdfPluginPageNumber": "ページ {{ currentPage }}/{{ allPagesCount }}",
"pdfZoomInLabel": "拡大",
"pdfZoomOutLabel": "縮小",
"pdfZoomResetLabel": "リセットしてデフォルトのズームレベルに戻す"
"pdfZoomResetLabel": "リセットしてデフォルトのズームレベルに戻す",
"pdfNextPageLabel": "次のページ",
"pdfPreviousPageLabel": "前のページ"
}
4 changes: 3 additions & 1 deletion src/locales/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@
"pdfPluginPageNumber": "Strona {{ currentPage }}/{{ allPagesCount }}",
"pdfZoomInLabel": "Powiększ",
"pdfZoomOutLabel": "Pomniejsz",
"pdfZoomResetLabel": "Przywróć domyślny poziom powiększeni"
"pdfZoomResetLabel": "Przywróć domyślny poziom powiększeni",
"pdfNextPageLabel": "Następna strona",
"pdfPreviousPageLabel": "Poprzednia strona"
}
4 changes: 3 additions & 1 deletion src/locales/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@
"pdfPluginPageNumber": "Página {{ currentPage }}/{{ allPagesCount }}",
"pdfZoomInLabel": "Ampliar",
"pdfZoomOutLabel": "Reduzir",
"pdfZoomResetLabel": "Repor o nível de zoom predefinido"
"pdfZoomResetLabel": "Repor o nível de zoom predefinido",
"pdfNextPageLabel": "Página seguinte",
"pdfPreviousPageLabel": "Página anterior"
}
4 changes: 3 additions & 1 deletion src/locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@
"pdfPluginPageNumber": "Страница {{ currentPage }}/{{ allPagesCount }}",
"pdfZoomInLabel": "Увеличить",
"pdfZoomOutLabel": "Уменьшить",
"pdfZoomResetLabel": "Восстановить масштаб по умолчанию"
"pdfZoomResetLabel": "Восстановить масштаб по умолчанию",
"pdfNextPageLabel": "Следующая страница",
"pdfPreviousPageLabel": "Предыдущая страница"
}
4 changes: 3 additions & 1 deletion src/locales/se.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@
"pdfPluginPageNumber": "Sida {{ currentPage }}/{{ allPagesCount }}",
"pdfZoomInLabel": "Zooma in",
"pdfZoomOutLabel": "Zooma out",
"pdfZoomResetLabel": "Återställ standardzoomnivån"
"pdfZoomResetLabel": "Återställ standardzoomnivån",
"pdfNextPageLabel": "Nästa sida",
"pdfPreviousPageLabel": "Föregående sida"
}
4 changes: 3 additions & 1 deletion src/locales/sr.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@
"pdfPluginPageNumber": "Strana {{ currentPage }}/{{ allPagesCount }}",
"pdfZoomInLabel": "Povećaj",
"pdfZoomOutLabel": "Smanji",
"pdfZoomResetLabel": "Vraćanje na zadanu razinu zumiranja"
"pdfZoomResetLabel": "Vraćanje na zadanu razinu zumiranja",
"pdfNextPageLabel": "Sljedeća stranica",
"pdfPreviousPageLabel": "Prethodna stranica"
}
4 changes: 3 additions & 1 deletion src/locales/sr_cyr.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@
"pdfPluginPageNumber": "Страна {{ currentPage }}/{{ allPagesCount }}",
"pdfZoomInLabel": "Увећај",
"pdfZoomOutLabel": "Умањи",
"pdfZoomResetLabel": "Ресетуј на подразумевани ниво зумирања"
"pdfZoomResetLabel": "Ресетуј на подразумевани ниво зумирања",
"pdfNextPageLabel": "Следећа страница",
"pdfPreviousPageLabel": "Претходна страница"
}
2 changes: 2 additions & 0 deletions src/renderers/pdf/components/PDFPagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const PDFPagination: FC = () => {
<Container id="pdf-pagination">
<PageNavButtonLeft
id="pdf-pagination-prev"
title={t("pdfPreviousPageLabel")}
onClick={() => dispatch(setCurrentPage(currentPage - 1))}
disabled={currentPage === 1}
>
Expand All @@ -33,6 +34,7 @@ const PDFPagination: FC = () => {

<PageNavButtonRight
id="pdf-pagination-next"
title={t("pdfNextPageLabel")}
onClick={() => dispatch(setCurrentPage(currentPage + 1))}
disabled={currentPage >= numPages}
>
Expand Down

0 comments on commit 547a94d

Please sign in to comment.