i18n: sync zh_CN catalogs to the production build's canonical versions#265
Open
sanchuanhehe wants to merge 1 commit into
Open
Conversation
The zh_CN translation catalogs are maintained by the production build and had drifted from the copy committed here in theopensourceway#261. Sync them to the current, build-consistent versions (footnote/cross-reference/redirect fixes from the recent build remediation) and ignore compiled *.mo artifacts. This makes the editorial repo the single home for translation catalogs; the production repo will consume them via the submodule.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Makes the editorial repo the single home for the
zh_CNtranslation catalogs.Why
The translation catalogs are maintained by the production build, but a copy was also committed here in #261. Since then the production-side catalogs received fixes (footnotes, cross-reference paths, redirected URLs from the recent build remediation) and the copy here drifted out of date and unused.
CONTRIBUTING.md/README.mdin the production repo already describeguidebook/locales/as the catalog location, so this aligns the actual files with the documented design.What
locales/zh_CN/LC_MESSAGES/*.poto the current, build-consistent versions (12 files updated).*.moartifacts (the production Sphinx build compiles catalogs in place).Companion change
A production PR points
locale_dirsat this submodule'slocales/and removes the duplicate copy there, so translations live only here andproductionconsumes them through the submodule. Verified locally: English + zh_CN build with 0 warnings and the catalog-freshness check is idempotent against these files.Refs the i18n infrastructure discussion #260.