Skip to content

fix(i18n): bind monitor domain, fix pt-PT plurals, and decode baked HTML entities - #298

Merged
TheWitness merged 2 commits into
developfrom
fix/i18n-mechanical-defects
Nov 26, 2026
Merged

TheWitness merged 2 commits into
developfrom
fix/i18n-mechanical-defects

Conversation

@somethingwithproof

Copy link
Copy Markdown
Member

Fixes mechanical localization issues in plugin_monitor:

  • Pass 'monitor' to buildPingNotificationIntro() in poller_functions.php, remove its baseline exception from tests/Unit/I18nTextDomainTest.php, and add unit coverage in tests/Unit/MonitorPingNotificationTest.php.
  • Fix locales/po/pt-PT.po Plural-Forms to nplurals=2; plural=n != 1;.
  • Decode baked-in HTML quote entities (" / ') across 8 catalogs (ar-SA, bg-BG, he-IL, hi-IN, ja-JP, ko-KR, tr-TR, vi-VN), fix the Hindi ellipsis typo in hi-IN.po, and recompile all 9 modified .mo binaries.

Verified with php -l, tests/bin/check-i18n-domain.php, msgfmt --check --check-format --check-header --check-domain, and tests/bin/validate-manifest.php.

…TML entities

Fixes mechanical localization issues in `plugin_monitor`:

- Pass `'monitor'` to `buildPingNotificationIntro()` in `poller_functions.php`, remove its baseline exception from `tests/Unit/I18nTextDomainTest.php`, and add unit coverage in `tests/Unit/MonitorPingNotificationTest.php`.
- Fix `locales/po/pt-PT.po` `Plural-Forms` to `nplurals=2; plural=n != 1;`.
- Decode baked-in HTML quote entities (`"` / `'`) across 8 catalogs (`ar-SA`, `bg-BG`, `he-IL`, `hi-IN`, `ja-JP`, `ko-KR`, `tr-TR`, `vi-VN`), fix the Hindi ellipsis typo in `hi-IN.po`, and recompile all 9 modified `.mo` binaries.

Verified with `php -l`, `tests/bin/check-i18n-domain.php`, `msgfmt --check --check-format --check-header --check-domain`, and `tests/bin/validate-manifest.php`.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
… issues

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
@sonarqubecloud

Copy link
Copy Markdown

@TheWitness
TheWitness merged commit 69b8df7 into develop Nov 26, 2026
10 checks passed
@TheWitness
TheWitness deleted the fix/i18n-mechanical-defects branch November 26, 2026 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants