Localization: some translated strings show in English at runtime; some strings missing from the export
Hi Robert — while verifying the zh-Hans translation against v1.14.0, I found some strings that stay in English even though they're translated in the catalog, plus a few that aren't in the exported catalog at all. These likely affect every language, not just Chinese. Grouping them by cause:
1. Translated in the catalog, but shown in English at runtime
The same key localizes correctly in one place but not another, so these look like code paths that bypass the String Catalog lookup (e.g. a String variable / enum raw value passed to Text, or a window title set directly) rather than a missing translation.
- Settings sidebar: General, Menu Bar, Colors, Shortcuts, Filters
- Evidence: when Filters is selected, the settings window title correctly shows the translated "过滤器" — same key, translated in the title bar but English in the sidebar row.
- About window title: About ProcessSpy
- Evidence: the menu item with the same key shows the translated "关于 ProcessSpy".
- App Behavior segmented control: Menu Bar Only, Dock Only, Menu Bar & Dock
- Evidence: on the same settings page, the Theme segmented control (System / Light / Dark) is correctly translated — so the issue is specific to how this control gets its titles.
- Inspector tab tooltips: General, Command, Dylibs (their translations exist in the catalog)
2. Not present in the exported catalog (contributors can't translate them)
- Built-in filter names: My, System, Apps (the filter-bar "All" also stays English)
- App-mode description: "Access ProcessSpy from both the Menu Bar and the Dock." (presumably the Menu-Bar-Only and Dock-Only descriptions too)
- Inspector tab tooltips: Files, Connections, Environment variables, Entitlements, History graphs
- CPU time value format: shown as e.g.
24h 53m 24s. The neighbouring "运行时间/Run Time" value uses system formatting and localizes fine, but thish/m/sformat string isn't exported. - (optional) the "Format" value
app bundle with Mach-O universal (x86_64 arm64)— a technical string, up to you whether it should be localizable.
3. Export seems out of sync with the app's catalog
The "Chart style" label in Menu Bar settings is already translated in v1.14.0, but that key has never appeared in this repo's exports. Could you re-export the .xcloc bundles from the current project? That would let contributors fill the gaps in section 2.
For reference, the zh-Hans side is fully translated for every key currently in the export (295/295 aligned with en). Happy to translate anything new once the catalog is re-exported. I can attach screenshots if useful.
Hello, many thanks for the detailed description.
- I have fixed these, will be available in the next release.
- and 3. I have updated zh translation file to contain missing strings, please check. For now I'm keeping Filters (there is an easy workaround to rename them if needed), CPU Time and Format as they are (I want to distinguish between run time - time counter and CPU Time - quantitative marker)
Hi Robert, thanks for the update.
I pulled bc50756 and checked the refreshed zh-Hans catalog. The previously missing app-mode descriptions, inspector labels, Chart Style, and All are now present and translated. I also reviewed the newly added monitoring strings; the XLIFF validates and its format placeholders match the source strings.
Understood on the editable built-in filter names, CPU Time, and Format — I have left those unchanged. I updated #29 on top of the current main with the remaining zh-Hans wording and Apple terminology corrections from the refreshed catalog. I also removed my earlier Series change, so it remains 序列.
The PR now contains one cleanly mergeable commit with 9 target-only changes in the zh-Hans XLIFF. I’ll re-check the runtime localization fixes from section 1 when the next release is available. Thanks again!
Hello, please check the newest version 1.14.1, most things shoud be sorted out now