Improve Simplified Chinese localization: complete fallbacks, add runtime-resolved strings, align terminology - #181
Open
BruceQin520 wants to merge 1 commit into
Conversation
…ime-resolved strings, align terminology - Translate the 50 zh-Hans entries marked as English fallback (PureMac/CPU kept as-is) - Add 255 entries for UI literals that resolve through the catalog at runtime (Smart Care dashboard, Protection audit, Performance launch items, Duplicate Finder, Homebrew updates, etc.), extracted as exact runtime strings - Align terminology with Apple Simplified Chinese conventions (储存空间, 扫描这台 Mac, 用户级代理), unify duplicated button labels - Normalize punctuation to full-width in Chinese context (~66 entries) - No keys removed; 397 -> 652 entries
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Improve Simplified Chinese localization (zh-Hans)
Summary
This PR completes and improves the Simplified Chinese (
zh-Hans) localization. No code changes are involved — onlyzh-Hans.lproj/Localizable.strings.PureMacandCPUintentionally kept.Text("…")lookup), e.g. the Smart Care dashboard, Protection audit, Performance launch items table, Duplicate Finder empty state, Homebrew update flow. These were extracted as exact runtime literals, so they take effect without code changes.,:?()in Chinese context, per Apple UI style.Examples
Fallback entries translated:
%lld checks:%lld checks→ %lld 项检查Ready to reclaim:Ready to reclaim→ 待释放Installed apps:Installed apps→ 已安装应用Scan My Mac:Scan My Mac→ 扫描这台 MacTerminology polish on existing translations:
Storage:存储→ 储存空间macOS blocks PureMac from cleaning caches and uninstalling apps until you grant access.:在你授予访问权限之前,macOS 会阻止 PureMac 清理缓存和卸载应用。→ 在你授予访问权限之前,macOS 会阻止 PureMac 清理缓存和卸载应用。Currently in: %@:当前: %@→ 当前: %@Trouble?:遇到问题?→ 遇到问题?In System Settings, do this::在“系统设置”中执行以下操作:→ 在“系统设置”中执行以下操作:Sorted: Smallest First:排序:最小优先→ 排序:最小优先New entries for code-side literals (sample):
Smart Care= "智能呵护";Scan this Mac= "扫描这台 Mac";Mac storage= "Mac 储存空间";Protection= "防护";Uninstaller= "卸载器";Choose Folder= "选择文件夹";%lld found= "找到 %lld 项";User agent= "用户级代理";Notes / follow-ups
A few strings appear to be rendered via
Text(verbatim:)and cannot be localized through the catalog (confirmed at runtime — the catalog already contains Chinese values for them, but the UI keeps English):Used/Purgeable/Available(Smart Care dashboard)Focused utilities for storage, apps, and system maintenance(Tools section caption)Full access/Ready for protected locationsConsider routing these through
Text("…")/LocalizedStringKeyso they can be localized; happy to supply the missing translations once they are catalog-driven.Testing
plutilvalidation passes.