Ely Office: six offline-first desktop apps in Rust and GPUI

ElyDoc, ElyTable, ElyShow (LibreOfficeKit), ElyPDF (MuPDF), ElyTree (Git),
ElyMark (Milkdown and CodeMirror in CEF). ElyMail and ElyAgent follow.
This commit is contained in:
ZacharyZhang-NY committed 2026-10-08 21:20:08 -04:00
commit b7fca0146d
817 files changed
+143101

No files matched your search

+171
View File
@@ -0,0 +1,171 @@
//! ElyTable's text files, export, page and protection messages.
pub(super) const EN: &[(&str, &str)] = &[
("menu.page", "Page"),
("table.page.setup", "Page Setup…"),
("table.page.row_break", "Insert Row Break"),
("table.page.column_break", "Insert Column Break"),
("table.page.remove_row_break", "Remove Row Break"),
("table.page.remove_column_break", "Remove Column Break"),
("table.page.no_break", "No manual break here"),
("table.page.title", "Page Setup"),
("table.page.shared", "Applies to {sheets}"),
("table.page.area", "Print area"),
("table.page.area_hint", "Used cells"),
("table.page.rows", "Rows to repeat"),
("table.page.rows_hint", "1:1"),
("table.page.columns", "Columns to repeat"),
("table.page.columns_hint", "A:A"),
("table.page.orientation", "Orientation"),
("table.page.portrait", "Portrait"),
("table.page.landscape", "Landscape"),
("table.page.scale", "Scale"),
("table.page.percent", "Percent"),
("table.page.fit", "Pages wide × tall"),
("table.page.pages", "Pages in all"),
("table.page.apply", "Apply"),
(
"table.page.bad_reference",
"Write ranges like A1:D20, rows like 1:2, columns like A:B",
),
("table.page.bad_fit", "Fit needs a width or a height"),
("table.export.title", "Export"),
("table.export.go", "Export…"),
(
"table.export.loss",
"Only “{sheet}” goes out, as its shown values. Formulas, formatting, other sheets and charts stay behind.",
),
("table.export.open", "{name} is open; close it first"),
("table.export.done", "Exported {name}"),
("table.export.failed", "Export failed: {error}"),
("table.import.title", "Open {name}"),
("table.import.go", "Open"),
("table.import.encoding", "Encoding"),
("table.import.separator", "Separator"),
("table.import.quote", "Quote"),
("table.import.no_quote", "None"),
("table.import.comma", "Comma"),
("table.import.semicolon", "Semicolon"),
("table.import.tab", "Tab"),
("table.import.pipe", "Bar"),
("table.import.space", "Space"),
("table.import.kind_of", "Column {n}"),
("table.import.standard", "Standard"),
("table.import.text", "Text"),
("table.import.mdy", "Date M/D/Y"),
("table.import.dmy", "Date D/M/Y"),
("table.import.ymd", "Date Y/M/D"),
("table.import.skip", "Skip"),
(
"table.import.broken",
"This encoding cannot read the file; pick another",
),
("table.protect.menu", "Sheet Protection…"),
("table.protect.lock", "Lock Cells"),
("table.protect.unlock", "Unlock Cells"),
("table.protect.on_title", "Protect Sheet"),
("table.protect.on", "Protect"),
("table.protect.off_title", "Unprotect Sheet"),
("table.protect.off", "Unprotect"),
("table.protect.password", "Password"),
("table.protect.confirm", "Confirm"),
("table.protect.mismatch", "The passwords differ"),
(
"table.protect.wrong",
"Wrong password; the sheet stays protected",
),
("table.protect.selectLocked", "Select locked cells"),
("table.protect.selectUnlocked", "Select unlocked cells"),
("table.protect.insertColumns", "Insert columns"),
("table.protect.insertRows", "Insert rows"),
("table.protect.deleteColumns", "Delete columns"),
("table.protect.deleteRows", "Delete rows"),
("table.protect.autofilter", "Use filters"),
("table.protect.pivot", "Use pivot tables"),
(
"table.links.stale",
"Linked values are as last saved; not refreshed: {sources}",
),
];
pub(super) const ZH_CN: &[(&str, &str)] = &[
("menu.page", "页面"),
("table.page.setup", "页面设置…"),
("table.page.row_break", "插入行分页符"),
("table.page.column_break", "插入列分页符"),
("table.page.remove_row_break", "删除行分页符"),
("table.page.remove_column_break", "删除列分页符"),
("table.page.no_break", "此处没有手动分页符"),
("table.page.title", "页面设置"),
("table.page.shared", "作用于 {sheets}"),
("table.page.area", "打印区域"),
("table.page.area_hint", "已用单元格"),
("table.page.rows", "重复的行"),
("table.page.rows_hint", "1:1"),
("table.page.columns", "重复的列"),
("table.page.columns_hint", "A:A"),
("table.page.orientation", "方向"),
("table.page.portrait", "纵向"),
("table.page.landscape", "横向"),
("table.page.scale", "缩放"),
("table.page.percent", "百分比"),
("table.page.fit", "宽 × 高页数"),
("table.page.pages", "总页数"),
("table.page.apply", "应用"),
(
"table.page.bad_reference",
"区域写作 A1:D20,行写作 1:2,列写作 A:B",
),
("table.page.bad_fit", "缩放到页需要宽或高"),
("table.export.title", "导出"),
("table.export.go", "导出…"),
(
"table.export.loss",
"只导出“{sheet}”,按显示的值写出。公式、格式、其他工作表和图表都不保留。",
),
("table.export.open", "{name} 正在打开,请先关闭"),
("table.export.done", "已导出 {name}"),
("table.export.failed", "导出失败:{error}"),
("table.import.title", "打开 {name}"),
("table.import.go", "打开"),
("table.import.encoding", "编码"),
("table.import.separator", "分隔符"),
("table.import.quote", "引号"),
("table.import.no_quote", "无"),
("table.import.comma", "逗号"),
("table.import.semicolon", "分号"),
("table.import.tab", "制表符"),
("table.import.pipe", "竖线"),
("table.import.space", "空格"),
("table.import.kind_of", "第 {n} 列"),
("table.import.standard", "常规"),
("table.import.text", "文本"),
("table.import.mdy", "日期 月/日/年"),
("table.import.dmy", "日期 日/月/年"),
("table.import.ymd", "日期 年/月/日"),
("table.import.skip", "跳过"),
("table.import.broken", "此编码读不了这个文件,请换一种"),
("table.protect.menu", "工作表保护…"),
("table.protect.lock", "锁定单元格"),
("table.protect.unlock", "解锁单元格"),
("table.protect.on_title", "保护工作表"),
("table.protect.on", "保护"),
("table.protect.off_title", "取消保护工作表"),
("table.protect.off", "取消保护"),
("table.protect.password", "密码"),
("table.protect.confirm", "确认"),
("table.protect.mismatch", "两次密码不同"),
("table.protect.wrong", "密码错误,工作表仍受保护"),
("table.protect.selectLocked", "选择锁定的单元格"),
("table.protect.selectUnlocked", "选择未锁定的单元格"),
("table.protect.insertColumns", "插入列"),
("table.protect.insertRows", "插入行"),
("table.protect.deleteColumns", "删除列"),
("table.protect.deleteRows", "删除行"),
("table.protect.autofilter", "使用筛选"),
("table.protect.pivot", "使用数据透视表"),
(
"table.links.stale",
"链接的值为上次保存时的值,未刷新:{sources}",
),
];