feat(i18n): update Traditional Chinese (zh-TW) localization for 0.9.0 - #122
feat(i18n): update Traditional Chinese (zh-TW) localization for 0.9.0#122yangyws wants to merge 21 commits into
Conversation
- add `app/src/main/res/values-zh-rTW/strings.xml` with all 1055 strings, at full parity with `values/strings.xml` - add `gamefocus/src/main/res/values-zh-rTW/strings.xml` with all 62 strings, at full parity - register `zh-TW` in `app/src/main/res/xml/locales_config.xml` so the locale is offered in the per-app language picker on Android 13+ - mirror key order and comments from the English source files so future syncs stay reviewable as a diff - leave `app_name` untranslated, matching `values-de` Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Required by the localization policy: every language Megingiard ships a translation for must also be able to complete privileged Auto Setup, which matches Settings entries by their text in the device language. - add `CHINESE_TW` with the Traditional Chinese Settings wording (版本號碼, 無線偵錯, USB 偵錯, 使用配對碼配對裝置, 允許), plus `CHINESE_HK` and `CHINESE_MO` sharing it, and register all three in `CONFIGS_BY_TAG` - resolve a bare `zh` locale through region and script subtags rather than the primary language alone, so only Traditional regions (TW/HK/MO/Hant) match - keep Simplified Chinese (zh-CN, zh-SG, zh-Hans) unsupported: its Settings entries read 版本号 / 无线调试, so falling back to the Traditional keywords would stall Auto Setup mid-flow instead of reporting the language as unsupported - cover the new resolution paths in `AutoSetupLanguageConfigTest`, including the Simplified-stays-null cases the existing suite already asserted Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…cale Auto Setup told the Wireless debugging sub-screen apart from Developer options through a Developer options title list hardcoded in the service, covering only English, German, Spanish and French. Both screens carry the wireless debugging label, so on any other system language the check reported the sub-screen while still on Developer options: the loop advanced to CLICK_PAIR_DIALOG and scrolled Developer options 25 times looking for a pairing row that only exists one screen deeper, then timed out. Verified on an AYN Thor with the system language set to zh-Hant-TW. - move the hardcoded titles into `AutoSetupLanguageConfig` as the default of a new `developerOptionsKeywords`, leaving the four existing locale configs untouched and their behaviour identical - give `CHINESE_TW` its own `開發人員選項`, since its title is not among the defaults - read the keywords from the config in `isWirelessDebuggingSubScreen`, so adding a locale no longer means editing the accessibility service - assert every config carries lowercase keywords, the matching lowercases the screen text Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
- add the 23 keys upstream introduced since the previous branch base - retranslate 9 keys whose English source text changed upstream - drop settings_jump_privileged_mode and settings_section_privileged_mode, renamed upstream to settings_jump_input and settings_section_input - retranslate 29 entries that had been carried over from this fork's own strings, where upstream's English says something different: app_name no longer reads "Megingiard-zh", macropad_editor_new_profile_name no longer carries a %1$d that upstream never supplies, and the help texts no longer document behaviour that only exists in the fork Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…hinese-localization
…t for all locales, and fix Windows build/nativeCTest execution
… click, and complete 16-item permutation verification
…ction in AccessibilityService
…up FQN imports - remove superfluous everyConfigCarriesDeveloperOptionsKeywords test enforced by data class constructor - replace inline org.junit.Assert package references with top-level imports in AutoSetupLanguageConfigTest
…ode documentation - add formatted="false" attribute to help_bg_settings_dimming_desc and help_ambient_dim_desc in values-zh-rTW/strings.xml - update docs/features/privileged-mode/FEATURE.md to reflect Traditional Chinese auto-setup support
…hinese-localization
…hinese-localization
…ptimize UI terms - add missing translations for 0.9.0 features (App Launcher, Floating Bubble, Auto Switch off toast) - localize keyboard (Ergo/Full -> 簡易/完整) and touchpad (Mouse/Touch -> 滑鼠/觸控) mode toggles - adapt initial blank profile and layout default name to system locale (預設 / Standard / Default) - optimize drag handle term to Taiwanese standard 拖曳控點 - add unit tests for locale-aware default profile naming
Traditional Chinese Term Refinement
|
|
Hey, thanks for the quick update. Buuuut this has to wait a little, there is a lot coming... 😅 |
|
No worries at all! I happened to be working on some local customizations and updated the translations along the way. Take your time with the upcoming changes, and whenever you're ready or have new strings coming, feel free to merge or let me know to help fill them in! 😊 |
- align EditorTopBar title with the parent Quick Menu action ('Edit Profile/Layout')
- accurately reflect that both Profiles and Layouts are managed within this screen
…Hub as 副螢幕輔助中心 - standardize screen terminology across all Traditional Chinese strings to strictly use 主螢幕 and 副螢幕 - eliminate ambiguous references (次螢幕, 底部螢幕, 上方螢幕, 上螢幕, 下方螢幕) - localize Companion Hub to 副螢幕輔助中心 to align with Taiwanese UX conventions and establish clear hierarchy with 副螢幕工具 - escape XML ampersand in Thor settings deadzone dialog hint
…ch button to 切換至輔助中心
📝 Traditional Chinese (zh-TW) Terminology Standardization & RefinementsHi @stormpanda! Here is a breakdown of the refinements made across existing Traditional Chinese keys in this PR and the rationales behind them: 1. 📱 Screen Terminology Standardization (Primary vs. Secondary Display)
2. 🏠 Companion Hub Localization & Quick Menu Consistency
3. 📋 Profile & Layout Duplication Clarity
4. 🎨 Icon & Scaling Terminology Precision
5. 🎛️ UI Control Precision
|
…hinese-localization
🌐 Traditional Chinese (zh-TW) Localization Fully Synced for 0.9.0Hi @stormpanda! I've merged the latest \main\ (including #123 PSP detection and recent 0.9.0 features) and verified that all Traditional Chinese (\zh-TW) resources are 100% complete and up to date. 🆕 Highlights for 0.9.0:
The PR is purely focused on localization and clean UI string resources, ready for the 0.9.0 release whenever you are! 🚀 |
Summary
values-zh-rTW/strings.xml) translations for all new 0.9.0 features (App Launcher picker, Floating Bubble overlay, and Auto Switch Off toast).簡易(Ergo / Compact) and完整(Full).滑鼠(Mouse) and觸控(Touch).拖曳把手->拖曳控點.keyboard_mode_ergo,keyboard_mode_full,touchpad_mode_mouse,touchpad_mode_touch) into string resources across base, German, and Traditional Chinese.預設for Chinese,Standardfor German,Defaultfor English/fallback).MacroPadEditor.kt: UpdatedEditorTopBartitle to referencequick_menu_edit_layout("Edit Profile/Layout") rather thanmacropad_editor_title_edit_profile("Edit Profile"). This matches the parent Quick Menu button text and reflects that both profiles and layouts are managed within this screen.MacroPadStateTest.ktfor locale-aware profile naming.