292 lines
12 KiB
Rust
292 lines
12 KiB
Rust
//! ElyTree's stashes, remotes, worktrees, submodules, LFS.
|
||
|
||
pub(super) const EN: &[(&str, &str)] = &[
|
||
("tree.side.places", "Repository"),
|
||
("tree.places.stashes", "Stashes"),
|
||
("tree.places.remotes", "Remotes"),
|
||
("tree.places.worktrees", "Worktrees"),
|
||
("tree.places.submodules", "Submodules"),
|
||
("tree.places.lfs", "LFS Files"),
|
||
(
|
||
"tree.places.pick",
|
||
"Pick a stash, remote, worktree or submodule",
|
||
),
|
||
("tree.net.fetch", "Fetch"),
|
||
("tree.net.pull", "Pull"),
|
||
("tree.net.push", "Push"),
|
||
("tree.net.running.fetch", "Fetching…"),
|
||
("tree.net.running.pull", "Pulling…"),
|
||
("tree.net.running.push", "Pushing…"),
|
||
("tree.net.running.submodule", "Updating the submodule…"),
|
||
("tree.net.stop", "Stop"),
|
||
("tree.net.stopped", "Stopped"),
|
||
(
|
||
"tree.push.detached",
|
||
"HEAD is not on a branch; nothing to push",
|
||
),
|
||
(
|
||
"tree.push.no_remote",
|
||
"This repository has no remote; add one first",
|
||
),
|
||
("tree.push.where", "Push {branch} to which remote?"),
|
||
("tree.remotes.unread", "Remotes could not be read"),
|
||
("tree.force.open", "Force Push…"),
|
||
("tree.force.title", "Force push?"),
|
||
("tree.force.go", "Force Push"),
|
||
("tree.force.unready", "A forced push needs an upstream"),
|
||
(
|
||
"tree.force.message",
|
||
"{branch} goes to {target} on {remote}, refused if the remote moved since the last fetch.\n\n{lost}",
|
||
),
|
||
(
|
||
"tree.force.nothing",
|
||
"The remote holds nothing this branch lacks.",
|
||
),
|
||
(
|
||
"tree.force.lost",
|
||
"These {n} commits on the remote would be overwritten:\n{commits}",
|
||
),
|
||
("tree.force.lost.one", "This commit on the remote would be overwritten:\n{commits}"),
|
||
("tree.stash.open", "Stash Changes…"),
|
||
("tree.stash.title", "Stash changes"),
|
||
("tree.stash.message", "Message"),
|
||
("tree.stash.untracked", "Include untracked files"),
|
||
("tree.stash.go", "Stash"),
|
||
("tree.stash.when", "Stashed"),
|
||
("tree.stash.apply", "Apply"),
|
||
("tree.stash.pop", "Pop"),
|
||
("tree.stash.drop", "Drop…"),
|
||
("tree.stash.drop.title", "Drop {name}?"),
|
||
(
|
||
"tree.stash.drop.message",
|
||
"{name} and its changes are gone for good.",
|
||
),
|
||
("tree.stash.drop.go", "Drop"),
|
||
("tree.remote.open", "Add Remote…"),
|
||
("tree.remote.add", "Add a remote"),
|
||
("tree.remote.edit", "Change {name}"),
|
||
("tree.remote.name", "Name"),
|
||
("tree.remote.url", "URL"),
|
||
("tree.remote.push_url", "Push URL"),
|
||
("tree.remote.same", "Same as the URL"),
|
||
("tree.remote.save", "Save"),
|
||
("tree.remote.change", "Change…"),
|
||
("tree.remote.delete", "Remove…"),
|
||
("tree.remote.empty", "A remote needs a name and a URL"),
|
||
("tree.remote.remove.title", "Remove the remote {name}?"),
|
||
(
|
||
"tree.remote.remove.message",
|
||
"Its remote branches go too. The remote itself is not touched.",
|
||
),
|
||
("tree.remote.remove.go", "Remove"),
|
||
("tree.worktree.open", "Add Worktree…"),
|
||
("tree.worktree.title", "A worktree at {path}"),
|
||
("tree.worktree.branch", "Branch"),
|
||
("tree.worktree.new", "Make it a new branch"),
|
||
("tree.worktree.go", "Add"),
|
||
("tree.worktree.prune", "Prune"),
|
||
("tree.worktree.prunable", "Folder gone"),
|
||
("tree.worktree.bare", "Bare"),
|
||
("tree.worktree.on", "Branch"),
|
||
("tree.worktree.locked", "Locked"),
|
||
("tree.worktree.open_it", "Open"),
|
||
("tree.worktree.delete", "Remove…"),
|
||
("tree.worktree.remove.title", "Remove the worktree {name}?"),
|
||
(
|
||
"tree.worktree.remove.message",
|
||
"Its folder is deleted. Git refuses if it holds changes.",
|
||
),
|
||
("tree.worktree.remove.go", "Remove"),
|
||
("tree.submodule.conflicted", "Conflicted"),
|
||
("tree.submodule.missing", "Not checked out"),
|
||
("tree.submodule.matches", "At the recorded commit"),
|
||
("tree.submodule.differs", "At another commit"),
|
||
("tree.submodule.unread", "Could not be read"),
|
||
("tree.submodule.recorded", "Recorded"),
|
||
("tree.submodule.held", "Checked out"),
|
||
("tree.submodule.update", "Check Out Recorded Commit"),
|
||
("tree.submodule.open", "Open"),
|
||
("tree.lfs.here", "In the work tree"),
|
||
("tree.lfs.stored", "Object here, pointer in the work tree"),
|
||
("tree.lfs.pointer", "Pointer only; the object is not here"),
|
||
("tree.upstream.set", "Set Upstream…"),
|
||
("tree.upstream.unset", "Unset Upstream"),
|
||
(
|
||
"tree.upstream.title",
|
||
"Which remote branch does {branch} track?",
|
||
),
|
||
("tree.upstream.none", "No remote branches; fetch first"),
|
||
("tree.places.reflog", "Reflog"),
|
||
("tree.reflog.where", "Position"),
|
||
("tree.reflog.when", "Moved"),
|
||
("tree.move.open", "Move Current Branch Here…"),
|
||
("tree.move.title", "Move the branch back?"),
|
||
("tree.move.go", "Move"),
|
||
("tree.move.detached", "Detached HEAD"),
|
||
(
|
||
"tree.move.message",
|
||
"{what} moves from {from} to {to}. Changes in the work tree and index stay; Git refuses if they collide.\n\n{left}",
|
||
),
|
||
("tree.move.nothing", "No commit leaves the branch."),
|
||
(
|
||
"tree.move.left",
|
||
"These {n} commits leave it; the reflog still finds them:\n{commits}",
|
||
),
|
||
("tree.move.left.one", "This commit leaves it; the reflog still finds it:\n{commits}"),
|
||
("tree.clean.open", "Clean Untracked Files…"),
|
||
("tree.clean.title", "Clean untracked files"),
|
||
("tree.clean.ignored", "Include ignored files"),
|
||
("tree.clean.reading", "Asking Git what it would remove…"),
|
||
("tree.clean.nothing", "Nothing to remove."),
|
||
("tree.clean.go", "Delete {n}"),
|
||
("tree.locked.title", "Another Git is at work"),
|
||
(
|
||
"tree.locked.message",
|
||
"A lock file is in place. Wait for the other Git to finish, then retry. Ely never deletes lock files.",
|
||
),
|
||
("tree.locked.retry", "Retry"),
|
||
("tree.tool.terminal", "Open in Terminal"),
|
||
("tree.tool.reveal", "Show in Finder"),
|
||
("tree.tool.editor", "Choose Editor…"),
|
||
("tree.tool.in_editor", "Open in Editor"),
|
||
("tree.tool.in_mark", "Open in ElyMark"),
|
||
("tree.error.tool", "Could not open it: {error}"),
|
||
(
|
||
"tree.error.tools_file",
|
||
"The editor setting could not be read: {error}",
|
||
),
|
||
];
|
||
|
||
pub(super) const ZH_CN: &[(&str, &str)] = &[
|
||
("tree.side.places", "仓库"),
|
||
("tree.places.stashes", "储藏"),
|
||
("tree.places.remotes", "远程"),
|
||
("tree.places.worktrees", "工作树"),
|
||
("tree.places.submodules", "子模块"),
|
||
("tree.places.lfs", "LFS 文件"),
|
||
("tree.places.pick", "选一个储藏、远程、工作树或子模块"),
|
||
("tree.net.fetch", "取回"),
|
||
("tree.net.pull", "拉取"),
|
||
("tree.net.push", "推送"),
|
||
("tree.net.running.fetch", "正在取回…"),
|
||
("tree.net.running.pull", "正在拉取…"),
|
||
("tree.net.running.push", "正在推送…"),
|
||
("tree.net.running.submodule", "正在更新子模块…"),
|
||
("tree.net.stop", "停止"),
|
||
("tree.net.stopped", "已停止"),
|
||
("tree.push.detached", "HEAD 不在分支上,没有可推送的"),
|
||
("tree.push.no_remote", "此仓库没有远程,请先添加"),
|
||
("tree.push.where", "把 {branch} 推送到哪个远程?"),
|
||
("tree.remotes.unread", "读不出远程"),
|
||
("tree.force.open", "强制推送…"),
|
||
("tree.force.title", "强制推送?"),
|
||
("tree.force.go", "强制推送"),
|
||
("tree.force.unready", "强制推送需要上游分支"),
|
||
(
|
||
"tree.force.message",
|
||
"{branch} 推到 {remote} 的 {target};远端自上次取回后有变动即拒绝。\n\n{lost}",
|
||
),
|
||
("tree.force.nothing", "远端没有本分支缺少的提交。"),
|
||
("tree.force.lost", "远端这 {n} 个提交会被覆盖:\n{commits}"),
|
||
("tree.force.lost.one", "远端这 1 个提交会被覆盖:\n{commits}"),
|
||
("tree.stash.open", "储藏改动…"),
|
||
("tree.stash.title", "储藏改动"),
|
||
("tree.stash.message", "说明"),
|
||
("tree.stash.untracked", "包括未跟踪的文件"),
|
||
("tree.stash.go", "储藏"),
|
||
("tree.stash.when", "储藏于"),
|
||
("tree.stash.apply", "应用"),
|
||
("tree.stash.pop", "弹出"),
|
||
("tree.stash.drop", "删除…"),
|
||
("tree.stash.drop.title", "删除 {name}?"),
|
||
("tree.stash.drop.message", "{name} 与其中的改动将永久删除。"),
|
||
("tree.stash.drop.go", "删除"),
|
||
("tree.remote.open", "添加远程…"),
|
||
("tree.remote.add", "添加远程"),
|
||
("tree.remote.edit", "修改 {name}"),
|
||
("tree.remote.name", "名称"),
|
||
("tree.remote.url", "地址"),
|
||
("tree.remote.push_url", "推送地址"),
|
||
("tree.remote.same", "同地址"),
|
||
("tree.remote.save", "保存"),
|
||
("tree.remote.change", "修改…"),
|
||
("tree.remote.delete", "移除…"),
|
||
("tree.remote.empty", "远程需要名称与地址"),
|
||
("tree.remote.remove.title", "移除远程 {name}?"),
|
||
(
|
||
"tree.remote.remove.message",
|
||
"它的远程分支一并移除,远端本身不动。",
|
||
),
|
||
("tree.remote.remove.go", "移除"),
|
||
("tree.worktree.open", "添加工作树…"),
|
||
("tree.worktree.title", "在 {path} 添加工作树"),
|
||
("tree.worktree.branch", "分支"),
|
||
("tree.worktree.new", "作为新分支"),
|
||
("tree.worktree.go", "添加"),
|
||
("tree.worktree.prune", "清理"),
|
||
("tree.worktree.prunable", "文件夹已不在"),
|
||
("tree.worktree.bare", "裸仓库"),
|
||
("tree.worktree.on", "分支"),
|
||
("tree.worktree.locked", "已锁定"),
|
||
("tree.worktree.open_it", "打开"),
|
||
("tree.worktree.delete", "移除…"),
|
||
("tree.worktree.remove.title", "移除工作树 {name}?"),
|
||
(
|
||
"tree.worktree.remove.message",
|
||
"其文件夹将被删除;有改动时 Git 会拒绝。",
|
||
),
|
||
("tree.worktree.remove.go", "移除"),
|
||
("tree.submodule.conflicted", "冲突"),
|
||
("tree.submodule.missing", "未检出"),
|
||
("tree.submodule.matches", "在记录的提交上"),
|
||
("tree.submodule.differs", "在别的提交上"),
|
||
("tree.submodule.unread", "读不出"),
|
||
("tree.submodule.recorded", "记录的提交"),
|
||
("tree.submodule.held", "检出的提交"),
|
||
("tree.submodule.update", "检出记录的提交"),
|
||
("tree.submodule.open", "打开"),
|
||
("tree.lfs.here", "工作树里是内容"),
|
||
("tree.lfs.stored", "对象在本机,工作树里是指针"),
|
||
("tree.lfs.pointer", "只有指针,对象不在本机"),
|
||
("tree.upstream.set", "设置上游…"),
|
||
("tree.upstream.unset", "取消上游"),
|
||
("tree.upstream.title", "{branch} 跟踪哪个远程分支?"),
|
||
("tree.upstream.none", "没有远程分支,请先取回"),
|
||
("tree.places.reflog", "引用日志"),
|
||
("tree.reflog.where", "位置"),
|
||
("tree.reflog.when", "移动于"),
|
||
("tree.move.open", "把当前分支移到此…"),
|
||
("tree.move.title", "移回分支?"),
|
||
("tree.move.go", "移动"),
|
||
("tree.move.detached", "游离的 HEAD"),
|
||
(
|
||
"tree.move.message",
|
||
"{what} 从 {from} 移到 {to}。工作区与暂存的改动保留;与之冲突时 Git 拒绝。\n\n{left}",
|
||
),
|
||
("tree.move.nothing", "没有提交离开该分支。"),
|
||
(
|
||
"tree.move.left",
|
||
"这 {n} 个提交将离开该分支,引用日志里仍可找回:\n{commits}",
|
||
),
|
||
("tree.move.left.one", "这 1 个提交将离开该分支,引用日志里仍可找回:\n{commits}"),
|
||
("tree.clean.open", "清理未跟踪的文件…"),
|
||
("tree.clean.title", "清理未跟踪的文件"),
|
||
("tree.clean.ignored", "包括被忽略的文件"),
|
||
("tree.clean.reading", "正在问 Git 会删除什么…"),
|
||
("tree.clean.nothing", "没有要删除的。"),
|
||
("tree.clean.go", "删除 {n} 项"),
|
||
("tree.locked.title", "另一个 Git 正在工作"),
|
||
(
|
||
"tree.locked.message",
|
||
"锁文件存在。等另一个 Git 结束后重试。Ely 从不删除锁文件。",
|
||
),
|
||
("tree.locked.retry", "重试"),
|
||
("tree.tool.terminal", "在终端中打开"),
|
||
("tree.tool.reveal", "在访达中显示"),
|
||
("tree.tool.editor", "选择编辑器…"),
|
||
("tree.tool.in_editor", "在编辑器中打开"),
|
||
("tree.tool.in_mark", "在 ElyMark 中打开"),
|
||
("tree.error.tool", "打不开:{error}"),
|
||
("tree.error.tools_file", "读不出编辑器设置:{error}"),
|
||
];
|