From bbaa651943a4b699df4c359a699a677721fd923b Mon Sep 17 00:00:00 2001 From: Crystal-RainSlide <16851802+Crystal-RainSlide@users.noreply.github.com> Date: Sat, 26 Mar 2022 13:26:45 +1100 Subject: [PATCH] Update chinese.go --- docs/keybindings/Keybindings_zh.md | 70 ++++----- pkg/i18n/chinese.go | 220 ++++++++++++++++++----------- 2 files changed, 174 insertions(+), 116 deletions(-) diff --git a/docs/keybindings/Keybindings_zh.md b/docs/keybindings/Keybindings_zh.md index d477edb40..408bfe90f 100644 --- a/docs/keybindings/Keybindings_zh.md +++ b/docs/keybindings/Keybindings_zh.md @@ -18,8 +18,8 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n direct W: 打开 diff 菜单 ctrl+e: 打开 diff 菜单 @: 打开命令日志菜单 - }: Increase the size of the context shown around changes in the diff view - {: Decrease the size of the context shown around changes in the diff view + }: 扩大差异视图中显示的上下文范围 + {: 缩小差异视图中显示的上下文范围 :: 执行自定义命令 z: (通过 reflog)撤销「实验功能」 ctrl+z: (通过 reflog)重做「实验功能」 @@ -35,32 +35,12 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n direct <: 滚动到顶部 >: 滚动到底部 /: 开始搜索 - H: scroll left - L: scroll right + H: 向左滚动 + L: 向右滚动 ]: 下一个标签 [: 上一个标签 -## Extras 面板 - -
- @: 打开命令日志菜单 -- -## 主要 面板 (合并中) - -
- esc: 返回文件面板 - M: 打开合并工具 - space: 选中区块 - b: 选中所有区块 - ◄: 选择上一个冲突 - ►: 选择下一个冲突 - ▲: 选择顶部块 - ▼: 选择底部块 - z: 撤销 -- ## 主要 面板 (构建补丁中)
@@ -70,13 +50,27 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n direct ▼: 选择下一行 ◄: 选择上一个区块 ►: 选择下一个区块 - ctrl+o: copy the selected text to the clipboard + ctrl+o: 将选中文本复制到剪贴板 space: 添加/移除 行到补丁 v: 切换拖动选择 V: 切换拖动选择 a: 切换选择区块+## 主要 面板 (正在合并) + +
+ esc: 返回文件面板 + M: 打开外部合并工具 (git mergetool) + space: 选中区块 + b: 选中所有区块 + ◄: 选择上一个冲突 + ►: 选择下一个冲突 + ▲: 选择顶部块 + ▼: 选择底部块 + z: 撤销 ++ ## 主要 面板 (正在暂存)
@@ -89,7 +83,7 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n direct ▼: 选择下一行 ◄: 选择上一个区块 ►: 选择下一个区块 - ctrl+o: copy the selected text to the clipboard + ctrl+o: 将选中文本复制到剪贴板 e: 编辑文件 v: 切换拖动选择 V: 切换拖动选择 @@ -106,7 +100,7 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n direct mouse wheel up: 向上滚动 (fn+down)-## 分支 面板 (分支标签) +## 分支 面板 (分支页面)
ctrl+o: 将分支名称复制到剪贴板 @@ -174,7 +168,7 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n direct e: 编辑远程仓库-## 提交 面板 (Reflog) +## 提交 面板 (Reflog 页面)
ctrl+o: 将提交的 SHA 复制到剪贴板 @@ -191,7 +185,7 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n direct+ +## 附加 面板 + +ctrl+o: 将提交的 SHA 复制到剪贴板 ctrl+r: 重置已拣选(复制)的提交 - b: view bisect options + b: 查看二分查找选项 s: 向下压缩 f: 修正提交(fixup) r: 改写提交 @@ -209,12 +203,12 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n direct c: 复制提交(拣选) C: 复制提交范围(拣选) v: 粘贴提交(拣选) - ctrl+l: open log menu + ctrl+l: 打开日志菜单 g: 重置为此提交 space: 检出提交 T: 标签提交 ctrl+y: 将提交消息复制到剪贴板 - o: open commit in browser + o: 在浏览器中打开提交 enter: 查看提交的文件@@ -254,8 +248,8 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n directctrl+o: 将文件名复制到剪贴板 - ctrl+w: 切换是否在差异视图中显示空白更改 - d: 查看'放弃更改‘选项 + ctrl+w: 切换是否在差异视图中显示空白字符差异 + d: 查看'放弃更改'选项 space: 切换暂存状态 ctrl+b: Filter files (staged/unstaged) c: 提交更改 @@ -267,13 +261,13 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n direct i: 添加到 .gitignore r: 刷新文件 s: 将所有更改加入贮藏 - S: 查看隐藏选项 + S: 查看贮藏选项 a: 切换所有文件的暂存状态 enter: 暂存单个 块/行 用于文件, 或 折叠/展开 目录 g: 查看上游重置选项 D: 查看重置选项 `: 切换文件树视图 - M: 打开合并工具 + M: 打开外部合并工具 (git mergetool) f: 抓取@@ -302,3 +296,9 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n direct n: 新分支 enter: 查看提交的文件
+ @: 打开命令日志菜单 +diff --git a/pkg/i18n/chinese.go b/pkg/i18n/chinese.go index 9fa455d73..3f83f6756 100644 --- a/pkg/i18n/chinese.go +++ b/pkg/i18n/chinese.go @@ -1,33 +1,38 @@ +/* + +本翻译文件中的词语的翻译参考了 https://github.com/progit/progit2-zh/blob/master/TRANSLATION_NOTES.asc。 +下方的术语对照表是对其的补充。 + +Translation in this file refer to https://github.com/progit/progit2-zh/blob/master/TRANSLATION_NOTES.asc. +Glossary below is a supplement of that documentation. + +Glossary 术语对照表 + +change 更改 +fixup 修正 +reset 重置 + +*/ + package i18n -// 本翻译文件中的词语的翻译参考了 https://github.com/progit/progit2-zh/blob/master/TRANSLATION_NOTES.asc。 -// 下方的术语对照表是对其的补充 - -// Translation in this file refer to https://github.com/progit/progit2-zh/blob/master/TRANSLATION_NOTES.asc. -// Glossary below is a supplement of that documentation. - -// Glossary 术语对照表 - -// change 更改 -// fixup 修正 -// reset 重置 - const chineseIntroPopupMessage = ` -感谢使用 lazygit!下面几点你可能会感兴趣: +感谢使用 lazygit!你真的太棒了。下面几点你可能会感兴趣: 1) 观看此视频,快速了解 lazygit 的功能: https://youtu.be/CPLdltN7wgE - 2) 记得阅读最新的发行说明: + 2) 记得看看最新发行说明: https://github.com/jesseduffield/lazygit/releases - 3) 使用 git 说明你是一位程序员!你可以和我们一起让 - lazygit 变得更好。考虑贡献一些代码: + 3) 使用 git 说明你是一位程序员!你可以和我们一起让 lazygit 变得更好。 + 考虑为本项目做些贡献吧: https://github.com/jesseduffield/lazygit - 也可以赞助并告诉我哪里需要改进,点右下角的捐赠按钮就好了。 - 就算给仓库点个星星也很棒! + 你也可以直接赞助,并告诉我哪里需要改进,点右下角的捐赠按钮就好了。 + 哪怕只是给仓库点个星星也很棒! ` +// exporting this so we can use it in tests func chineseTranslationSet() TranslationSet { return TranslationSet{ NotEnoughSpace: "没有足够的空间来渲染面板", @@ -40,7 +45,7 @@ func chineseTranslationSet() TranslationSet { StagedChanges: `已暂存更改`, MainTitle: "主要", StagingTitle: "正在暂存", - MergingTitle: "合并中", + MergingTitle: "正在合并", NormalTitle: "正常", CommitMessage: "提交信息", CredentialsUsername: "用户名", @@ -59,7 +64,7 @@ func chineseTranslationSet() TranslationSet { LcToggleStaged: "切换暂存状态", LcToggleStagedAll: "切换所有文件的暂存状态", LcToggleTreeView: "切换文件树视图", - LcOpenMergeTool: "打开合并工具", + LcOpenMergeTool: "打开外部合并工具 (git mergetool)", LcRefresh: "刷新", LcPush: "推送", LcPull: "拉取", @@ -69,11 +74,11 @@ func chineseTranslationSet() TranslationSet { NoChangedFiles: "没有更改过文件", NoFilesDisplay: "没有文件可显示", NotAFile: "不是文件", - PullWait: "拉取中……", - PushWait: "推送中……", - FetchWait: "正在抓取……", + PullWait: "正在拉取…", + PushWait: "正在推送…", + FetchWait: "正在抓取…", LcSoftReset: "软重置", - AlreadyCheckedOutBranch: "您已经检出了这个分支", + AlreadyCheckedOutBranch: "您已经检出至此分支", SureForceCheckout: "您确定要强制检出吗?您将丢失所有本地更改", ForceCheckoutBranch: "强制检出分支", BranchName: "分支名称", @@ -142,9 +147,9 @@ func chineseTranslationSet() TranslationSet { ForcePushDisabled: "您的分支已与远程分支不同, 并且您已经禁用了强行推送", UpdatesRejectedAndForcePushDisabled: "更新被拒绝,您已禁用强制推送", LcCheckForUpdate: "检查更新", - CheckingForUpdates: "检查更新中……", - OnLatestVersionErr: "您的软件已经是最新版本", - MajorVersionErr: "新版本 ({{.newVersion}}) 与当前版本相比,具有向后兼容的更改 ({{.currentVersion}})", + CheckingForUpdates: "正在检查更新…", + OnLatestVersionErr: "已是最新版本", + MajorVersionErr: "新版本 ({{.newVersion}}) 与当前版本 ({{.currentVersion}}) 相比,具有非向后兼容的更改", CouldNotFindBinaryErr: "在 {{.url}} 处找不到任何二进制文件", MergeToolTitle: "合并工具", MergeToolPrompt: "确定要打开 `git mergetool` 吗?", @@ -186,7 +191,7 @@ func chineseTranslationSet() TranslationSet { MergeOptionsTitle: "合并选项", RebaseOptionsTitle: "变基选项", CommitMessageTitle: "提交讯息", - LocalBranchesTitle: "分支标签", + LocalBranchesTitle: "分支页面", SearchTitle: "搜索", TagsTitle: "标签页面", MenuTitle: "菜单", @@ -195,27 +200,28 @@ func chineseTranslationSet() TranslationSet { PatchBuildingTitle: "构建补丁中", InformationTitle: "信息", SecondaryTitle: "次要", - ReflogCommitsTitle: "Reflog", + ReflogCommitsTitle: "Reflog 页面", GlobalTitle: "全局键绑定", ConflictsResolved: "已解决所有冲突。是否继续?", RebasingTitle: "变基", ConfirmRebase: "您确定要将分支 {{.checkedOutBranch}} 变基到 {{.selectedBranch}} 吗?", ConfirmMerge: "您确定要将分支 {{.selectedBranch}} 合并到 {{.checkedOutBranch}} 吗?", - FwdNoUpstream: "无法快进没有上游的分支", - FwdCommitsToPush: "无法快进并提交推送的分支", + FwdNoUpstream: "此分支没有上游,无法快进", + FwdNoLocalUpstream: "此分支的远程未在本地注册,无法快进", + FwdCommitsToPush: "此分支带有尚未推送的提交,无法快进", ErrorOccurred: "发生错误!请在以下位置创建 issue", - NoRoom: "没有足够的空间", + NoRoom: "空间不足", YouAreHere: "您在这里", LcRewordNotSupported: "当前不支持交互式重新基准化时的重新措词提交", LcCherryPickCopy: "复制提交(拣选)", LcCherryPickCopyRange: "复制提交范围(拣选)", LcPasteCommits: "粘贴提交(拣选)", SureCherryPick: "您确定要将选中的提交进行拣选到这个分支吗?", - CherryPick: "拣选", - CannotRebaseOntoFirstCommit: "您不能以交互方式基于第一次提交", - CannotSquashOntoSecondCommit: "您不能 压缩/修正(fixup)第二个提交", + CherryPick: "拣选 (Cherry-Pick)", + CannotRebaseOntoFirstCommit: "您不能以交互方式变基 (rebase) 至第一次提交", + CannotSquashOntoSecondCommit: "您不能压缩 (squash) 或修正 (fixup) 第二个提交", Donate: "捐助", - AskQuestion: "问题咨询", + AskQuestion: "提问咨询", PrevLine: "选择上一行", NextLine: "选择下一行", PrevHunk: "选择上一个区块", @@ -236,12 +242,12 @@ func chineseTranslationSet() TranslationSet { FixingStatus: "正在修正", DeletingStatus: "正在删除", MovingStatus: "正在移动", - RebasingStatus: "变基", - AmendingStatus: "修改", - CherryPickingStatus: "拣选中", + RebasingStatus: "正在变基", + AmendingStatus: "正在修改", + CherryPickingStatus: "正在拣选", UndoingStatus: "正在撤销", RedoingStatus: "正在重做", - CheckingOutStatus: "检出", + CheckingOutStatus: "长子检出", CommittingStatus: "正在提交", CommitFiles: "提交文件", LcViewItemFiles: "查看提交的文件", @@ -251,11 +257,11 @@ func chineseTranslationSet() TranslationSet { DiscardFileChangesTitle: "放弃文件更改", DiscardFileChangesPrompt: "您确定要舍弃此提交对该文件的更改吗?如果此文件是在此提交中创建的,它将被删除", DisabledForGPG: "该功能不适用于使用 GPG 的用户", - CreateRepo: "不在 git 仓库中。创建一个新的 git 仓库吗?(y/n): ", + CreateRepo: "当前目录不在 git 仓库中。是否在此目录创建一个新的 git 仓库?(y/n): ", AutoStashTitle: "自动存储?", AutoStashPrompt: "您必须隐藏并弹出更改以使更改生效。自动执行?(enter/esc)", StashPrefix: "自动隐藏更改 ", - LcViewDiscardOptions: "查看'放弃更改‘选项", + LcViewDiscardOptions: "查看'放弃更改'选项", LcCancel: "取消", LcDiscardAllChanges: "放弃所有更改", LcDiscardUnstagedChanges: "放弃未暂存的变更", @@ -276,12 +282,15 @@ func chineseTranslationSet() TranslationSet { SkipHookPrefixNotConfigured: "您尚未配置用于跳过钩子的提交消息前缀。请在您的配置中设置 `git.skipHookPrefix ='WIP'`", LcResetTo: `重置为`, PressEnterToReturn: "按下 Enter 键返回 lazygit", - LcViewStashOptions: "查看隐藏选项", + LcViewStashOptions: "查看贮藏选项", LcStashAllChanges: "将所有更改加入贮藏", LcStashStagedChanges: "将已暂存的更改加入贮藏", LcStashOptions: "贮藏选项", NotARepository: "错误:必须在 git 仓库中运行", LcJump: "跳到面板", + LcScrollLeftRight: "左右滚动", + LcScrollLeft: "向左滚动", + LcScrollRight: "向右滚动", DiscardPatch: "丢弃补丁", DiscardPatchConfirm: "您一次只能通过一个提交或贮藏条目构建补丁。需要放弃当前补丁吗?", CantPatchWhileRebasingError: "处于合并或变基状态时,您无法构建修补程序或运行修补程序命令", @@ -291,11 +300,12 @@ func chineseTranslationSet() TranslationSet { NoPatchError: "尚未创建补丁。你可以在提交中的文件上按下“空格”或使用“回车”添加其中的特定行以开始构建补丁", LcEnterFile: "输入文件以将所选行添加到补丁中(或切换目录折叠)", ExitLineByLineMode: `退出逐行模式`, - EnterUpstream: `以这种形式输入上游:“<远程仓库> <分支名称>”`, + EnterUpstream: `以这种格式输入上游:'<远程仓库> <分支名称>'`, + InvalidUpstream: "上游格式无效,格式应当为:'