Skip to content

Free, open-source 3D sculpting for Linux, macOS and Windows: dense meshes, remeshing, painting, built-in AI (image/text to 3D), Send to Unreal, game-ready LODs, Gaussian splats and OpenUSD.

zh-TW: language name glyphs in the subset, guide text without CJK (guide font), UI test keeps Interface open

islandmed3f0dab2ecc5a
diff --git a/assets/fonts/NotoSansTC-UI.otf b/assets/fonts/NotoSansTC-UI.otf
index a566d749..24fb9dee 100644
Binary files a/assets/fonts/NotoSansTC-UI.otf and b/assets/fonts/NotoSansTC-UI.otf differ
diff --git a/changes/feat-zh-hant.md b/changes/feat-zh-hant.md
index 1b880489..2df88648 100644
--- a/changes/feat-zh-hant.md
+++ b/changes/feat-zh-hant.md
@@ -1,12 +1,12 @@
---
-whats_new: **Traditional Chinese**: **Preferences > Interface > Language > 繁體中文** puts the menus, palettes,
+whats_new: **Traditional Chinese**: **Preferences > Interface > Language** has Traditional Chinese: it puts the menus, palettes,
shelves and messages in Traditional Chinese (thanks yoyomaimai). Brush and tool names stay in English.
-added: **Traditional Chinese interface** (#114, translation by yoyomaimai): Preferences > Interface > Language >
- 繁體中文 (saved as `zh-TW`). About 740 labels, Taiwan usage, brush and tool names kept in English; anything not
+added: **Traditional Chinese interface** (#114, translation by yoyomaimai): Preferences > Interface > Language
+ (the button with its Chinese name; saved as `zh-TW`). About 740 labels, Taiwan usage, brush and tool names kept in English; anything not
translated yet stays in English. The Chinese glyphs come from a small embedded subset of Noto Sans CJK TC
(SIL OFL), loaded only while the interface is in Chinese.
testers:
- - Any OS: Preferences > Interface > Language > 繁體中文: the palette bar, Preferences and Tool > Geometry read in
+ - Any OS: Preferences > Interface > Language > Traditional Chinese: the palette bar, Preferences and Tool > Geometry read in
Chinese with no "?" boxes, at 100% and 200% UI scale and in a non-Classic look. Back to English: all English.
- Any OS: restart with Chinese chosen: it starts in Chinese.
---
diff --git a/docs/guide/interface.md b/docs/guide/interface.md
index 527e9674..d05f0d5a 100644
--- a/docs/guide/interface.md
+++ b/docs/guide/interface.md
@@ -522,7 +522,7 @@ Layout keeps it.
| Setting | Default | What it does |
|---|---|---|
| **Look**, **Outlines** and **Layout** | Forge Terminal, Neutral, Subtle, SculptForge | See [Looks and layouts](#looks-and-layouts) |
-| **Language** | English | The interface language: **English**, **Español** or **繁體中文** (Traditional Chinese; see below) |
+| **Language** | English | The interface language: **English**, **Español** or Traditional Chinese (see below) |
| **Ctrl+hover help** | On | Ctrl-hover help boxes |
| **Help box opacity** | 0.97 | How solid the help box is |
| **Tooltip delay** | 0.5 s | How long to point at an icon-only button before its name appears |
@@ -538,7 +538,7 @@ Layout keeps it.
**Español** the menus, the palettes, the shelves, the Library, the command palette and the Ctrl-help titles
are in Spanish, while the names of tools and brushes stay in English, as Spanish-speaking sculptors use them (Parts,
Quad Remesh, Forge Spheres, Library, Lit Sphere, Clay Block, Add). The command palette finds a command by its Spanish or its
-English name. **繁體中文** (Traditional Chinese, contributed by yoyomaimai) works the same way, with Taiwan usage
+English name. **Traditional Chinese** (the button with its Chinese name; contributed by yoyomaimai) works the same way, with Taiwan usage
and the brush and tool names in English. Anything not translated yet (most Ctrl-help descriptions, this guide) shows in English. Scripts and
`sculptforge-cli` commands are the same in every language.
diff --git a/tests/ui/language.sfui b/tests/ui/language.sfui
index 3d9f8421..ab983d35 100644
--- a/tests/ui/language.sfui
+++ b/tests/ui/language.sfui
@@ -72,7 +72,6 @@ expect_text "Size"
# Traditional Chinese (#114): the UI fonts are built again with the Chinese glyphs (the shots show no "?" boxes);
# the "##" ids stay, so the same clicks work, and brush names stay in English.
click "Preferences##palette.preferences"
-click "Interface##preferences.interface"
click "繁體中文##language.zh-TW"
expect_text "語言"
expect "偏好設定##palette.preferences"
diff --git a/tools/i18n/subset_cjk_font.py b/tools/i18n/subset_cjk_font.py
index 1b55e6e1..afbb3291 100755
--- a/tools/i18n/subset_cjk_font.py
+++ b/tools/i18n/subset_cjk_font.py
@@ -20,6 +20,7 @@ OUT = ROOT / "assets/fonts/NotoSansTC-UI.otf"
TC_FACE = "Noto Sans CJK TC"
# Always kept: CJK and full-width punctuation the translations (and future edits) reach for.
PUNCTUATION = ",。、:;!?()「」『』《》〈〉【】-~…·—%/+"
+LANGUAGE_NAME = "繁體中文" # the Preferences button, shown in every language (I18n.cpp languageName)
def table_characters():
@@ -27,7 +28,7 @@ def table_characters():
chars = set()
for literal in re.findall(r'"((?:[^"\\]|\\.)*)"', text):
chars.update(c for c in literal if ord(c) > 0xFF)
- return chars | set(PUNCTUATION)
+ return chars | set(PUNCTUATION) | set(LANGUAGE_NAME)
def main():