Repository navigation
Description
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 🌐 [translation-sync] [stats_info] Correct the mathematics and add exercises across the Statistics and Information lectures 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 🌐 [translation-sync] [stats_info] Correct the mathematics and add exercises across the Statistics and Information lectures 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-resyncon 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.
Activity