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

オープン
#1,133 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
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分
マージ済み PR(30日)
15

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

QuantEcon/lecture-python.myst のほかの issue

QuantEcon/lecture-python.myst の issue をすべて見る

似ている issue

Internationalization の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。