mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-06 03:14:00 +00:00
docs: simplify Chinese localization notes
This commit is contained in:
1 parent
1416266bcb
commit
2c3b364069
4 files changed
+9
-17
No files matched your search
@@ -1,6 +1,4 @@
|
|||||||
- Add Simplified Chinese (zh-CN) as an interface language, selectable from
|
- Add Simplified Chinese (zh-CN) to the language picker, with localized dates
|
||||||
the globe picker. The catalog builds on the Chinese translations by
|
and readable Chinese labels. Based on translations by @abiyeenzo (#914)
|
||||||
@abiyeenzo (#914) and @EDIT-Aeterna (#979); the rest was translated and the
|
and @EDIT-Aeterna (#979).
|
||||||
whole catalog reviewed against the screens. Chinese text gets tight tracking
|
|
||||||
and readable minimum sizes, and year-first dates read 2021年10月16日
|
|
||||||
(German, @gekh, #1298).
|
(German, @gekh, #1298).
|
||||||
@@ -3429,9 +3429,8 @@ Shipped locales: **en** (source and fallback), **es**, **ru** and **zh-CN**. The
|
|||||||
value). English has no catalog; every other locale is
|
value). English has no catalog; every other locale is
|
||||||
`src/i18n/locales/<code>.json`, and a missing entry falls back to English.
|
`src/i18n/locales/<code>.json`, and a missing entry falls back to English.
|
||||||
- **Locale choice.** `?lang=` → stored choice (`gev:locale:v1`) →
|
- **Locale choice.** `?lang=` → stored choice (`gev:locale:v1`) →
|
||||||
`navigator.languages` → English. Any `zh` tag maps to `zh-CN` except
|
`navigator.languages` → English. Chinese tags map to `zh-CN`; tags containing
|
||||||
Traditional ones (`Hant`, `TW`, `HK`, `MO`), which fall through until a
|
`Hant`, `TW`, `HK` or `MO` are skipped. `?lang=` is not stored, and share links drop
|
||||||
Traditional catalog ships. `?lang=` is not stored, and share links drop
|
|
||||||
it, so a recipient keeps their own language. The globe picker in the
|
it, so a recipient keeps their own language. The globe picker in the
|
||||||
bottom-right corner (`src/ui/localePicker.js`) stores the choice, drops
|
bottom-right corner (`src/ui/localePicker.js`) stores the choice, drops
|
||||||
`?lang=` (keeps it only when storage is blocked) and reloads. It asks first
|
`?lang=` (keeps it only when storage is blocked) and reloads. It asks first
|
||||||
|
|||||||
@@ -2,9 +2,7 @@
|
|||||||
|
|
||||||
Catalog: `src/i18n/locales/zh-CN.json`. General rules: [TRANSLATORS.md](../TRANSLATORS.md).
|
Catalog: `src/i18n/locales/zh-CN.json`. General rules: [TRANSLATORS.md](../TRANSLATORS.md).
|
||||||
|
|
||||||
The catalog started from the Chinese locale by abiyeenzo (#914) and the
|
Translation sources: abiyeenzo (#914) and EDIT-Aeterna (#979).
|
||||||
Simplified Chinese localization by EDIT-Aeterna (#979); the rest was translated
|
|
||||||
for the current English and reviewed against both.
|
|
||||||
|
|
||||||
## Style
|
## Style
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
/* Chinese text. The UI sets Latin capitals with wide tracking; Chinese set
|
/* Tight tracking keeps Chinese labels readable; preserve Latin tracking for
|
||||||
that way falls apart into single glyphs, so its tracking stays tight. The
|
intel HUD readouts and content marked translate="no", including its containers. */
|
||||||
intel HUD readouts (codes, coordinates) and text kept in English on purpose
|
|
||||||
(translate="no", and whatever holds it) keep the Latin look. */
|
|
||||||
html:lang(zh)
|
html:lang(zh)
|
||||||
body
|
body
|
||||||
:not(
|
:not(
|
||||||
@@ -14,8 +12,7 @@ html:lang(zh)
|
|||||||
letter-spacing: 0.02em !important;
|
letter-spacing: 0.02em !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Below about 9px a Chinese glyph blurs: lift the dock's voice labels and the
|
/* Keep small Chinese labels legible at a minimum of 9px. */
|
||||||
panel layer buttons to that floor. */
|
|
||||||
html:lang(zh) #command-dock .gev-mic-label,
|
html:lang(zh) #command-dock .gev-mic-label,
|
||||||
html:lang(zh) #command-dock #gev-voice-detail,
|
html:lang(zh) #command-dock #gev-voice-detail,
|
||||||
html:lang(zh) .gev-voice-tier-btn,
|
html:lang(zh) .gev-voice-tier-btn,
|
||||||
|
|||||||
Reference in new issue
Block a user