Files
ElyOffice/crates/ely-ui/src/i18n/pdf.rs
T

428 lines
17 KiB
Rust
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//! ElyPDF's reader.
pub(super) const EN: &[(&str, &str)] = &[
("menu.edit", "Edit"),
("pdf.failed", "{what} failed: {error}"),
("pdf.status.page", "Page {n} of {count}"),
("pdf.copy", "Copy"),
("pdf.find", "Find…"),
("pdf.view.continuous", "Continuous"),
("pdf.view.single", "Single Page"),
("pdf.view.two", "Two Pages"),
("pdf.view.zoom_in", "Zoom In"),
("pdf.view.zoom_out", "Zoom Out"),
("pdf.view.fit_width", "Fit Width"),
("pdf.view.fit_page", "Fit Page"),
("pdf.view.actual", "Actual Size"),
("pdf.view.rotate_left", "Rotate Left"),
("pdf.view.rotate_right", "Rotate Right"),
("menu.pages", "Pages"),
("pdf.undo", "Undo"),
("pdf.redo", "Redo"),
("pdf.pages.blank", "Insert Blank Page"),
("pdf.pages.file", "Insert Pages from File…"),
("pdf.pages.delete", "Delete Pages"),
("pdf.pages.rotate_left", "Rotate Pages Left"),
("pdf.pages.rotate_right", "Rotate Pages Right"),
("pdf.pages.crop", "Crop Pages…"),
("pdf.pages.up", "Move Pages Up"),
("pdf.pages.down", "Move Pages Down"),
("pdf.pages.first", "Move Pages to Start"),
("pdf.pages.last", "Move Pages to End"),
("pdf.pages.extract", "Extract Pages…"),
("pdf.pages.split", "Split into Files…"),
("pdf.pages.keep_one", "A PDF keeps at least one page"),
("pdf.side.pages", "Pages"),
("pdf.side.marks", "Bookmarks"),
("pdf.page.label", "Page {n}"),
("pdf.crop.title", "Crop {count} pages"),
("pdf.crop.title.one", "Crop 1 page"),
("pdf.crop.top", "Top"),
("pdf.crop.right", "Right"),
("pdf.crop.bottom", "Bottom"),
("pdf.crop.left", "Left"),
("pdf.crop.go", "Crop"),
("pdf.split.title", "Split into Files"),
("pdf.split.every", "Pages per file"),
("pdf.split.go", "Choose Folder…"),
("pdf.split.done", "{count} files written"),
("pdf.split.done.one", "1 file written"),
("pdf.extract.taken", "{name} is open; choose another name"),
("pdf.extract.done", "Pages written to {name}"),
("pdf.font.original", "The document's font"),
("pdf.font.helvetica", "Helvetica"),
("pdf.font.times", "Times"),
("pdf.font.courier", "Courier"),
("pdf.font.sc", "Chinese (Simplified)"),
("pdf.font.tc", "Chinese (Traditional)"),
("pdf.font.jp", "Japanese"),
("pdf.font.kr", "Korean"),
("pdf.text.font", "Font"),
("pdf.text.size", "Size"),
("pdf.text.color", "Color"),
("pdf.text.width", "Box width"),
("pdf.text.apply", "Apply"),
("pdf.text.erase", "Delete Text"),
(
"pdf.text.missing",
"This font cannot draw “{char}”. Choose another font.",
),
("pdf.text.unwritable", "The document's own font cannot write new text. Choose another font."),
("pdf.object.replace", "Replace Image…"),
("pdf.object.delete", "Delete"),
(
"pdf.object.changed",
"The document changed meanwhile; nothing was done.",
),
("pdf.pages.changed", "Pages are moving; nothing was done. Try again."),
("pdf.tool.edit", "Edit Text and Images"),
("pdf.tool.text", "Add Text"),
("pdf.tool.image", "Add Image…"),
("pdf.preview.title", "Check the Change"),
(
"pdf.preview.detail",
"The new text takes a different space on the page.",
),
("menu.annotate", "Annotate"),
("menu.form", "Form"),
("pdf.tool.highlight", "Highlight"),
("pdf.tool.underline", "Underline"),
("pdf.tool.strikeout", "Strikethrough"),
("pdf.tool.note", "Note"),
("pdf.tool.stamp", "Stamp"),
("pdf.tool.square", "Rectangle"),
("pdf.tool.circle", "Ellipse"),
("pdf.tool.line", "Line"),
("pdf.tool.ink", "Freehand"),
("pdf.tool.field_text", "Text Field"),
("pdf.tool.field_check", "Checkbox"),
("pdf.tool.field_radio", "Radio Button"),
("pdf.tool.field_choice", "Choice"),
("pdf.note.add", "Add"),
("pdf.note.kind", "Kind"),
("pdf.note.author", "Author"),
("pdf.note.contents", "Contents"),
("pdf.field.name", "Name"),
("pdf.field.options", "Options"),
("pdf.side.notes", "Annotations"),
("pdf.notes.none", "No annotations"),
("pdf.annot.Highlight", "Highlight"),
("pdf.annot.Underline", "Underline"),
("pdf.annot.StrikeOut", "Strikethrough"),
("pdf.annot.Squiggly", "Squiggly"),
("pdf.annot.Text", "Note"),
("pdf.annot.FreeText", "Text Box"),
("pdf.annot.Square", "Rectangle"),
("pdf.annot.Circle", "Ellipse"),
("pdf.annot.Line", "Line"),
("pdf.annot.Polygon", "Polygon"),
("pdf.annot.PolyLine", "Polyline"),
("pdf.annot.Ink", "Freehand"),
("pdf.annot.Stamp", "Stamp"),
("pdf.annot.Caret", "Insert Mark"),
("pdf.annot.FileAttachment", "Attachment"),
("pdf.stamp.Approved", "Approved"),
("pdf.stamp.AsIs", "As Is"),
("pdf.stamp.Confidential", "Confidential"),
("pdf.stamp.Departmental", "Departmental"),
("pdf.stamp.Draft", "Draft"),
("pdf.stamp.Experimental", "Experimental"),
("pdf.stamp.Expired", "Expired"),
("pdf.stamp.Final", "Final"),
("pdf.stamp.ForComment", "For Comment"),
("pdf.stamp.ForPublicRelease", "For Public Release"),
("pdf.stamp.NotApproved", "Not Approved"),
("pdf.stamp.NotForPublicRelease", "Not for Public Release"),
("pdf.stamp.Sold", "Sold"),
("pdf.stamp.TopSecret", "Top Secret"),
("menu.document", "Document"),
("pdf.props.open", "Document Properties…"),
("pdf.props.heading", "Document Properties"),
("pdf.ocr.title", "Recognize Text"),
("pdf.props.title", "Title"),
("pdf.props.author", "Author"),
("pdf.props.subject", "Subject"),
("pdf.props.keywords", "Keywords"),
("pdf.props.creator", "Created with"),
("pdf.props.producer", "Produced by"),
("pdf.props.created", "Created"),
("pdf.props.modified", "Modified"),
("pdf.props.none", "None"),
("pdf.ocr.open", "Recognize Text…"),
("pdf.ocr.go", "Recognize"),
("pdf.ocr.pages", "Pages"),
("pdf.ocr.all", "All"),
("pdf.ocr.current", "Current"),
("pdf.ocr.range", "Range"),
("pdf.ocr.from", "From page"),
("pdf.ocr.to", "To page"),
("pdf.ocr.langs", "Languages"),
("pdf.ocr.eng", "English"),
("pdf.ocr.sim", "Simplified Chinese"),
("pdf.ocr.tra", "Traditional Chinese"),
("pdf.ocr.policy", "Pages with text"),
("pdf.ocr.skip", "Skip them"),
(
"pdf.ocr.replace",
"Read again, replacing Ely's earlier text",
),
("pdf.ocr.reading", "Reading page {n} of {count}"),
(
"pdf.ocr.done",
"Recognized {read} pages; skipped {skipped}.",
),
("pdf.ocr.done.one", "Recognized 1 page; skipped {skipped}."),
("pdf.mark.add", "Add Bookmark"),
("pdf.mark.rename", "Rename Bookmark"),
("pdf.mark.delete", "Delete Bookmark"),
("pdf.mark.title", "Title"),
("pdf.mark.empty", "A bookmark needs a title."),
("pdf.marks.none", "No bookmarks"),
("pdf.tool.link", "Add Link"),
("pdf.link.target", "Goes to"),
(
"pdf.link.bad",
"Type a page number, or a web or mail address.",
),
("pdf.link.refused", "Ely opens only web and mail links."),
("pdf.side.files", "Attachments"),
("pdf.files.none", "No attachments"),
("pdf.file.attach", "Attach File…"),
("pdf.file.save", "Save As…"),
("pdf.file.remove", "Remove"),
("pdf.redact.text", "Mark Text to Remove"),
("pdf.redact.area", "Mark Area to Remove"),
("pdf.redact.clear", "Clear Removal Marks"),
("pdf.redact.apply", "Remove Marked Content…"),
("pdf.redact.title", "Remove Marked Content from {name}"),
("pdf.redact.none", "Mark text or areas to remove first."),
(
"pdf.redact.count",
"{count} marked regions are removed for good.",
),
("pdf.redact.count.one", "1 marked region is removed for good."),
("pdf.redact.tail", "redacted"),
(
"pdf.redact.done",
"Saved {name}: {count} regions removed and checked.",
),
("pdf.redact.done.one", "Saved {name}: 1 region removed and checked."),
("pdf.clean.open", "Clean Document…"),
("pdf.clean.title", "Clean {name}"),
("pdf.clean.meta", "Properties and metadata ({count})"),
("pdf.clean.annots", "Annotations ({count})"),
("pdf.clean.files", "Attachments ({count})"),
(
"pdf.clean.hidden",
"Hidden text, scripts and hidden annotations ({count})",
),
("pdf.clean.tail", "cleaned"),
("pdf.clean.done", "Saved {name}, cleaned and checked."),
("pdf.removal.go", "Save As…"),
(
"pdf.removal.warning",
"This writes a new file; this document stays as it is. The original, old backups, sync history and copies already sent may still hold what is removed. Ely's working copies are deleted the ordinary way, not wiped from the disk.",
),
];
pub(super) const ZH_CN: &[(&str, &str)] = &[
("menu.edit", "编辑"),
("pdf.failed", "{what}失败:{error}"),
("pdf.status.page", "第 {n} 页,共 {count} 页"),
("pdf.copy", "复制"),
("pdf.find", "查找…"),
("pdf.view.continuous", "连续"),
("pdf.view.single", "单页"),
("pdf.view.two", "双页"),
("pdf.view.zoom_in", "放大"),
("pdf.view.zoom_out", "缩小"),
("pdf.view.fit_width", "适合宽度"),
("pdf.view.fit_page", "适合页面"),
("pdf.view.actual", "实际大小"),
("pdf.view.rotate_left", "向左旋转"),
("pdf.view.rotate_right", "向右旋转"),
("menu.pages", "页面"),
("pdf.undo", "撤销"),
("pdf.redo", "重做"),
("pdf.pages.blank", "插入空白页"),
("pdf.pages.file", "从文件插入页面…"),
("pdf.pages.delete", "删除页面"),
("pdf.pages.rotate_left", "页面向左旋转"),
("pdf.pages.rotate_right", "页面向右旋转"),
("pdf.pages.crop", "裁剪页面…"),
("pdf.pages.up", "页面上移"),
("pdf.pages.down", "页面下移"),
("pdf.pages.first", "页面移到开头"),
("pdf.pages.last", "页面移到末尾"),
("pdf.pages.extract", "提取页面…"),
("pdf.pages.split", "拆分为多个文件…"),
("pdf.pages.keep_one", "PDF 至少保留一页"),
("pdf.side.pages", "页面"),
("pdf.side.marks", "书签"),
("pdf.page.label", "第 {n} 页"),
("pdf.crop.title", "裁剪 {count} 页"),
("pdf.crop.title.one", "裁剪 1 页"),
("pdf.crop.top", "上"),
("pdf.crop.right", "右"),
("pdf.crop.bottom", "下"),
("pdf.crop.left", "左"),
("pdf.crop.go", "裁剪"),
("pdf.split.title", "拆分为多个文件"),
("pdf.split.every", "每个文件的页数"),
("pdf.split.go", "选择文件夹…"),
("pdf.split.done", "已写入 {count} 个文件"),
("pdf.split.done.one", "已写入 1 个文件"),
("pdf.extract.taken", "{name} 已打开,请换一个名称"),
("pdf.extract.done", "页面已写入 {name}"),
("pdf.font.original", "文档自带字体"),
("pdf.font.helvetica", "Helvetica"),
("pdf.font.times", "Times"),
("pdf.font.courier", "Courier"),
("pdf.font.sc", "简体中文"),
("pdf.font.tc", "繁体中文"),
("pdf.font.jp", "日文"),
("pdf.font.kr", "韩文"),
("pdf.text.font", "字体"),
("pdf.text.size", "字号"),
("pdf.text.color", "颜色"),
("pdf.text.width", "文本框宽度"),
("pdf.text.apply", "应用"),
("pdf.text.erase", "删除文字"),
("pdf.text.missing", "这种字体画不出“{char}”。请换一种字体。"),
("pdf.text.unwritable", "文档自带的字体写不了新字。请换一种字体。"),
("pdf.object.replace", "替换图片…"),
("pdf.object.delete", "删除"),
("pdf.object.changed", "文档已改动,未执行。"),
("pdf.pages.changed", "页面正在变动,未执行,请再试。"),
("pdf.tool.edit", "编辑文字和图片"),
("pdf.tool.text", "添加文字"),
("pdf.tool.image", "添加图片…"),
("pdf.preview.title", "确认改动"),
("pdf.preview.detail", "新文字在页面上占的位置不同。"),
("menu.annotate", "批注"),
("menu.form", "表单"),
("pdf.tool.highlight", "高亮"),
("pdf.tool.underline", "下划线"),
("pdf.tool.strikeout", "删除线"),
("pdf.tool.note", "便签"),
("pdf.tool.stamp", "印章"),
("pdf.tool.square", "矩形"),
("pdf.tool.circle", "椭圆"),
("pdf.tool.line", "直线"),
("pdf.tool.ink", "手绘"),
("pdf.tool.field_text", "文本字段"),
("pdf.tool.field_check", "复选框"),
("pdf.tool.field_radio", "单选按钮"),
("pdf.tool.field_choice", "选择框"),
("pdf.note.add", "添加"),
("pdf.note.kind", "类型"),
("pdf.note.author", "作者"),
("pdf.note.contents", "内容"),
("pdf.field.name", "名称"),
("pdf.field.options", "选项"),
("pdf.side.notes", "批注"),
("pdf.notes.none", "没有批注"),
("pdf.annot.Highlight", "高亮"),
("pdf.annot.Underline", "下划线"),
("pdf.annot.StrikeOut", "删除线"),
("pdf.annot.Squiggly", "波浪线"),
("pdf.annot.Text", "便签"),
("pdf.annot.FreeText", "文本框"),
("pdf.annot.Square", "矩形"),
("pdf.annot.Circle", "椭圆"),
("pdf.annot.Line", "直线"),
("pdf.annot.Polygon", "多边形"),
("pdf.annot.PolyLine", "折线"),
("pdf.annot.Ink", "手绘"),
("pdf.annot.Stamp", "印章"),
("pdf.annot.Caret", "插入符"),
("pdf.annot.FileAttachment", "附件"),
("pdf.stamp.Approved", "已批准"),
("pdf.stamp.AsIs", "按原样"),
("pdf.stamp.Confidential", "机密"),
("pdf.stamp.Departmental", "部门"),
("pdf.stamp.Draft", "草稿"),
("pdf.stamp.Experimental", "试验"),
("pdf.stamp.Expired", "已过期"),
("pdf.stamp.Final", "最终"),
("pdf.stamp.ForComment", "征求意见"),
("pdf.stamp.ForPublicRelease", "可公开发布"),
("pdf.stamp.NotApproved", "未批准"),
("pdf.stamp.NotForPublicRelease", "不可公开发布"),
("pdf.stamp.Sold", "已售"),
("pdf.stamp.TopSecret", "绝密"),
("menu.document", "文档"),
("pdf.props.open", "文档属性…"),
("pdf.props.heading", "文档属性"),
("pdf.ocr.title", "识别文字"),
("pdf.props.title", "标题"),
("pdf.props.author", "作者"),
("pdf.props.subject", "主题"),
("pdf.props.keywords", "关键词"),
("pdf.props.creator", "创建程序"),
("pdf.props.producer", "生成程序"),
("pdf.props.created", "创建时间"),
("pdf.props.modified", "修改时间"),
("pdf.props.none", "无"),
("pdf.ocr.open", "识别文字…"),
("pdf.ocr.go", "识别"),
("pdf.ocr.pages", "页面"),
("pdf.ocr.all", "全部"),
("pdf.ocr.current", "当前页"),
("pdf.ocr.range", "范围"),
("pdf.ocr.from", "起始页"),
("pdf.ocr.to", "结束页"),
("pdf.ocr.langs", "语言"),
("pdf.ocr.eng", "英文"),
("pdf.ocr.sim", "简体中文"),
("pdf.ocr.tra", "繁体中文"),
("pdf.ocr.policy", "已有文字的页"),
("pdf.ocr.skip", "跳过"),
("pdf.ocr.replace", "重新识别,替换 Ely 此前的文字层"),
("pdf.ocr.reading", "正在识别第 {n} 页,共 {count} 页"),
("pdf.ocr.done", "识别了 {read} 页,跳过 {skipped} 页。"),
("pdf.ocr.done.one", "识别了 1 页,跳过 {skipped} 页。"),
("pdf.mark.add", "添加书签"),
("pdf.mark.rename", "重命名书签"),
("pdf.mark.delete", "删除书签"),
("pdf.mark.title", "标题"),
("pdf.mark.empty", "书签需要标题。"),
("pdf.marks.none", "没有书签"),
("pdf.tool.link", "添加链接"),
("pdf.link.target", "目标"),
("pdf.link.bad", "请输入页码,或网址、邮件地址。"),
("pdf.link.refused", "Ely 只打开网页与邮件链接。"),
("pdf.side.files", "附件"),
("pdf.files.none", "没有附件"),
("pdf.file.attach", "添加附件…"),
("pdf.file.save", "另存为…"),
("pdf.file.remove", "移除"),
("pdf.redact.text", "标记文字以删除"),
("pdf.redact.area", "标记区域以删除"),
("pdf.redact.clear", "清除删除标记"),
("pdf.redact.apply", "删除标记的内容…"),
("pdf.redact.title", "删除 {name} 中标记的内容"),
("pdf.redact.none", "请先标记要删除的文字或区域。"),
("pdf.redact.count", "将彻底删除 {count} 处标记。"),
("pdf.redact.count.one", "将彻底删除 1 处标记。"),
("pdf.redact.tail", "已删除"),
(
"pdf.redact.done",
"已保存 {name}:删除并核对了 {count} 处。",
),
("pdf.redact.done.one", "已保存 {name}:删除并核对了 1 处。"),
("pdf.clean.open", "清理文档…"),
("pdf.clean.title", "清理 {name}"),
("pdf.clean.meta", "属性与元数据({count})"),
("pdf.clean.annots", "批注({count})"),
("pdf.clean.files", "附件({count})"),
("pdf.clean.hidden", "隐藏文字、脚本与隐藏的批注({count})"),
("pdf.clean.tail", "已清理"),
("pdf.clean.done", "已保存 {name},清理并核对完毕。"),
("pdf.removal.go", "另存为…"),
(
"pdf.removal.warning",
"将写成新文件,当前文档不变。原件、旧备份、同步历史与已发出的副本仍可能含有被删内容。Ely 的工作副本按普通方式删除,不是磁盘级擦除。",
),
];