i18n(ja): align heading anchors with the English source#23325
Conversation
|
Skipping CI for Draft Pull Request. |
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
002072c to
135d6dd
Compare
The translation pipeline rewrote heading anchors into its own scheme while the links
kept pointing at the anchor the English heading produces, so those links resolve to
nothing:
EN : ### SET_VAR(VAR_NAME=VAR_VALUE) -> #set_varvar_namevar_value
JA : ### SET_VAR(変数名=変数値) {#set-var-var-name-var-value}
link : optimizer-hints.md#set_varvar_namevar_value -> dead
Re-derive each anchor from the English heading and pin it on the Japanese heading.
Heading text is untouched. Three ja-internal links that pointed at the old ja anchors
are updated to match.
928 lines across 123 files. Unresolved anchor links drop from 581 to 3, none newly broken.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
135d6dd to
abc4167
Compare
What is changed, added or deleted? (Required)
Anchor links across the ja docs do not resolve. The translation pipeline rewrote heading anchors into a hyphenated scheme, while the links kept pointing at the anchor the English heading generates:
That one heading alone is the target of 499 links.
This PR re-derives each anchor from the English heading and pins it on the Japanese heading. Heading text is not touched — only the
{#…}part.928 lines across 123 files.
i18n-ja-release-8.5as it standsThe drop from 1,965 to 581 is mostly a side effect of #23295, which removed the rewritten anchors from
system-variables.mdso the headings fall back to their English-derived form.How it was checked
`->`and`->>`both reduce to-, so the second becomes--1. Getting this wrong silently collapses two distinct headings onto one anchor — an earlier draft of this change did exactly that, which is why the numbers above differ from a naive count.Leaders/regions→leaders-regions), matching the anchors the ja file already had.statistics.md, 4 links) was skipped.What is left
4 links still do not resolve, each needing its target heading looked at individually (
statistics.md#control-analyze-concurrency,manage-user-access.md#remove-a-project-member,backup-and-restore-serverless.md#perform-the-restore). They are listed in the PR discussion.19 headings in the base carry a duplicated
{#a} {#a}anchor. That is pre-existing and untouched here.Which TiDB version(s) do your changes apply to? (Required)
What is the related PR or file link(s)?
pre_split_regions; sibling ja PRs i18n(ja): add missing object-marker particle (wo) before code-span transitive verbs #23272 i18n(ja): add missing particle after Markdown links (wo before verbs, wa for subject) #23273 i18n(ja): miscellaneous review fixes (bit-shift description) #23274 i18n(ja): remove stray digits inserted before code spans #23275 i18n(ja): standardize the "Data Service" product name (データサービス → Data Service) #23291 i18n(ja): restore admonition labels to English (Note/Warning/Tip) #23292 i18n(ja): fix trailing "page number" typo after page reference links #23294 i18n(ja): restore variable names and clean up heading anchors in system variable docs #23295 i18n(ja): unify "plan cache" katakana term (remove stray space) in sql-prepared-plan-cache.md #23297 i18n(ja): fix partial negations rendered as full negations #23311 i18n(ja): restore text dropped by the translation pipeline #23315 i18n(ja): restore text dropped by the translation pipeline (part 2) #23316 i18n(ja): restore particles dropped after code spans and links #23318 i18n(ja): repair sentences scrambled by the translation pipeline #23320 i18n(ja): restore particles dropped before nouns and copulas #23322Do your changes match any of the following descriptions?