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

Abierto
#1,133 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
git, github, python

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TeX
Estrellas
135
Forks
64
Merge medio
9 h 17 min
PR fusionados (30 d)
15

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de QuantEcon/lecture-python.myst

Todos los issues de QuantEcon/lecture-python.myst

Issues similares

Más issues de Internationalization

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.