Skip to content

Commit

Permalink
Adding tooltips for pdf zoom in/out/reset
Browse files Browse the repository at this point in the history
  • Loading branch information
smorton-planview committed Jul 3, 2024
1 parent 3a08cbb commit 6cc373d
Show file tree
Hide file tree
Showing 14 changed files with 55 additions and 13 deletions.
5 changes: 4 additions & 1 deletion src/locales/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@
"msgPluginRecipients": "المستلمين",
"msgPluginSender": "المرسل",
"pdfPluginLoading": "تحميل ...",
"pdfPluginPageNumber": " {{ allPagesCount }} \\ {{ currentPage }} صفحة "
"pdfPluginPageNumber": " {{ allPagesCount }} \\ {{ currentPage }} صفحة ",
"pdfZoomInLabel": "تكبير",
"pdfZoomOutLabel": "تصغير",
"pdfZoomResetLabel": "إعادة الضبط على مستوى التكبير أو التصغير التلقائي"
}
5 changes: 4 additions & 1 deletion src/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@
"msgPluginRecipients": "Empfänger",
"msgPluginSender": "Absender",
"pdfPluginLoading": "Wird geladen...",
"pdfPluginPageNumber": "Seite {{ currentPage }}/{{ allPagesCount }}"
"pdfPluginPageNumber": "Seite {{ currentPage }}/{{ allPagesCount }}",
"pdfZoomInLabel": "Vergrößern",
"pdfZoomOutLabel": "Verkleinern",
"pdfZoomResetLabel": "Auf Standard-Zoomstufe zurücksetzen"
}
5 changes: 4 additions & 1 deletion src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@
"msgPluginRecipients": "Recipients",
"msgPluginSender": "Sender",
"pdfPluginLoading": "Loading...",
"pdfPluginPageNumber": "Page {{ currentPage }}/{{ allPagesCount }}"
"pdfPluginPageNumber": "Page {{ currentPage }}/{{ allPagesCount }}",
"pdfZoomInLabel": "Zoom in",
"pdfZoomOutLabel": "Zoom out",
"pdfZoomResetLabel": "Reset to default zoom level"
}
5 changes: 4 additions & 1 deletion src/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@
"msgPluginRecipients": "Destinatarios",
"msgPluginSender": "Remitente",
"pdfPluginLoading": "Cargando...",
"pdfPluginPageNumber": "Página {{ currentPage }}/{{ allPagesCount }}"
"pdfPluginPageNumber": "Página {{ currentPage }}/{{ allPagesCount }}",
"pdfZoomInLabel": "Acercar",
"pdfZoomOutLabel": "Alejar",
"pdfZoomResetLabel": "Restablecer el nivel de zoom predeterminado"
}
5 changes: 4 additions & 1 deletion src/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@
"msgPluginRecipients": "Destinataires",
"msgPluginSender": "Expéditeur",
"pdfPluginLoading": "Chargement...",
"pdfPluginPageNumber": "Page {{ currentPage }}/{{ allPagesCount }}"
"pdfPluginPageNumber": "Page {{ currentPage }}/{{ allPagesCount }}",
"pdfZoomInLabel": "Zoom avant",
"pdfZoomOutLabel": "Zoom arrière",
"pdfZoomResetLabel": "Réinitialiser le niveau de zoom par défaut"
}
5 changes: 4 additions & 1 deletion src/locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@
"msgPluginRecipients": "Destinatari",
"msgPluginSender": "Mittente",
"pdfPluginLoading": "Caricamento in corso...",
"pdfPluginPageNumber": "Pagina {{ currentPage }}/{{ allPagesCount }}"
"pdfPluginPageNumber": "Pagina {{ currentPage }}/{{ allPagesCount }}",
"pdfZoomInLabel": "Ingrandisci",
"pdfZoomOutLabel": "Riduci",
"pdfZoomResetLabel": "Ripristina il livello di zoom predefinito"
}
5 changes: 4 additions & 1 deletion src/locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@
"msgPluginRecipients": "受信者",
"msgPluginSender": "送信者",
"pdfPluginLoading": "ローティング中...",
"pdfPluginPageNumber": "ページ {{ currentPage }}/{{ allPagesCount }}"
"pdfPluginPageNumber": "ページ {{ currentPage }}/{{ allPagesCount }}",
"pdfZoomInLabel": "拡大",
"pdfZoomOutLabel": "縮小",
"pdfZoomResetLabel": "リセットしてデフォルトのズームレベルに戻す"
}
5 changes: 4 additions & 1 deletion src/locales/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@
"msgPluginRecipients": "Odbiorcy",
"msgPluginSender": "Nadawca",
"pdfPluginLoading": "Wczytywanie...",
"pdfPluginPageNumber": "Strona {{ currentPage }}/{{ allPagesCount }}"
"pdfPluginPageNumber": "Strona {{ currentPage }}/{{ allPagesCount }}",
"pdfZoomInLabel": "Powiększ",
"pdfZoomOutLabel": "Pomniejsz",
"pdfZoomResetLabel": "Przywróć domyślny poziom powiększeni"
}
5 changes: 4 additions & 1 deletion src/locales/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@
"msgPluginRecipients": "Destinatários",
"msgPluginSender": "Remetente",
"pdfPluginLoading": "Carregando...",
"pdfPluginPageNumber": "Página {{ currentPage }}/{{ allPagesCount }}"
"pdfPluginPageNumber": "Página {{ currentPage }}/{{ allPagesCount }}",
"pdfZoomInLabel": "Ampliar",
"pdfZoomOutLabel": "Reduzir",
"pdfZoomResetLabel": "Repor o nível de zoom predefinido"
}
5 changes: 4 additions & 1 deletion src/locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@
"msgPluginRecipients": "Получатели",
"msgPluginSender": "Отправитель",
"pdfPluginLoading": "Загрузка...",
"pdfPluginPageNumber": "Страница {{ currentPage }}/{{ allPagesCount }}"
"pdfPluginPageNumber": "Страница {{ currentPage }}/{{ allPagesCount }}",
"pdfZoomInLabel": "Увеличить",
"pdfZoomOutLabel": "Уменьшить",
"pdfZoomResetLabel": "Восстановить масштаб по умолчанию"
}
5 changes: 4 additions & 1 deletion src/locales/se.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@
"msgPluginRecipients": "Mottagare",
"msgPluginSender": "Avsändare",
"pdfPluginLoading": "Laddar...",
"pdfPluginPageNumber": "Sida {{ currentPage }}/{{ allPagesCount }}"
"pdfPluginPageNumber": "Sida {{ currentPage }}/{{ allPagesCount }}",
"pdfZoomInLabel": "Zooma in",
"pdfZoomOutLabel": "Zooma out",
"pdfZoomResetLabel": "Återställ standardzoomnivån"
}
5 changes: 4 additions & 1 deletion src/locales/sr.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@
"msgPluginRecipients": "Primaoci",
"msgPluginSender": "Pošiljalac",
"pdfPluginLoading": "Učitavanje...",
"pdfPluginPageNumber": "Strana {{ currentPage }}/{{ allPagesCount }}"
"pdfPluginPageNumber": "Strana {{ currentPage }}/{{ allPagesCount }}",
"pdfZoomInLabel": "Povećaj",
"pdfZoomOutLabel": "Smanji",
"pdfZoomResetLabel": "Vraćanje na zadanu razinu zumiranja"
}
5 changes: 4 additions & 1 deletion src/locales/sr_cyr.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@
"msgPluginRecipients": "Примаоци",
"msgPluginSender": "Пошиљалац",
"pdfPluginLoading": "Учитавање...",
"pdfPluginPageNumber": "Страна {{ currentPage }}/{{ allPagesCount }}"
"pdfPluginPageNumber": "Страна {{ currentPage }}/{{ allPagesCount }}",
"pdfZoomInLabel": "Увећај",
"pdfZoomOutLabel": "Умањи",
"pdfZoomResetLabel": "Ресетуј на подразумевани ниво зумирања"
}
3 changes: 3 additions & 0 deletions src/renderers/pdf/components/PDFControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,23 @@ const PDFControls: FC = () => {

<ControlButton
id="pdf-zoom-out"
title={t("pdfZoomOutLabel")}
onMouseDown={() => dispatch(setZoomLevel(zoomLevel - zoomJump))}
>
<ZoomOutPDFIcon color="#000" size="80%" />
</ControlButton>

<ControlButton
id="pdf-zoom-in"
title={t("pdfZoomInLabel")}
onMouseDown={() => dispatch(setZoomLevel(zoomLevel + zoomJump))}
>
<ZoomInPDFIcon color="#000" size="80%" />
</ControlButton>

<ControlButton
id="pdf-zoom-reset"
title={t("pdfZoomResetLabel")}
onMouseDown={() => dispatch(setZoomLevel(defaultZoomLevel))}
disabled={zoomLevel === defaultZoomLevel}
>
Expand Down

0 comments on commit 6cc373d

Please sign in to comment.