Repository navigation
fix(i18n): correct zh-TW memory term, recompile stale .mo catalogs; close #41 - #106
Merged
Merged
Conversation
- zh-TW: translate Memory (MB), Avg Mem, Avg Memory and Max Memory with ??? (computer memory) instead of ?? (human memory), matching the rest of the catalog. - Recompile every locales/LC_MESSAGES/*.mo from its .po. The compiled catalogs still carried strings removed from the sources (e.g. "Choose an action:") and stale Weblate headers. Fixes #91 Closes #41 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Direct edits to the Weblate-owned zh-TW catalog risk conflicts with translation syncs; the four corrections should be submitted through Weblate and removed from this PR.
1 open issue
What changed in this PR
Addresses remaining localization issues from #91 in Cacti’s Host MIB plugin, without changing PHP behavior.
Changes:
- Corrects four Traditional Chinese memory labels to use
記憶體. - Adds a changelog entry documenting the terminology fixes and catalog recompilation.
| File | Description |
|---|---|
locales/po/zh-TW.po |
Corrects computer-memory terminology in four translations. |
CHANGELOG.md |
Records the translation fixes and compiled-catalog refresh. |
Review effort: Balanced
The zh-TW catalog carried fuzzy guesses merged from unrelated strings (Collection as "location", Last Run/Last Success/Last Seen as "last login", Processors as "processes", System as "system name", Process CPU and Memory as "top processes by memory"). Translate them properly, clear the fuzzy flags and recompile zh-TW.mo. Refs #91 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
xmacan
approved these changes
Dec 3, 2026
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.




Summary
Fixes #91
Closes #41
Fixes the remaining items of #91 and closes #41, which
developalready covers. #37 stays open (see below).#91 — i18n defects
Most of #91 was already fixed by #96. Re-checked on current
develop:sv-SEmsgfmt --check-formatfatal error.popass).pomissingPlural-Formshe-ILRescanVNC mojibakeka.mo/hi.mozh-CNProcesses=流程进程)zh-TW軟件leakzh-TWMemory (MB)=記憶(MB).mobinaries match active.poChanges:
Memory (MB),Avg Mem,Avg MemoryandMax Memorynow use記憶體(computer memory) instead of記憶(human memory), matching the rest of the catalog (最大記憶體,記憶體使用率, …).Collection(was 地點 'location'),Last Run/Last Success/Last Seen(were 最近一次登入 'last login'),System(was 系統名稱 'system name'),Processors(was 處理程序 'processes'),Process CPU and MemoryandNothing has been collected from this Device yet.now have correct translations, and their fuzzy flags are cleared. These are the entries the i18nmsgcheck --error-on-fuzzyjob flags in zh-TW..mofiles recompiled from their.po(samemsgfmtcall aslocales/build_gettext.sh, plus--check --check-format). Every compiled catalog was stale. Each one still contained strings removed from the sources (for exampleChoose an action:) and the old Weblate placeholder headers.#41 — defense-in-depth audit
No code changes are needed. The audit's own status says "no diff (already on develop)", and the hardening merged since then (#49, #103, …) covers the listed categories. I checked the current tree again:
unserialize/exec/eval/shell calls;selected_itemsgo throughsanitize_unserialize_selected_items()in_array(..., true); the poller purge uses a fixed table list)POST+csrf_check()__DIR__/$configpaths#37 — not addressed here (intentionally)
The bugs are in
ss_hmib_sum_apps.php/hmib_sum_apps.xmland their device-level counterparts. Those files only exist inside the signedtemplates/*.xml.gzpackages, so they'll be fixed and re-signed separately before release. #37 stays open to track that.Validation
msgfmt --check --check-formatpasses for all 42 catalogsmsgunfmtof each recompiled.momatches its.pocacti.potis unchanged