Files
ElyOffice/crates/ely-ui/src/i18n/tree.rs
T
ZacharyZhang-NY d59159cea2 Fixes for M-02 to M-14, G-01 to G-14, K-02 to K-04, X-04 to X-14, not yet reviewed
Committed before review so Windows and WSL builds can start.
Each fix was tested and mutation-checked here; the codex review
of each item is still to come, so tasks/BUGS.md stays unticked.

M-02 is mid-review: round 1 findings are fixed (apps/ely-mark/src/tally.rs).
K-01 stays deferred. The ElyMark window test mark-outside.sh failed
once at its crash-recovery step in the last run; not yet looked into.
2026-10-10 02:29:19 -04:00

255 lines
11 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.
//! ElyTree's repositories and work tree.
pub(super) const EN: &[(&str, &str)] = &[
("tree.menu.repository", "Repository"),
("tree.open", "Open Repository…"),
("tree.new", "New Repository…"),
("tree.clone", "Clone…"),
("tree.close", "Close Repository"),
("tree.empty", "Open a repository"),
("tree.cloning", "Cloning into {name}"),
("tree.clone.title", "Clone a repository"),
("tree.clone.url", "URL"),
("tree.clone.next", "Choose Folder…"),
("tree.clone.empty", "Enter a URL"),
("tree.clone.stop", "Stop"),
("tree.clone.stopped", "Clone stopped."),
("tree.clone.busy", "A clone is already running."),
("tree.clean", "Nothing to commit"),
("tree.changed", "{n} files changed"),
("tree.changed.one", "1 file changed"),
("tree.no_git", "Git is not available"),
("tree.unreadable", "This repository could not be read"),
("tree.branch.detached", "Detached at {oid}"),
("tree.branch.unborn", "{branch}, no commits yet"),
("tree.ahead_behind", "{upstream} ↑{ahead} ↓{behind}"),
("tree.upstream_gone", "{upstream} is gone"),
("tree.git.bundled", "{version}, bundled, {path}"),
("tree.git.system", "{version}, system, {path}"),
("tree.busy", "Wait for this repository's changes to finish."),
("tree.gone", "{path} is not on disk."),
("tree.discard.title", "Discard changes to {path}?"),
(
"tree.discard.tracked",
"The file goes back to its staged or committed content. This cannot be undone.",
),
(
"tree.discard.untracked",
"{path} will be deleted. Git does not track it, so it cannot be restored.",
),
("tree.discard.go", "Discard"),
("tree.error.no_git", "Git is not available: {error}"),
("tree.error.open", "{path} could not be opened: {error}"),
(
"tree.error.recent_gone",
"{path} could not be opened and left the recent list: {error}",
),
("tree.error.recent", "The recent list: {error}"),
(
"tree.error.watch",
"Changes made outside Ely are not followed: {error}",
),
("tree.error.write", "Git failed: {error}"),
("tree.error.clone", "The clone failed: {error}"),
("tree.error.stop", "The clone did not stop: {error}"),
("tree.error.stop_remote", "Git did not stop: {error}"),
("tree.error.panel", "The folder panel failed: {error}"),
("tree.space.exact", "Exact"),
("tree.space.changes", "Ignore Space Changes"),
("tree.space.all", "Ignore All Space"),
(
"tree.space.note",
"Hunks and lines stage with exact whitespace.",
),
("tree.layout.unified", "Unified"),
("tree.layout.split", "Side by Side"),
("tree.lines.stage", "Stage {n} Lines"),
("tree.lines.stage.one", "Stage 1 Line"),
("tree.lines.unstage", "Unstage {n} Lines"),
("tree.lines.unstage.one", "Unstage 1 Line"),
("tree.hunk.stage", "Stage Hunk"),
("tree.hunk.unstage", "Unstage Hunk"),
("tree.open_file", "Open File"),
("tree.whole", "This file stages as a whole."),
("tree.diff.unread", "This diff could not be read"),
("tree.diff.none", "No changes to show"),
("tree.binary", "Binary file"),
("tree.folder", "Untracked folder"),
("tree.conflicted", "This file has conflicts"),
("tree.side.changes", "Changes"),
("tree.side.history", "History"),
("tree.commit.subject", "Summary"),
("tree.commit.body", "Description"),
("tree.commit.failed", "The commit did not go in"),
("tree.commit.pick", "Pick a commit"),
("tree.commit.pick_file", "Pick a file"),
("tree.commit.unread", "This commit could not be read"),
("tree.commit.author", "Author"),
("tree.commit.committer", "Committer"),
("tree.commit.id", "Commit"),
("tree.commit.parents", "Parents"),
("tree.commit.signature", "Signature"),
("tree.commit.refs", "Refs"),
("tree.sig.good", "Good signature"),
("tree.sig.bad", "Bad signature"),
("tree.sig.untrusted", "Good signature, unknown validity"),
("tree.sig.expired", "Good signature, expired"),
("tree.sig.expired_key", "Good signature, expired key"),
("tree.sig.revoked", "Good signature, revoked key"),
("tree.sig.unchecked", "Signature cannot be checked"),
("tree.sig.none", "Not signed"),
("tree.me.unset", "Identity not set"),
("tree.me.unread", "Identity unreadable: {error}"),
("tree.me.signs", "Signs with {format}"),
("tree.identity.title", "Commit identity"),
("tree.identity.name", "Name"),
("tree.identity.email", "Email"),
("tree.identity.global", "For all repositories"),
("tree.identity.save", "Save"),
("tree.identity.empty", "Enter a name and an email."),
("tree.cancel", "Cancel"),
("tree.ok", "OK"),
(
"tree.error.amend",
"The last commit could not be read: {error}",
),
("tree.search", "Search commits"),
("tree.find", "Search in"),
("tree.find.message", "Message"),
("tree.find.author", "Author"),
("tree.find.hash", "Commit ID"),
("tree.find.content", "Changed text"),
("tree.log.none", "No commits yet"),
("tree.log.none_found", "No commits match"),
("tree.log.unread", "History could not be read"),
("tree.file_log", "File History"),
("tree.file_log.of", "History of {path}"),
("tree.blame", "Blame"),
("tree.blame.of", "Blame of {path}"),
("tree.blame.uncommitted", "Not committed yet"),
("tree.close_look", "Close"),
("tree.look.unread", "This could not be read"),
];
pub(super) const ZH_CN: &[(&str, &str)] = &[
("tree.menu.repository", "仓库"),
("tree.open", "打开仓库…"),
("tree.new", "新建仓库…"),
("tree.clone", "克隆…"),
("tree.close", "关闭仓库"),
("tree.empty", "打开一个仓库"),
("tree.cloning", "正在克隆到 {name}"),
("tree.clone.title", "克隆仓库"),
("tree.clone.url", "地址"),
("tree.clone.next", "选择文件夹…"),
("tree.clone.empty", "请输入地址"),
("tree.clone.stop", "停止"),
("tree.clone.stopped", "克隆已停止。"),
("tree.clone.busy", "已有克隆正在进行。"),
("tree.clean", "没有要提交的改动"),
("tree.changed", "{n} 个文件有改动"),
("tree.changed.one", "1 个文件有改动"),
("tree.no_git", "Git 不可用"),
("tree.unreadable", "无法读取此仓库"),
("tree.branch.detached", "游离于 {oid}"),
("tree.branch.unborn", "{branch},尚无提交"),
("tree.ahead_behind", "{upstream} ↑{ahead} ↓{behind}"),
("tree.upstream_gone", "{upstream} 已不存在"),
("tree.git.bundled", "{version},随附,{path}"),
("tree.git.system", "{version},系统,{path}"),
("tree.busy", "请等此仓库的改动完成。"),
("tree.gone", "{path} 不在磁盘上。"),
("tree.discard.title", "放弃 {path} 的改动?"),
(
"tree.discard.tracked",
"文件回到已暂存或已提交的内容。此操作无法撤销。",
),
(
"tree.discard.untracked",
"{path} 将被删除。Git 未跟踪它,无法恢复。",
),
("tree.discard.go", "放弃改动"),
("tree.error.no_git", "Git 不可用:{error}"),
("tree.error.open", "无法打开 {path}:{error}"),
(
"tree.error.recent_gone",
"无法打开 {path},已移出最近列表:{error}",
),
("tree.error.recent", "最近列表:{error}"),
("tree.error.watch", "不跟随 Ely 以外的改动:{error}"),
("tree.error.write", "Git 失败:{error}"),
("tree.error.clone", "克隆失败:{error}"),
("tree.error.stop", "克隆未能停止:{error}"),
("tree.error.stop_remote", "Git 未能停止:{error}"),
("tree.error.panel", "文件夹面板失败:{error}"),
("tree.space.exact", "精确"),
("tree.space.changes", "忽略空白变化"),
("tree.space.all", "忽略全部空白"),
("tree.space.note", "按块和按行暂存需精确比较空白。"),
("tree.layout.unified", "行内"),
("tree.layout.split", "并排"),
("tree.lines.stage", "暂存 {n} 行"),
("tree.lines.stage.one", "暂存 1 行"),
("tree.lines.unstage", "取消暂存 {n} 行"),
("tree.lines.unstage.one", "取消暂存 1 行"),
("tree.hunk.stage", "暂存此块"),
("tree.hunk.unstage", "取消暂存此块"),
("tree.open_file", "打开文件"),
("tree.whole", "此文件只能整体暂存。"),
("tree.diff.unread", "无法读取此差异"),
("tree.diff.none", "没有可显示的改动"),
("tree.binary", "二进制文件"),
("tree.folder", "未跟踪的文件夹"),
("tree.conflicted", "此文件有冲突"),
("tree.side.changes", "改动"),
("tree.side.history", "历史"),
("tree.commit.subject", "摘要"),
("tree.commit.body", "说明"),
("tree.commit.failed", "提交未完成"),
("tree.commit.pick", "选择一个提交"),
("tree.commit.pick_file", "选择一个文件"),
("tree.commit.unread", "无法读取此提交"),
("tree.commit.author", "作者"),
("tree.commit.committer", "提交者"),
("tree.commit.id", "提交"),
("tree.commit.parents", "父提交"),
("tree.commit.signature", "签名"),
("tree.commit.refs", "引用"),
("tree.sig.good", "签名有效"),
("tree.sig.bad", "签名无效"),
("tree.sig.untrusted", "签名有效,信任未知"),
("tree.sig.expired", "签名有效,已过期"),
("tree.sig.expired_key", "签名有效,密钥已过期"),
("tree.sig.revoked", "签名有效,密钥已吊销"),
("tree.sig.unchecked", "无法核验签名"),
("tree.sig.none", "未签名"),
("tree.me.unset", "未设置身份"),
("tree.me.unread", "无法读取身份:{error}"),
("tree.me.signs", "以 {format} 签名"),
("tree.identity.title", "提交身份"),
("tree.identity.name", "姓名"),
("tree.identity.email", "邮箱"),
("tree.identity.global", "用于所有仓库"),
("tree.identity.save", "保存"),
("tree.identity.empty", "请输入姓名和邮箱。"),
("tree.cancel", "取消"),
("tree.ok", "好"),
("tree.error.amend", "无法读取最近一次提交:{error}"),
("tree.search", "搜索提交"),
("tree.find", "搜索范围"),
("tree.find.message", "提交信息"),
("tree.find.author", "作者"),
("tree.find.hash", "提交号"),
("tree.find.content", "改动的文字"),
("tree.log.none", "尚无提交"),
("tree.log.none_found", "没有匹配的提交"),
("tree.log.unread", "无法读取历史"),
("tree.file_log", "文件历史"),
("tree.file_log.of", "{path} 的历史"),
("tree.blame", "逐行追溯"),
("tree.blame.of", "{path} 的逐行追溯"),
("tree.blame.uncommitted", "尚未提交"),
("tree.close_look", "关闭"),
("tree.look.unread", "无法读取"),
];