Skip to content

docs(i18n): remove the duplicate stale zh-CN row - #1386

Merged
ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
liang-kai-shui:docs/i18n-dedupe-zh
Nov 22, 2026
Merged

ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
liang-kai-shui:docs/i18n-dedupe-zh

Conversation

@liang-kai-shui

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue as: #1218 (comment)

What and why

docs/i18n/README.md lists zh-CN twice on main:

| ???????(`zh-CN`) | [`zh-CN/quickstart.md`](zh-CN/quickstart.md) | `e7584c5` | `@liang-kai-shui` |
| ???????(`zh-CN`) | [`zh-CN/quickstart.md`](zh-CN/quickstart.md) | `0d61c357` | `@liang-kai-shui` |

The pl-PL PR #1305 was branched before #1286 updated the zh-CN row, so its copy of the table still had 0d61c357; merging it kept the old row next to the synced one. The quickstart's own header says e7584c5, so the 0d61c357 row is stale and the index should list one row per language.

This removes the stale row and adds tests/test_i18n_index.py:

  • the table must have one row per language (duplicate_codes() empty), each row's file must exist, the maintainer must be an @name, and the synced commit must look like a commit id;
  • a synthetic table with a duplicate zh-CN row must be reported and a malformed row must raise, so the test cannot pass by parsing nothing.

Tested

Docs and a test only, no game data, no build/CI change.

AI-assisted.

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md ??not applicable.

The pl-PL merge (ItsNotRexed#1305) was branched before ItsNotRexed#1286 updated the zh-CN row,
so the merge kept the old 0d61c35 row next to the synced e7584c5 one.
Drop the stale row and add tests/test_i18n_index.py so the table cannot
list a language twice, point at a missing quickstart, or carry a
malformed row.

Docs and a test only, no game data.
@bobcatchris

Copy link
Copy Markdown
Contributor

Static docs check only, at head 8b606c2c against main c2967a5e:

  • docs/i18n/README.md on main has 2 zh-CN table rows (e7584c5 and 0d61c357); this PR leaves 1, keeping the synced e7584c5 row and dropping the stale 0d61c357 row.
  • The linked docs/i18n/zh-CN/quickstart.md exists in the PR tree, and git diff --check c2967a5e..HEAD is clean.
  • No code or game data affected; I did not re-run the translation sync itself.

The dedupe is consistent with the row the coordinator flagged.

@bobcatchris

Copy link
Copy Markdown
Contributor

Correction to my previous comment: I labelled the checked head as 8b606c2c, which is the head of the unrelated #1362. The actual head I fetched and checked here is 0e7c60cad9a8f9ef9690d7afbaa8937754515081 (0e7c60ca). The row counts, link check and git diff --check result were all taken from that commit; only the hash label was wrong.

@kapitche

Copy link
Copy Markdown
Contributor

Tested on Linux (WSL2 Ubuntu), Python 3.12, CPU only: pass. pytest tests/test_i18n_index.py: 4 passed, and with main's docs/i18n/README.md, 1 fails. It keeps the e7584c5 row, which is the commit zh-CN/quickstart.md says it's synced to.

@ItsNotRexed
ItsNotRexed merged commit ebe9df6 into ItsNotRexed:main Nov 22, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants