Skip to content

Translation sync failed for PR #1138 (zh-cn) #1139

Open

Description

@mmcky

Translation sync failure

Source PR: #1138
Target repo: QuantEcon/lecture-python.zh-cn
Target language: zh-cn

Errors

Recovery

Recover a lecture from a checkout of the source's default branch, not by re-running this sync:

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 #1138 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 220fb976b301d27c514e4e2c0a30693541ed71b2..origin/main -- <path>

must print 0. A structural-parity failure repeats exactly on a resync, so fix its cause first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions