Skip to content

fix(i18n): bind servcheck domain, json_encode JS strings, rename ka.po, and rebuild MOs - #152

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

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

Conversation

@somethingwithproof

Copy link
Copy Markdown
Member

Fixes mechanical localization issues in plugin_servcheck:

  • Pass 'servcheck' to the 4 missing-domain edit header calls across servcheck_ca.php, servcheck_credential.php, servcheck_proxy.php, and servcheck_test.php.
  • Embed all 6 translated multiselect JavaScript strings in servcheck_test.php with json_encode(...) to prevent quote-breaking SyntaxError failures.
  • Fix the inverted Hindi Plural-Forms header (plural=n > 1;) in hi-IN.po, rename non-standard locales/po/ka.po to locales/po/ka-GE.po with Language: ka-GE, clear invalid auto-fuzzy entries in both catalogs, compile locales/LC_MESSAGES/ka-GE.mo, and rebuild all 22 stale .mo binaries.

Verified with php -l, node --check on the rendered script block, msgfmt --check --check-format --check-header --check-domain, and tests/bin/validate-manifest.php.

…o, and rebuild MOs

Fixes mechanical localization issues in `plugin_servcheck`:

- Pass `'servcheck'` to the 4 missing-domain edit header calls across `servcheck_ca.php`, `servcheck_credential.php`, `servcheck_proxy.php`, and `servcheck_test.php`.
- Embed all 6 translated multiselect JavaScript strings in `servcheck_test.php` with `json_encode(...)` to prevent quote-breaking `SyntaxError` failures.
- Fix the inverted Hindi `Plural-Forms` header (`plural=n > 1;`) in `hi-IN.po`, rename non-standard `locales/po/ka.po` to `locales/po/ka-GE.po` with `Language: ka-GE`, clear invalid auto-fuzzy entries in both catalogs, compile `locales/LC_MESSAGES/ka-GE.mo`, and rebuild all 22 stale `.mo` binaries.

Verified with `php -l`, `node --check` on the rendered script block, `msgfmt --check --check-format --check-header --check-domain`, and `tests/bin/validate-manifest.php`.

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

Copy link
Copy Markdown

@TheWitness
TheWitness merged commit d00acca into main Nov 26, 2026
8 checks passed
@TheWitness
TheWitness deleted the fix/i18n-mechanical-defects branch November 26, 2026 19:40
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