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

Đang mở
#1,133 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
git, github, python

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TeX
Star
135
Fork
64
Merge trung bình
9 giờ 17 phút
Pull request đã merge (30 ngày)
15

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của QuantEcon/lecture-python.myst

Tất cả issue của QuantEcon/lecture-python.myst

Issue tương tự

Thêm issue về Internationalization

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.