Skip to content

Commit 181f43f

Browse files
committed
docs(i18n): align locale message count
1 parent cca9edb commit 181f43f

6 files changed

Lines changed: 8 additions & 8 deletions

File tree

content/docs/about/features.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ for it.
8383
Multilingual support uses Hugo's own mechanism: translation routing, a language
8484
picker ordered by weight, fallback for untranslated pages, RTL, and canonical
8585
and alternate metadata. Interface strings come in 32 language packs sharing one
86-
192-key schema: all 31 locale filenames supported by Docsy, plus generic `zh`.
86+
194-message schema: all 31 locale filenames supported by Docsy, plus generic `zh`.
8787
Every pack now contains native OINK interface text rather than English
8888
placeholder blocks; `zh` and `zh-cn` use Simplified Chinese and `zh-tw` uses
8989
Traditional Chinese.

content/docs/about/features.zh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ aliases:
4747
## 双语与 32 个界面语言 {#multilingual}
4848

4949
多语言走 Hugo 原生机制:译文路由、按权重排序的语言选择器、缺译回退、RTL,
50-
以及 canonical 与 alternate 元数据。界面文案有 32 份语言包,共用 192 键
50+
以及 canonical 与 alternate 元数据。界面文案有 32 份语言包,共用 194 条消息
5151
schema:Docsy 支持的 31 个 locale 文件名,再加通用 `zh`。每份语言包都使用目标
5252
语言覆盖完整 OINK 界面,不再保留英文占位块;`zh``zh-cn` 使用简体中文,
5353
`zh-tw` 使用繁体中文。

content/docs/customize/i18n.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ fully is in [Navigation and menus](/docs/customize/navigation/).
121121

122122
**Interface strings**: the theme ships 32 complete interface catalogs: the 31
123123
locale filenames supported by Docsy, plus generic `zh`. Every catalog contains
124-
all 192 OINK keys in its native language; none relies on generated English
124+
all 194 OINK messages in its native language; none relies on generated English
125125
fallback blocks. `zh` and `zh-cn` use Simplified Chinese, while `zh-tw` uses
126126
Traditional Chinese. The exact locale and placeholder contract is recorded in
127127
[Architecture](/docs/design/architecture/#interface-localization). To change a

content/docs/customize/i18n.zh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ languages:
9999
**首页数据** 按语言取文件:`data/home/en.yaml`、`data/home/zh.yaml`。当前语言没有对应文件时回退到 `en.yaml`;单语言站点用一个 `data/home.yaml` 即可。见[首页与落地页](/zh/docs/customize/home/)。
100100

101101
**界面文案**:主题自带 32 份完整界面语言包,即 Docsy 支持的 31 个 locale
102-
文件名,再加通用 `zh`。每份语言包都以目标语言覆盖 OINK 的全部 192 个键
102+
文件名,再加通用 `zh`。每份语言包都以目标语言覆盖 OINK 的全部 194 条消息
103103
不再依赖生成的英文 fallback。`zh` 与 `zh-cn` 使用简体中文,`zh-tw` 使用繁体
104104
中文;完整 locale 与占位符契约见[架构](/zh/docs/design/architecture/#interface-localization)。
105105
要改某一条,在站点自己的 `i18n/` 下建同名文件,只写要覆盖的键:

content/docs/design/architecture.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ claim that a consumer's authored content has been translated. A new Docsy
9494
locale does not enter OINK automatically: it needs a complete OINK catalog and
9595
the same review as every existing locale.
9696

97-
`i18n/en.yaml` owns the 192-key schema. Every one of the 32 OINK bundles has
97+
`i18n/en.yaml` owns the 194-message schema. Every one of the 32 OINK bundles has
9898
exactly that key set and native UI text; an English value may remain only when
9999
it is a reviewed product name, punctuation token, conventional abbreviation,
100100
or genuine word shared by the target language. There are no generated English

content/docs/design/architecture.zh.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ sr-cyrl sr-latn sv tr uk zh-cn zh-tw
8383
Docsy 以后增加的 locale 不会自动成为 OINK 支持项;它必须先补齐完整的 OINK
8484
词条,并接受与现有语言相同的审校。
8585

86-
`i18n/en.yaml` 管理 192 键 schema。OINK 的 32 份语言包都必须拥有完全相同的键集
87-
与原生界面文本;只有经过审查的产品名、标点、通行缩写或目标语言真实同形词可以
88-
与英文保持相同,不再生成整段英文 fallback。`zh``zh-cn` 使用简体中文,
86+
`i18n/en.yaml` 管理 194 条消息的 schema。OINK 的 32 份语言包都必须拥有完全相同
87+
的消息集与原生界面文本;只有经过审查的产品名、标点、通行缩写或目标语言真实
88+
同形词可以与英文保持相同,不再生成整段英文 fallback。`zh``zh-cn` 使用简体中文,
8989
`zh-tw` 使用繁体中文。
9090

9191
在兼容下限 Hugo 0.160.x 上,如果同时存在地区化的中文语言包,作为非默认语言的

0 commit comments

Comments
 (0)