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

Aberta
#1,133 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
48/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
git, github, python

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
TeX
Estrelas
135
Forks
64
Merge médio
9h 17min
PRs com merge (30d)
15

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de QuantEcon/lecture-python.myst

Todas as issues de QuantEcon/lecture-python.myst

Issues semelhantes

Mais issues de Internationalization

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.