Translation sync failed for PR #1129 (zh-cn)

未关闭
#1,133 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
git, github, python

调研方向

Read the translation sync failure details for lectures/divergence_measures.md and compare the source and zh-cn edition, including the missing (dm_kl_mle)= anchor and directive counts. First merge QuantEcon/lecture-python.zh-cn#310 in the edition, then carry this PR’s change with translate forward -f divergence_measures.md. Before using \translate-resync on #1129, check every changed path with the provided git rev-list command; each count must be 0.

由索引模型根据 Issue 内容生成。

描述

translation-sync-failure
Translation sync failure

Source PR: #1129
Target repo: QuantEcon/lecture-python.zh-cn
Target language: zh-cn

Errors
  • Error processing lectures/divergence_measures.md: Error: structural parity check failed for lectures/divergence_measures.md:
    • directive count differs: source has 28, output has 13 — a wholesale mismatch usually means the document was re-fenced or truncated
    • target anchors diverge — missing from output: (dm_kl_mle)=
    • Translation behind: lectures/divergence_measures.md: zh-cn's translation of it is at source 18666c0. This PR's change assumes the English that translation PR QuantEcon/lecture-python.zh-cn#310 carries, and it is still open in the edition. Merge it, then carry this change.
Recovery

Recover a lecture from a checkout of the source's default branch, not by re-running this sync:

  • lectures/divergence_measures.md: merge QuantEcon/lecture-python.zh-cn#310 in the edition first; it carries the English this PR's change assumes. Then carry this PR's change into the lecture: translate forward -f divergence_measures.md, or \translate-resync on this PR under the condition below.

Any other lecture named above:

  • one the edition has: translate forward -f <file>;
  • one the edition does not have yet: translate init -f <file>.

<file> is the lecture's path inside the docs folder. translate forward regenerates the whole lecture, so do not run it on a lecture that has been natively reviewed: carry the change into that one by hand. translate init -f overwrites a translation without asking, so use it only for a lecture the edition does not have.

\translate-resync on #1129 re-runs this sync from the PR's merge-time snapshot, for every file the PR changed, not only those named above. Use it only when none of those files has changed on the source's default branch since the PR merged; otherwise it reverts the later changes (QuantEcon/action-translation#276). For each file the PR changed,

git rev-list --count 0d5c6873873de21f824fae15d157980e68267fba..origin/main -- <path>

must print 0. A structural-parity failure repeats exactly on a resync, so fix its cause first.

主要语言
TeX
星标
135
派生
64
平均合并
9 小时 17 分钟
30 天内合并 PR
15

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

QuantEcon/lecture-python.myst 的其他 Issue

查看 QuantEcon/lecture-python.myst 的全部 Issue

相似的 Issue

更多 Internationalization Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。