Repository navigation
fix(i18n): ASCII percent signs, restore fuzzied translations, prepare 5.1 (#465) - #482
Conversation
… 5.1 - zh-TW, zh-CN and ja-JP used the full-width percent sign (U+FF05) in the interface InBound/OutBound % labels and in the MAC authorization wildcard help, which tells users to type a character the plugin does not accept. Use the ASCII form the source string uses. - Correcting "aggergated" in #481 made Weblate mark the two Utilities messages fuzzy in all 42 catalogs, so they showed in English. The existing translations are still correct; clear the flag. - Rebuild every compiled catalog. The committed .mo files also still carried the two retired misspelled messages. - Release prep: rename the pending CHANGELOG section to --- 5.1 ---, fold the unreleased documentation note into it, and update the README and contributor instructions to 5.1 (INFO is already 5.1). Fixes #465 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Translation validation: the failure is from older translations, and this PR doesn't add any new errors. CI's
Making this check pass would mean changing correct CJK and Amharic punctuation to ASCII, or teaching Cacti's shared |
There was a problem hiding this comment.
🟡 Changes recommended
Chinese labels render doubled percent signs, while newly activated German, Portuguese, and Polish Utilities translations incorrectly describe aggregated tables.
4 open issues
What changed in this PR
Addresses translation cleanup from #465 and prepares Device Tracking’s documentation for release 5.1. No PHP code changes.
Changes:
- Replaces full-width percent signs in Chinese labels and Chinese/Japanese wildcard help.
- Restores two Utilities translations in all 42 catalogs after #481’s spelling correction.
- Updates release notes and version references to 5.1.
| File | Description |
|---|---|
| README.md | Updates source version to 5.1. |
| locales/po/zu-ZA.po | Restores Utilities translations. |
| locales/po/zh-TW.po | Restores translations; updates percent signs. |
| locales/po/zh-CN.po | Restores translations; updates percent signs. |
| locales/po/yo-NG.po | Restores Utilities translations. |
| locales/po/xh-ZA.po | Restores Utilities translations. |
| locales/po/vi-VN.po | Restores Utilities translations. |
| locales/po/uk-UA.po | Restores Utilities translations. |
| locales/po/tr-TR.po | Restores Utilities translations. |
| locales/po/sw-KE.po | Restores Utilities translations. |
| locales/po/sv-SE.po | Restores Utilities translations. |
| locales/po/sr-RS.po | Restores Utilities translations. |
| locales/po/so-SO.po | Restores Utilities translations. |
| locales/po/rw-RW.po | Restores Utilities translations. |
| locales/po/ru-RU.po | Restores Utilities translations. |
| locales/po/pt-PT.po | Restores Utilities translations. |
| locales/po/pt-BR.po | Restores Utilities translations. |
| locales/po/pl-PL.po | Restores Utilities translations. |
| locales/po/nl-NL.po | Restores Utilities translations. |
| locales/po/mg-MG.po | Restores Utilities translations. |
| locales/po/lv-LV.po | Restores Utilities translations. |
| locales/po/ko-KR.po | Restores Utilities translations. |
| locales/po/ka-GE.po | Restores Utilities translations. |
| locales/po/ja-JP.po | Restores translations; corrects wildcard character. |
| locales/po/it-IT.po | Restores Utilities translations. |
| locales/po/ig-NG.po | Restores Utilities translations. |
| locales/po/hr-HR.po | Restores Utilities translations. |
| locales/po/hi-IN.po | Restores Utilities translations. |
| locales/po/he-IL.po | Restores Utilities translations. |
| locales/po/ha-NG.po | Restores Utilities translations. |
| locales/po/fr-SN.po | Restores Utilities translations. |
| locales/po/fr-MA.po | Restores Utilities translations. |
| locales/po/fr-FR.po | Restores Utilities translations. |
| locales/po/es-ES.po | Restores Utilities translations. |
| locales/po/el-GR.po | Restores Utilities translations. |
| locales/po/de-DE.po | Restores Utilities translations. |
| locales/po/bs-BA.po | Restores Utilities translations. |
| locales/po/bg-BG.po | Restores Utilities translations. |
| locales/po/ar-SA.po | Restores Utilities translations. |
| locales/po/ar-MA.po | Restores Utilities translations. |
| locales/po/ar-EG.po | Restores Utilities translations. |
| locales/po/am-ET.po | Restores Utilities translations. |
| locales/po/af-ZA.po | Restores Utilities translations. |
| CHANGELOG.md | Names release 5.1 and records fixes. |
| .github/copilot-instructions.md | Aligns version and changelog guidance with 5.1. |
Review effort: Balanced
…ted-table messages Address review on #482: - Cacti unescapes %% once, so "InBound %%%" renders as "InBound %%". Use a single % in the zh-TW and zh-CN labels. - The restored Utilities messages were machine-translated from the misspelled "aggergated" and read as "intensified", "aggravated", "aggressive" or "approaching" table in some catalogs. Use each catalog's own term for aggregated in de-DE, pt-BR, pt-PT, pl-PL, he-IL, zh-CN, tr-TR and hi-IN, and rebuild their compiled catalogs. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
|
The remaining Validate Translations failure is fixed in the shared tooling: Cacti/cacti#9136.
I ran the updated wrapper against this PR's 42 catalogs with |




Summary
This fixes the code-side items still open in #465 and prepares the branch for the 5.1 release.
Fixes #465
#465: translation fixes
Full-width percent sign (U+FF05). zh-TW, zh-CN and ja-JP used
%where the source string has a normal%:InBound %/OutBound %labels, these now use a single ASCII%. Cacti's__uf()unescapes%%only once, so%%%would display as%%.%was the wrong character, because the plugin only accepts%.These were the only
%in any catalog. Cacti's__()sends a string without a real format specifier to__uf(), notsprintf(), so a bare%can't throw an error.Translations restored after #481. #481 corrected the spelling "aggergated" in two Utilities messages, and Weblate's msgmerge then marked both messages fuzzy in all 42 catalogs. Fuzzy entries aren't compiled, so the messages showed in English in every language. This PR clears the fuzzy flag on those 84 entries. Most translations were fine, but in 8 catalogs (de-DE, he-IL, hi-IN, pl-PL, pt-BR, pt-PT, tr-TR, zh-CN) they had been machine-translated from the misspelled word, giving "intensified", "aggravated", "aggressive" or "approaching" table, a wrong sentence, or an untranslated
aggergate. Those now use each catalog's own term for "aggregated".Compiled catalogs rebuilt. I rebuilt every
.mowithmsgfmt -c. Each one now has all 865 entries. The committed.mofiles also still contained the two retired misspelled messages.Still open, and needs a Weblate admin. The
cacti/mactrackcomponent still has auto-translate addon id 6 inmode: "translate"(80% threshold), which commits unreviewed matches straight todevelop. The second auto-translate addon (id 10) is gone. Switching id 6 tosuggestcan't be done from the repository.5.1 release prep
CHANGELOG.md: renamed the pending section from--- develop ---to--- 5.1 ---and added the i18n: 44 fatal msgfmt errors across 5 .po files, duplicate auto-translate Weblate addon, mojibake, and orphan ka.mo #465 entry. I also moved the "Documentation update (unreleased)" note from the top of the file into the section as anissue:entry, since that work (docs: improve published release notes and upgrade guidance #460) ships in 5.1.INFO: alreadyversion = 5.1, so no change was needed.README.md: the Source branch row now shows 5.1..github/copilot-instructions.md: updated the version and the pending-section heading to 5.1.Validation
msgfmt -c -vpasses on all 42 changed catalogs.tests/tools/audit_po.py --base origin/develop(develop):OK: 42 file(s) passed.polib), so CI'smsgcheck --error-on-fuzzyshould pass. I couldn't run that wrapper locally because theenchantC library isn't installed here..mofiles withmsgunfmt: the only differences are the edited strings, the restored entries and Weblate's header metadata.