i18n: Simplified Chinese (zh-hans) UI translation
- The i18n module now selects a catalog by language code instead of testing for Japanese: `language(app)` returns the code, `lookup` is shared by every catalog, and the undo/redo and workspace / 3D-view titles are formatted per language. - New SIMPLIFIED_CHINESE catalog: the same (command, English label) keys as JAPANESE, one entry per fixed menu row of the engine tree (618 rows). - `general.language` gains 简体中文 (`zh-hans`). Match System maps a Simplified Chinese locale (zh, zh-CN, zh_CN.UTF-8, zh-Hans-CN, zh-SG) to it and a Traditional one (zh-TW, zh-HK, zh-Hant) to English, which has no catalog of its own yet. - The macOS Services menu item is 服务 in Chinese. - Tests: both catalogs must cover the same fixed TREE entries; `...`, brackets and spacing keep the English shape; label/undo/panel-title/submenu/native-menu behaviour in zh-hans with file and layer names kept verbatim; the locale mapping; the preference round-trips through prefs.json.
This commit is contained in:
@@ -23,7 +23,7 @@ pub const PREFS_VERSION: u32 = 2;
|
||||
pub const PREFS_FILE: &str = "prefs.json";
|
||||
|
||||
/// Settings ▸ General ▸ Language: (label, `general.language` value).
|
||||
pub const LANGUAGES: &[(&str, &str)] = &[("Match System", "system"), ("English", "en"), ("日本語", "ja")];
|
||||
pub const LANGUAGES: &[(&str, &str)] = &[("Match System", "system"), ("English", "en"), ("日本語", "ja"), ("简体中文", "zh-hans")];
|
||||
|
||||
/// Settings ▸ Startup & Repair ▸ Window Graphics: (label, `startup.windowGraphics` value).
|
||||
pub const WINDOW_GRAPHICS: &[(&str, &str)] = &[("Automatic", "auto"), ("OpenGL (compatibility)", "gl")];
|
||||
|
||||
Reference in New Issue
Block a user