From 2000abefbafc061ace30d0f92d7bde4b6805e6d1 Mon Sep 17 00:00:00 2001 From: Teng Long Date: Fri, 15 Aug 2025 15:27:51 +0800 Subject: [PATCH] l10n: zh_CN: updated translation for 2.51 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Teng Long Reviewed-by: Fangyi Zhou Reviewed-by: 依云 Signed-off-by: Jiang Xin --- po/zh_CN.po | 692 +++++++++++++++++++++++++++++++++------------------- 1 file changed, 444 insertions(+), 248 deletions(-) diff --git a/po/zh_CN.po b/po/zh_CN.po index 139ae331dc..a0d43c5333 100644 --- a/po/zh_CN.po +++ b/po/zh_CN.po @@ -155,8 +155,8 @@ msgid "" msgstr "" "Project-Id-Version: Git\n" "Report-Msgid-Bugs-To: Git Mailing List \n" -"POT-Creation-Date: 2025-06-08 20:30+0800\n" -"PO-Revision-Date: 2025-06-12 14:50+0800\n" +"POT-Creation-Date: 2025-08-12 20:20-0400\n" +"PO-Revision-Date: 2025-08-17 08:14-0400\n" "Last-Translator: Teng Long \n" "Language-Team: GitHub \n" "Language: zh_CN\n" @@ -166,6 +166,11 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Gtranslator 42.0\n" +#: add-interactive.c +#, c-format +msgid "%s cannot be negative" +msgstr "%s 不能为负数" + #: add-interactive.c #, c-format msgid "Huh (%s)?" @@ -1074,10 +1079,10 @@ msgstr "未能识别的空白字符忽略选项 '%s'" #: builtin/describe.c builtin/diff-tree.c builtin/difftool.c #: builtin/fast-export.c builtin/fetch.c builtin/help.c builtin/index-pack.c #: builtin/init-db.c builtin/log.c builtin/ls-files.c builtin/merge-base.c -#: builtin/merge-tree.c builtin/merge.c builtin/pack-objects.c builtin/rebase.c -#: builtin/repack.c builtin/replay.c builtin/reset.c builtin/rev-parse.c -#: builtin/show-branch.c builtin/stash.c builtin/submodule--helper.c -#: builtin/tag.c builtin/worktree.c parse-options.c range-diff.c revision.c +#: builtin/merge-tree.c builtin/merge.c builtin/rebase.c builtin/repack.c +#: builtin/replay.c builtin/reset.c builtin/rev-parse.c builtin/show-branch.c +#: builtin/stash.c builtin/submodule--helper.c builtin/tag.c builtin/worktree.c +#: parse-options.c range-diff.c revision.c #, c-format msgid "options '%s' and '%s' cannot be used together" msgstr "选项 '%s' 和 '%s' 不能同时使用" @@ -2459,6 +2464,12 @@ msgstr "如果您确实想添加它们,请使用 -f 选项。" msgid "adding files failed" msgstr "添加文件失败" +#: builtin/add.c builtin/checkout.c builtin/commit.c builtin/reset.c +#: builtin/stash.c +#, c-format +msgid "'%s' cannot be negative" +msgstr "'%s' 不能为负数" + #: builtin/add.c #, c-format msgid "--chmod param '%s' must be either -x or +x" @@ -2497,7 +2508,7 @@ msgid "bad action '%s' for '%s'" msgstr "'%2$s' 的错误动作 '%1$s'" #: builtin/am.c builtin/blame.c builtin/fetch.c builtin/pack-objects.c -#: builtin/pull.c builtin/revert.c config.c diff-merges.c gpg-interface.c +#: builtin/pull.c builtin/revert.c diff-merges.c environment.c gpg-interface.c #: ls-refs.c parallel-checkout.c sequencer.c setup.c #, c-format msgid "invalid value for '%s': '%s'" @@ -3819,8 +3830,8 @@ msgstr "HEAD 没有位于 /refs/heads 之下!" #: builtin/branch.c msgid "" -"branch with --recurse-submodules can only be used if " -"submodule.propagateBranches is enabled" +"branch with --recurse-submodules can only be used if submodule." +"propagateBranches is enabled" msgstr "" "带有 --recurse-submodules 的分支只能在 submodule.propagateBranches 启用时使用" @@ -3963,8 +3974,8 @@ msgstr "" "请检查下面错误报告中余下的内容。\n" "您可以删除任何您不想共享的内容。\n" -#: builtin/bugreport.c builtin/commit.c builtin/fast-export.c builtin/rebase.c -#: parse-options.h +#: builtin/bugreport.c builtin/commit.c builtin/fast-export.c +#: builtin/pack-objects.c builtin/rebase.c parse-options.h msgid "mode" msgstr "模式" @@ -6373,25 +6384,26 @@ msgstr "git config list [<文件选项>] [<显示选项>] [--includes]" #: builtin/config.c msgid "" "git config get [] [] [--includes] [--all] [--" -"regexp] [--value=] [--fixed-value] [--default=] " +"regexp] [--value=] [--fixed-value] [--default=] [--" +"url=] " msgstr "" "git config get [<文件选项>] [<显示选项>] [--includes] [--all] [--regexp] [--" -"value=<值>] [--fixed-value] [--default=<默认值>] <名称>" +"value=<模式>] [--fixed-value] [--default=<默认值>] [--url=] <名称>" #: builtin/config.c msgid "" -"git config set [] [--type=] [--all] [--value=] [--" -"fixed-value] " +"git config set [] [--type=] [--all] [--value=] " +"[--fixed-value] " msgstr "" -"git config set [<文件选项>] [--type=<类型>] [--all] [--value=<值>] [--fixed-" -"value] <名称> <值>" +"git config set [<文件选项>] [--type=<类型>] [--all] [--value=<模式>] [--" +"fixed-value] <名称> <值>" #: builtin/config.c msgid "" -"git config unset [] [--all] [--value=] [--fixed-value] " +"git config unset [] [--all] [--value=] [--fixed-value] " "" msgstr "" -"git config unset [<文件选项>] [--all] [--value=<值>] [--fixed-value] <名称>" +"git config unset [<文件选项>] [--all] [--value=<模式>] [--fixed-value] <名称>" #: builtin/config.c msgid "git config rename-section [] " @@ -6412,19 +6424,19 @@ msgstr "git config [<文件选项>] --get-colorbool <名称> [<标准输出为tt #: builtin/config.c msgid "" "git config get [] [] [--includes] [--all] [--" -"regexp=] [--value=] [--fixed-value] [--default=] " +"regexp=] [--value=] [--fixed-value] [--default=] " "" msgstr "" "git config get [<文件选项>] [<显示选项>] [--includes] [--all] [--regexp=<正则" -"表达式>] [--value=<值>] [--fixed-value] [--default=<默认值>] <名称>" +"表达式>] [--value=<模式>] [--fixed-value] [--default=<默认值>] <名称>" #: builtin/config.c msgid "" "git config set [] [--type=] [--comment=] [--all] " -"[--value=] [--fixed-value] " +"[--value=] [--fixed-value] " msgstr "" "git config set [<文件选项>] [--type=<类型>] [--comment=<消息>] [--all] [--" -"value=<值>] [--fixed-value] <名称> <值>" +"value=<模式>] [--fixed-value] <名称> <值>" #: builtin/config.c msgid "Config file location" @@ -7046,7 +7058,7 @@ msgstr "不能解析模式:%s" #: builtin/diff-pairs.c #, c-format msgid "unable to parse object id: %s" -msgstr "不能解析对象ID:%s" +msgstr "不能解析对象 ID:%s" #: builtin/diff-pairs.c msgid "git diff-pairs -z []" @@ -7492,27 +7504,6 @@ msgstr "%s 未发送所有必需的对象" msgid "rejected %s because shallow roots are not allowed to be updated" msgstr "拒绝 %s 因为浅克隆的根不允许被更新" -#: builtin/fetch.c -#, c-format -msgid "" -"some local refs could not be updated; try running\n" -" 'git remote prune %s' to remove any old, conflicting branches" -msgstr "" -"一些本地引用不能被更新;尝试运行\n" -" 'git remote prune %s' 来删除旧的、有冲突的分支" - -# 译者:注意保持前导空格 -#: builtin/fetch.c -#, c-format -msgid " (%s will become dangling)" -msgstr " (%s 将成为悬空状态)" - -# 译者:注意保持前导空格 -#: builtin/fetch.c -#, c-format -msgid " (%s has become dangling)" -msgstr " (%s 已成为悬空状态)" - #: builtin/fetch.c msgid "[deleted]" msgstr "[已删除]" @@ -7536,7 +7527,7 @@ msgstr "选项 \"%s\" 的值 \"%s\" 对于 %s 是无效的" msgid "option \"%s\" is ignored for %s" msgstr "选项 \"%s\" 为 %s 所忽略" -#: builtin/fetch.c object-store.c +#: builtin/fetch.c odb.c #, c-format msgid "%s is not a valid object" msgstr "%s 不是一个有效的对象" @@ -7560,6 +7551,20 @@ msgstr "" "运行命令 'git config remote.%s.followRemoteHEAD warn-if-not-branch-%s'\n" "以禁用该警告,直到远程将 HEAD 更改为其他内容。" +#: builtin/fetch.c +#, c-format +msgid "" +"some local refs could not be updated; try running\n" +" 'git remote prune %s' to remove any old, conflicting branches" +msgstr "" +"一些本地引用不能被更新;尝试运行\n" +" 'git remote prune %s' 来删除旧的、有冲突的分支" + +#: builtin/fetch.c +#, c-format +msgid "fetching ref %s failed: %s" +msgstr "获取引用 %s 失败:%s" + #: builtin/fetch.c msgid "multiple branches detected, incompatible with --set-upstream" msgstr "检测到多分支,和 --set-upstream 不兼容" @@ -7799,8 +7804,8 @@ msgstr "协议不支持 --negotiate-only,退出" #: builtin/fetch.c msgid "" -"--filter can only be used with the remote configured in " -"extensions.partialclone" +"--filter can only be used with the remote configured in extensions." +"partialclone" msgstr "只可以将 --filter 用于在 extensions.partialclone 中配置的远程仓库" #: builtin/fetch.c @@ -7856,6 +7861,10 @@ msgstr "git for-each-ref [--merged [<提交>]] [--no-merged [<提交>]]" msgid "git for-each-ref [--contains []] [--no-contains []]" msgstr "git for-each-ref [--contains [<提交>]] [--no-contains [<提交>]]" +#: builtin/for-each-ref.c +msgid "git for-each-ref [--start-after ]" +msgstr "git for-each-ref [--start-after <标记>]" + #: builtin/for-each-ref.c msgid "quote placeholders suitably for shells" msgstr "引用占位符适用于 shells" @@ -7876,6 +7885,14 @@ msgstr "引用占位符适用于 Tcl" msgid "show only matched refs" msgstr "只显示 个匹配的引用" +#: builtin/for-each-ref.c +msgid "marker" +msgstr "标记" + +#: builtin/for-each-ref.c +msgid "start iteration after the provided marker" +msgstr "从指定标记之后开始迭代" + #: builtin/for-each-ref.c builtin/tag.c msgid "respect format colors" msgstr "遵照格式中的颜色输出" @@ -7908,10 +7925,18 @@ msgstr "从标准输入读取引用的模式" msgid "also include HEAD ref and pseudorefs" msgstr "还包括 HEAD 引用和伪引用" +#: builtin/for-each-ref.c +msgid "cannot use --start-after with custom sort options" +msgstr "不能将 --start-after 与自定义排序选项一同使用" + #: builtin/for-each-ref.c msgid "unknown arguments supplied with --stdin" msgstr "为 --stdin 提供了未知的命令参数" +#: builtin/for-each-ref.c +msgid "cannot use --start-after with patterns" +msgstr "不能将 --start-after 与模式匹配一同使用" + #: builtin/for-each-repo.c msgid "git for-each-repo --config= [--] " msgstr "git for-each-repo --config=<配置> [--] <命令参数>" @@ -8413,6 +8438,10 @@ msgstr "除了最大的包之外,对所有其它包文件重新打包" msgid "pack prefix to store a pack containing pruned objects" msgstr "用于存储修剪对象的包前缀" +#: builtin/gc.c +msgid "skip maintenance tasks typically done in the foreground" +msgstr "跳过通常在前台执行的维护任务" + #: builtin/gc.c #, c-format msgid "failed to parse gc.logExpiry value %s" @@ -8500,13 +8529,13 @@ msgstr "跳过增量重新打包任务,因为 core.multiPackIndex 被禁用" #: builtin/gc.c #, c-format -msgid "lock file '%s' exists, skipping maintenance" -msgstr "锁文件 '%s' 已存在,跳过维护" +msgid "task '%s' failed" +msgstr "任务 '%s' 失败" #: builtin/gc.c #, c-format -msgid "task '%s' failed" -msgstr "任务 '%s' 失败" +msgid "lock file '%s' exists, skipping maintenance" +msgstr "锁文件 '%s' 已存在,跳过维护" #: builtin/gc.c #, c-format @@ -8546,10 +8575,6 @@ msgstr "任务" msgid "run a specific task" msgstr "运行一个特定的任务" -#: builtin/gc.c -msgid "use at most one of --auto and --schedule=" -msgstr "最多使用 --auto 和 --schedule=<频率> 其中之一" - #: builtin/gc.c #, c-format msgid "unable to add '%s' value of '%s'" @@ -9649,11 +9674,6 @@ msgstr "跟踪 <文件> 中 <开始>,<结束> 范围内的行或函数 :<函数 msgid "-L: cannot be used with pathspec" msgstr "-L<范围>:<文件> 不能和路径表达式共用" -#: builtin/log.c -#, c-format -msgid "Final output: %d %s\n" -msgstr "最终输出:%d %s\n" - #: builtin/log.c #, c-format msgid "git show %s: bad file" @@ -10561,6 +10581,10 @@ msgstr "在合并的最后显示差异统计" msgid "(synonym to --stat)" msgstr "(和 --stat 同义)" +#: builtin/merge.c builtin/pull.c +msgid "show a compact-summary at the end of the merge" +msgstr "在合并结束时显示简洁摘要" + #: builtin/merge.c builtin/pull.c msgid "add (at most ) entries from shortlog to merge commit message" msgstr "在合并提交信息中添加(最多 条)精简提交记录" @@ -10888,11 +10912,6 @@ msgstr "警告:标签输入未通过 fsck:%s" msgid "error: tag input does not pass fsck: %s" msgstr "错误:标签输入未通过 fsck:%s" -#: builtin/mktag.c -#, c-format -msgid "%d (FSCK_IGNORE?) should never trigger this callback" -msgstr "%d (FSCK_IGNORE?) 永远不应该触发这个回调" - #: builtin/mktag.c #, c-format msgid "could not read tagged object '%s'" @@ -11536,14 +11555,27 @@ msgstr "从 <注解引用> 使用注解" msgid "unknown subcommand: `%s'" msgstr "未知子命令:`%s'" -#: builtin/pack-objects.c -msgid "git pack-objects --stdout [] [< | < ]" -msgstr "git pack-objects --stdout [<选项>] [< <引用列表> | < <对象列表>]" - #: builtin/pack-objects.c msgid "" -"git pack-objects [] [< | < ]" -msgstr "git pack-objects [<选项>] <前缀名称> [< <引用列表> | < <对象列表>]" +"git pack-objects [-q | --progress | --all-progress] [--all-progress-" +"implied]\n" +" [--no-reuse-delta] [--delta-base-offset] [--non-empty]\n" +" [--local] [--incremental] [--window=] [--depth=]\n" +" [--revs [--unpacked | --all]] [--keep-pack=]\n" +" [--cruft] [--cruft-expiration=