mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix(sign-pdf): surface PDF load failures instead of a blank canvas (#545)
A genuine pdf.js load failure (corrupt or password-protected file) was swallowed by the same catch that silences teardown rejections, leaving a blank canvas that looks like it is still loading. The two cases are now distinguished by the load effect's cancelled flag, and a real failure renders a clear message pointing at Unlock PDF for encrypted files. New loadFailed string in all 21 locales. Item 4 of #478.
This commit is contained in:
@@ -2812,6 +2812,8 @@ export const ru: TranslationKeys = {
|
||||
signingPercent: "Подписание… {percent}%",
|
||||
downloadSigned: "Скачать подписанный PDF",
|
||||
addFirst: "Добавьте хотя бы одну подпись перед скачиванием.",
|
||||
loadFailed:
|
||||
"Не удалось отобразить этот PDF. Файл может быть повреждён или защищён паролем; если он зашифрован, сначала удалите пароль с помощью инструмента «Разблокировать PDF».",
|
||||
pad: {
|
||||
title: "Создать подпись",
|
||||
draw: "Нарисовать",
|
||||
|
||||
Reference in New Issue
Block a user