256 lines
10 KiB
Rust
256 lines
10 KiB
Rust
//! ElyPDF's passwords, permissions and signatures.
|
||
|
||
pub(super) const EN: &[(&str, &str)] = &[
|
||
(
|
||
"pdf.restricted",
|
||
"This document does not allow {what}. Enter the owner password to lift its limits.",
|
||
),
|
||
("pdf.may.print", "printing"),
|
||
("pdf.may.copy", "copying text and pages"),
|
||
("pdf.may.edit", "changing content"),
|
||
("pdf.may.annotate", "annotating"),
|
||
("pdf.may.fill", "filling forms"),
|
||
("pdf.may.assemble", "changing pages and bookmarks"),
|
||
("pdf.may.owner", "changing its protection"),
|
||
("pdf.owner.open", "Enter Owner Password…"),
|
||
("pdf.owner.title", "Owner password for {name}"),
|
||
("pdf.owner.field", "Owner password"),
|
||
("pdf.owner.go", "Unlock"),
|
||
("pdf.owner.done", "Limits lifted for {name}."),
|
||
("pdf.owner.wrong", "That is not the owner password."),
|
||
("pdf.owner.already", "This document has no limits to lift."),
|
||
("pdf.protect.open", "Password and Permissions…"),
|
||
("pdf.protect.title", "Protect {name}"),
|
||
("pdf.protect.on", "Protect with passwords"),
|
||
("pdf.protect.user", "Open password"),
|
||
("pdf.protect.owner", "Owner password"),
|
||
("pdf.protect.print", "Printing"),
|
||
("pdf.protect.copy", "Copying text and pages"),
|
||
("pdf.protect.edit", "Changing content"),
|
||
("pdf.protect.annotate", "Annotating"),
|
||
("pdf.protect.fill", "Filling forms"),
|
||
("pdf.protect.assemble", "Changing pages and bookmarks"),
|
||
(
|
||
"pdf.protect.detail",
|
||
"Writes a new file with AES-256. Leave the open password empty to open without asking; the limits still hold. Without protection, the new file has no passwords.",
|
||
),
|
||
(
|
||
"pdf.protect.needs_owner",
|
||
"An owner password is needed, and it must differ from the open password.",
|
||
),
|
||
("pdf.protect.tail", "protected"),
|
||
("pdf.protect.bare", "unprotected"),
|
||
("pdf.protect.done", "Saved {name}."),
|
||
("pdf.side.signs", "Signatures"),
|
||
("pdf.sign.show", "Signatures…"),
|
||
("pdf.sign.close", "Close"),
|
||
("pdf.sign.state", "State"),
|
||
("pdf.sign.integrity", "Integrity"),
|
||
("pdf.sign.trust", "Certificate"),
|
||
("pdf.sign.revoked", "Revocation"),
|
||
("pdf.sign.when", "Signed at (as claimed)"),
|
||
("pdf.sign.list", "Signatures in {name}"),
|
||
("pdf.sign.none", "No signature fields"),
|
||
("pdf.sign.empty", "Not signed"),
|
||
("pdf.sign.intact", "Unchanged since it was signed"),
|
||
(
|
||
"pdf.sign.later",
|
||
"Signed part unchanged; later updates are ones it allows",
|
||
),
|
||
(
|
||
"pdf.sign.broken",
|
||
"Changed after signing in ways it does not allow",
|
||
),
|
||
("pdf.sign.changed", "The signed content has changed"),
|
||
("pdf.sign.unreadable", "The signature cannot be read: {why}"),
|
||
("pdf.sign.trusted", "Certificate trusted by this system"),
|
||
(
|
||
"pdf.sign.untrusted",
|
||
"Certificate not trusted by this system: {why}",
|
||
),
|
||
("pdf.sign.unchecked", "Certificate trust not checked: {why}"),
|
||
("pdf.sign.no_certificate", "No certificate in the signature"),
|
||
("pdf.sign.revocation", "Revocation not checked"),
|
||
("pdf.sign.open", "Sign with Certificate…"),
|
||
("pdf.sign.title", "Sign with a certificate"),
|
||
(
|
||
"pdf.sign.detail",
|
||
"Writes a signed copy by an update to this file's bytes; this document stays as it is.",
|
||
),
|
||
("pdf.sign.certificate", "Certificate"),
|
||
("pdf.sign.no_file", "None chosen (.p12 or .pfx)"),
|
||
("pdf.sign.choose", "Choose…"),
|
||
("pdf.sign.password", "Certificate password"),
|
||
("pdf.sign.reason", "Reason"),
|
||
("pdf.sign.location", "Location"),
|
||
("pdf.sign.tail", "signed"),
|
||
("pdf.sign.done", "Saved {name}, signed and checked."),
|
||
("pdf.visible.open", "Add Visible Signature…"),
|
||
("pdf.visible.title", "Visible signature"),
|
||
(
|
||
"pdf.visible.detail",
|
||
"A picture of a signature on the page. It is not a digital signature and proves nothing about who signed.",
|
||
),
|
||
("pdf.visible.draw", "Draw"),
|
||
("pdf.visible.type", "Type"),
|
||
("pdf.visible.picture", "Picture"),
|
||
("pdf.visible.name", "Name"),
|
||
("pdf.visible.no_picture", "None chosen"),
|
||
("pdf.visible.place", "Place on Page"),
|
||
("pdf.font.script", "Script"),
|
||
("pdf.repair.show", "Report…"),
|
||
("pdf.repair.title", "Repair report for {name}"),
|
||
(
|
||
"pdf.repair.detail",
|
||
"What MuPDF found broken while reading the file. The repaired copy is open; the file itself is untouched.",
|
||
),
|
||
("pdf.export.title", "Export"),
|
||
("pdf.export.images", "Page images"),
|
||
("pdf.export.text", "Text"),
|
||
("pdf.export.optimized", "Optimized PDF"),
|
||
("pdf.export.resolution", "Resolution"),
|
||
("pdf.export.dpi72", "72 dpi"),
|
||
("pdf.export.dpi150", "150 dpi"),
|
||
("pdf.export.dpi300", "300 dpi"),
|
||
("pdf.export.pages", "Pages"),
|
||
("pdf.export.all", "All"),
|
||
("pdf.export.picked", "Picked"),
|
||
(
|
||
"pdf.export.compress",
|
||
"Compress streams, fonts and pictures",
|
||
),
|
||
("pdf.export.shrink", "Downsample pictures"),
|
||
("pdf.export.above", "Above"),
|
||
("pdf.export.to", "Down to"),
|
||
("pdf.export.go", "Export…"),
|
||
("pdf.export.tail", "optimized"),
|
||
("pdf.export.done", "Saved {name}."),
|
||
("pdf.export.images_done", "Saved {count} page images."),
|
||
("pdf.export.images_done.one", "Saved 1 page image."),
|
||
(
|
||
"pdf.export.optimized_done",
|
||
"Saved {name}: {before} → {after}.",
|
||
),
|
||
];
|
||
|
||
pub(super) const ZH_CN: &[(&str, &str)] = &[
|
||
(
|
||
"pdf.restricted",
|
||
"此文档不允许{what}。输入所有者密码可解除限制。",
|
||
),
|
||
("pdf.may.print", "打印"),
|
||
("pdf.may.copy", "复制文字与页面"),
|
||
("pdf.may.edit", "修改内容"),
|
||
("pdf.may.annotate", "添加批注"),
|
||
("pdf.may.fill", "填写表单"),
|
||
("pdf.may.assemble", "调整页面与书签"),
|
||
("pdf.may.owner", "更改保护"),
|
||
("pdf.owner.open", "输入所有者密码…"),
|
||
("pdf.owner.title", "{name} 的所有者密码"),
|
||
("pdf.owner.field", "所有者密码"),
|
||
("pdf.owner.go", "解除限制"),
|
||
("pdf.owner.done", "已解除 {name} 的限制。"),
|
||
("pdf.owner.wrong", "所有者密码不对。"),
|
||
("pdf.owner.already", "此文档没有可解除的限制。"),
|
||
("pdf.protect.open", "密码与权限…"),
|
||
("pdf.protect.title", "保护 {name}"),
|
||
("pdf.protect.on", "以密码保护"),
|
||
("pdf.protect.user", "打开密码"),
|
||
("pdf.protect.owner", "所有者密码"),
|
||
("pdf.protect.print", "打印"),
|
||
("pdf.protect.copy", "复制文字与页面"),
|
||
("pdf.protect.edit", "修改内容"),
|
||
("pdf.protect.annotate", "添加批注"),
|
||
("pdf.protect.fill", "填写表单"),
|
||
("pdf.protect.assemble", "调整页面与书签"),
|
||
(
|
||
"pdf.protect.detail",
|
||
"以 AES-256 写出新文件。打开密码留空则打开时不询问,限制照样有效。不保护时,新文件没有密码。",
|
||
),
|
||
(
|
||
"pdf.protect.needs_owner",
|
||
"需要所有者密码,且须与打开密码不同。",
|
||
),
|
||
("pdf.protect.tail", "已保护"),
|
||
("pdf.protect.bare", "未保护"),
|
||
("pdf.protect.done", "已保存 {name}。"),
|
||
("pdf.side.signs", "签名"),
|
||
("pdf.sign.show", "签名…"),
|
||
("pdf.sign.close", "关闭"),
|
||
("pdf.sign.state", "状态"),
|
||
("pdf.sign.integrity", "完整性"),
|
||
("pdf.sign.trust", "证书"),
|
||
("pdf.sign.revoked", "吊销"),
|
||
("pdf.sign.when", "签名时间(签名者所称)"),
|
||
("pdf.sign.list", "{name} 中的签名"),
|
||
("pdf.sign.none", "没有签名字段"),
|
||
("pdf.sign.empty", "未签名"),
|
||
("pdf.sign.intact", "签名后未改动"),
|
||
("pdf.sign.later", "签名部分未改动;其后的更新在签名允许之内"),
|
||
("pdf.sign.broken", "签名后有签名不允许的改动"),
|
||
("pdf.sign.changed", "签名所覆盖的内容已改动"),
|
||
("pdf.sign.unreadable", "无法读取签名:{why}"),
|
||
("pdf.sign.trusted", "本机信任此证书"),
|
||
("pdf.sign.untrusted", "本机不信任此证书:{why}"),
|
||
("pdf.sign.unchecked", "未核对证书信任:{why}"),
|
||
("pdf.sign.no_certificate", "签名中没有证书"),
|
||
("pdf.sign.revocation", "未核验吊销状态"),
|
||
("pdf.sign.open", "以证书签名…"),
|
||
("pdf.sign.title", "以证书签名"),
|
||
(
|
||
"pdf.sign.detail",
|
||
"在此文件的字节上追加更新,写出已签名的副本;此文档保持原样。",
|
||
),
|
||
("pdf.sign.certificate", "证书"),
|
||
("pdf.sign.no_file", "未选择(.p12 或 .pfx)"),
|
||
("pdf.sign.choose", "选择…"),
|
||
("pdf.sign.password", "证书密码"),
|
||
("pdf.sign.reason", "原因"),
|
||
("pdf.sign.location", "地点"),
|
||
("pdf.sign.tail", "已签名"),
|
||
("pdf.sign.done", "已保存 {name},已签名并核对。"),
|
||
("pdf.visible.open", "添加可视签名…"),
|
||
("pdf.visible.title", "可视签名"),
|
||
(
|
||
"pdf.visible.detail",
|
||
"页面上的签名图样。它不是数字签名,不能证明签名人是谁。",
|
||
),
|
||
("pdf.visible.draw", "手写"),
|
||
("pdf.visible.type", "键入"),
|
||
("pdf.visible.picture", "图片"),
|
||
("pdf.visible.name", "姓名"),
|
||
("pdf.visible.no_picture", "未选择"),
|
||
("pdf.visible.place", "放到页面上"),
|
||
("pdf.font.script", "手写体"),
|
||
("pdf.repair.show", "报告…"),
|
||
("pdf.repair.title", "{name} 的修复报告"),
|
||
(
|
||
"pdf.repair.detail",
|
||
"MuPDF 读取文件时发现的损坏。打开的是修复后的副本;文件本身未改动。",
|
||
),
|
||
("pdf.export.title", "导出"),
|
||
("pdf.export.images", "页面图片"),
|
||
("pdf.export.text", "文字"),
|
||
("pdf.export.optimized", "优化的 PDF"),
|
||
("pdf.export.resolution", "分辨率"),
|
||
("pdf.export.dpi72", "72 dpi"),
|
||
("pdf.export.dpi150", "150 dpi"),
|
||
("pdf.export.dpi300", "300 dpi"),
|
||
("pdf.export.pages", "页面"),
|
||
("pdf.export.all", "全部"),
|
||
("pdf.export.picked", "所选"),
|
||
("pdf.export.compress", "压缩数据流、字体与图片"),
|
||
("pdf.export.shrink", "图片降采样"),
|
||
("pdf.export.above", "高于"),
|
||
("pdf.export.to", "降到"),
|
||
("pdf.export.go", "导出…"),
|
||
("pdf.export.tail", "已优化"),
|
||
("pdf.export.done", "已保存 {name}。"),
|
||
("pdf.export.images_done", "已保存 {count} 张页面图片。"),
|
||
("pdf.export.images_done.one", "已保存 1 张页面图片。"),
|
||
(
|
||
"pdf.export.optimized_done",
|
||
"已保存 {name}:{before} → {after}。",
|
||
),
|
||
];
|